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

            Bug ID: 362009
           Summary: Valgrind dumps core on unimplemented functionality
                    before threads are created
           Product: valgrind
           Version: 3.12 SVN
          Platform: Compiled Sources
                OS: Solaris
            Status: UNCONFIRMED
          Severity: minor
          Priority: NOR
         Component: general
          Assignee: jsew...@acm.org
          Reporter: iv...@ivosh.net

If VG_(unimplemented)() is called early during the main initialization, before
the threads are created,
Valgrind dumps core in show_sched_status_wrk().
That's because VG_(threads) is still NULL and it is dereferenced via
VG_(threads)[i].os_state...

This happens for example on Solaris when VG_(unimplemented)() is called from
VG_(load_ELF)() which is used during client image initialization.

Fix attached, regression testing went fine.

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

Reply via email to