Bug 232493 - start_wqthread not registered on OS X 10.6
Summary: start_wqthread not registered on OS X 10.6
Status: RESOLVED DUPLICATE of bug 216837
Alias: None
Product: valgrind
Classification: Developer tools
Component: general (show other bugs)
Version: 3.6 SVN
Platform: Compiled Sources macOS
: NOR major
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-28 19:14 UTC by Bernd Heller
Modified: 2010-03-28 19:29 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Evil patch to register start_wqthread thread (516 bytes, patch)
2010-03-28 19:14 UTC, Bernd Heller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd Heller 2010-03-28 19:14:10 UTC
Created attachment 42314 [details]
Evil patch to register start_wqthread thread

I tried using valgrind with the patches for 10.6 applied. Both helgrind and drd tools fail quickly with a message like this:

Helgrind: hg_main.c:618 (map_threads_lookup): Assertion 'thr' failed.

After tracking it down some more, the issue is that pre_thread_ll_create is not called for the thread start_wqthread which probably is part of the work queue of OS X. This thread exists in my process although there is no direct use of work queue APIs.

I could get helgrind to work with the attached utterly awful and probably disastrous patch. It's not meant as a solution, but as a pointer for someone more knowledgable in the valgrind darwin port.
Comment 1 Bart Van Assche 2010-03-28 19:29:14 UTC

*** This bug has been marked as a duplicate of bug 216837 ***