<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3199" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=509265714-13112007><FONT face=Arial 
size=2>Ignore this.  It was caused by a home-grown thread abstraction 
always referring to the 'main' thread.  It looks like this is the 
cause of the other faults I've been having as well.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=509265714-13112007></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=509265714-13112007><FONT face=Arial 
size=2>Cheers</FONT> </SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> fedora-list-bounces@redhat.com 
[mailto:fedora-list-bounces@redhat.com] <B>On Behalf Of </B>Simpson, 
John<BR><B>Sent:</B> 13 November 2007 09:52<BR><B>To:</B> 
fedora-list@redhat.com<BR><B>Cc:</B> Pyle, Andy<BR><B>Subject:</B> How do I get 
the same thread id as supplied by 'ps -AL' in LWPcolumn <BR></FONT><BR></DIV>
<DIV></DIV>
<TABLE>
  <TBODY>
  <TR>
    <TD bgColor=#ffffff>*** WARNING ***<BR><BR>This mail has originated 
      outside your organization,<BR>either from an external partner or the 
      Global Internet. <BR>Keep this in mind if you answer this message. 
  <BR></TD></TR></TBODY></TABLE>
<META content="MSHTML 6.00.2900.3199" name=GENERATOR>
<DIV><SPAN class=681133309-13112007><FONT face=Arial 
size=2>Hi</FONT></SPAN></DIV>
<DIV><SPAN class=681133309-13112007><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=681133309-13112007><FONT face=Arial size=2>I'm running 
2.6.18-1.2786.fc6 and I'm trying to debug an extravagantly threaded program 
(sixteen separate threads, not my code).  </FONT></SPAN></DIV>
<DIV><SPAN class=681133309-13112007><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=681133309-13112007><FONT face=Arial size=2>The problem I've got 
is that although each of the threads is uniquely identifiable using 'ps -AL' or 
'/proc/PID/task' (information which is also available on creation and 
destruction to gdb) I cannot get the same identifiers programmatically.  
I've tried pthread_self() and syscall(_NR_gettid) but they just return the 
identifier of the initiating thread rather than the thread I'm calling them 
from.  This makes debugging extremely difficult, for example I can see from 
'ps -AL' that some of the threads are doing the <defunct> zombie thing, 
but I don't know which ones they are.</FONT></SPAN></DIV>
<DIV><SPAN class=681133309-13112007><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=681133309-13112007><FONT face=Arial size=2>Any 
suggestions</FONT></SPAN></DIV>
<DIV><SPAN class=681133309-13112007><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=681133309-13112007><FONT face=Arial 
size=2>Thanks</FONT></SPAN></DIV>
<DIV><SPAN class=681133309-13112007><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=681133309-13112007><FONT face=Arial 
size=2>John</FONT></SPAN></DIV>
<TABLE>
  <TBODY>
  <TR>
    <TD 
      bgColor=#ffffff>********************************************************************<BR>This 
      email and any attachments are confidential to the intended recipient and 
      may also be privileged. If you are not the intended recipient please 
      delete it from your system and notify the sender. You should not copy it 
      or use it for any purpose nor disclose or distribute its contents to any 
      other person. <BR><BR>MBDA UK Limited, a company registered in England and 
      Wales, registration number 3144919 whose registered office is at Six Hills 
      Way, Stevenage, Hertfordshire, SG1 2DA, 
      England.<BR>********************************************************************<BR><BR></TD></TR></TBODY></TABLE></BODY></HTML>