<?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>232493</bug_id>
          
          <creation_ts>2010-03-28 19:14:10 +0000</creation_ts>
          <short_desc>start_wqthread not registered on OS X 10.6</short_desc>
          <delta_ts>2010-03-28 19:29:14 +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>general</component>
          <version>3.6 SVN</version>
          <rep_platform>Compiled Sources</rep_platform>
          <op_sys>macOS</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>216837</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Bernd Heller">bdheller</reporter>
          <assigned_to name="Julian Seward">jseward</assigned_to>
          <cc>bart.vanassche+kde</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>20</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>941655</commentid>
    <comment_count>0</comment_count>
      <attachid>42314</attachid>
    <who name="Bernd Heller">bdheller</who>
    <bug_when>2010-03-28 19:14:10 +0000</bug_when>
    <thetext>Created attachment 42314
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 &apos;thr&apos; 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&apos;s not meant as a solution, but as a pointer for someone more knowledgable in the valgrind darwin port.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>941663</commentid>
    <comment_count>1</comment_count>
    <who name="Bart Van Assche">bart.vanassche+kde</who>
    <bug_when>2010-03-28 19:29:14 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 216837 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>42314</attachid>
            <date>2010-03-28 19:14:10 +0000</date>
            <delta_ts>2010-03-28 19:14:10 +0000</delta_ts>
            <desc>Evil patch to register start_wqthread thread</desc>
            <filename>workqueue.patch</filename>
            <type>text/plain</type>
            <size>516</size>
            <attacher name="Bernd Heller">bdheller</attacher>
            
              <data encoding="base64">SW5kZXg6IGNvcmVncmluZC9tX3N5c3dyYXAvc3lzd3JhcC14ODYtZGFyd2luLmMKPT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PQotLS0gY29yZWdyaW5kL21fc3lzd3JhcC9zeXN3cmFwLXg4Ni1kYXJ3aW4uYwkocmV2aXNpb24g
MTEwOTcpCisrKyBjb3JlZ3JpbmQvbV9zeXN3cmFwL3N5c3dyYXAteDg2LWRhcndpbi5jCSh3b3Jr
aW5nIGNvcHkpCkBAIC00ODAsNiArNDgwLDggQEAKIAogICAgICAgTUxfKHN5bmNfbWFwcGluZ3Mp
KCJhZnRlciIsICJ3cXRocmVhZF9oaWphY2siLCAwKTsKIAorICAgICAgVkdfVFJBQ0sgKCBwcmVf
dGhyZWFkX2xsX2NyZWF0ZSwgMSwgdHN0LT50aWQgKTsKKwogICAgICAgLy8gR28hCiAgICAgICAv
KiBTYW1lIGNvbW1lbnRzIGFzIHRoZSAncmVsZWFzZScgaW4gdGhlIHRoZW4tY2xhdXNlLgogICAg
ICAgICAgc3RhcnRfdGhyZWFkX05PUkVUVVJOIGNhbGxzIHJ1bl90aHJlYWRfTk9SRVRVUk4gY2Fs
bHMK
</data>

          </attachment>
      

    </bug>

</bugzilla>