<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>197266</bug_id>
          
          <creation_ts>2009-06-20 14:31:46 +0000</creation_ts>
          <short_desc>valgrind appears to choke on the xmms instruction &quot;roundsd&quot; on x86_64</short_desc>
          <delta_ts>2011-10-11 07:40:53 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Developer tools</classification>
          <product>valgrind</product>
          <component>vex</component>
          <version>3.4.1</version>
          <rep_platform>Ubuntu</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter>srp</reporter>
          <assigned_to name="Julian Seward">jseward</assigned_to>
          <cc>lichunhui2001</cc>
    
    <cc>njn</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>778679</commentid>
    <comment_count>0</comment_count>
    <who name="">srp</who>
    <bug_when>2009-06-20 14:31:46 +0000</bug_when>
    <thetext>When gcc (4.3.3-5ubuntu4) compiling my code with &quot;-march=nocana -ffast-math -mfpmath=sse,387&quot; and then running it under valgrind i get the following crash:

    vex amd64-&gt;IR: unhandled instruction bytes: 0x66 0xF 0x3A 0xB 0xC0 0x2
    &lt;snip&gt;
    ==18455== Either way, Valgrind will now raise a SIGILL signal which will
    ==18455== probably kill your program.

&quot;66 0f 3a 0b&quot; appears t be the roundsd instruction (from intel manual 2b):

   ROUNDSD — Round Scalar Double Precision Floating-Point Values
   Opcode      Instruction    64-bit Compat/  Description
                              Mode   Leg Mode
   66 0F 3A 0B ROUNDSD xmm1, Valid   Valid    Round the low packed double
   /r ib       xmm2/m64, imm8                 precision floating-point value in
                                              xmm2/m64 and place the result in
                                              xmm1. The rounding mode is
                                              determined by imm8.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>779519</commentid>
    <comment_count>1</comment_count>
    <who name="Julian Seward">jseward</who>
    <bug_when>2009-06-21 18:53:09 +0000</bug_when>
    <thetext>What CPU is this running on?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>779725</commentid>
    <comment_count>2</comment_count>
    <who name="">srp</who>
    <bug_when>2009-06-22 02:15:29 +0000</bug_when>
    <thetext>At the moment core 2 duo (T7600), but it also happened on a xeon box.

sRp

----- Original Message -----
From: &quot;Julian Seward&quot; &lt;jseward@acm.org&gt;
Sent: Sun, June 21, 2009 9:53
Subject:[Bug 197266] valgrind appears to choke on the xmms
instruction&quot;roundsd&quot; on x86_64


https://bugs.kde.org/show_bug.cgi?id=197266





--- Comment #1 from Julian Seward &lt;jseward acm org&gt;  2009-06-21 18:53:09 ---
What CPU is this running on?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>982826</commentid>
    <comment_count>3</comment_count>
    <who name="Julian Seward">jseward</who>
    <bug_when>2010-06-25 12:26:27 +0000</bug_when>
    <thetext>Fixed (vex r1985).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1171972</commentid>
    <comment_count>4</comment_count>
    <who name="Tom Hughes">tom</who>
    <bug_when>2011-10-11 07:40:53 +0000</bug_when>
    <thetext>*** Bug 283743 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>