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

            Bug ID: 384261
           Summary: Assert failure on helgrind with the SIDT instruction
           Product: valgrind
           Version: 3.13.0
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: helgrind
          Assignee: jsew...@acm.org
          Reporter: amadva...@gmail.com
  Target Milestone: ---

A program that uses threading and the SIDT instruction makes helgrind to fail
with the assertion failure:

Helgrind: hg_main.c:4478 (instrument_mem_access): Assertion 'szB > 8 && szB <=
512' failed.

In my understanding this happens because instrument_mem_access() expects memory
accesses of size 1,2,4 and >=8 bytes, but not of 6 bytes, like the SIDT
instruction is doing.

Just changing the assert in hg_main.c to allow szB==6 makes helgrind to work.

I'm using valgrind 13.0 compiled from source in a Ubuntu 14.04 x64 system
running a 32 bit program.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to