Can't debug Threaded application

Russell Shaw rjshaw@netspace.net.au
Mon Aug 29 17:06:00 GMT 2005


Daniel Jacobowitz wrote:
> On Mon, Aug 29, 2005 at 12:08:53PM -0400, jo@atsresults.com wrote:
> 
>>Does no one have answer to this problem?
>>
>>Is GDB useless for threaded applications now?
> 
> Of course not.  No one's responded because no one has advice that you
> can't find in the list archives.  This almost always means something is
> broken on your installation.  You may want to report it to Trustix,
> since that's your distribution.

I thought it was just me that had thread problems. In a program,
when i step over:

   result  = gnome_vfs_directory_list_load (&dir_list, directory,
                       GNOME_VFS_FILE_INFO_DEFAULT);

I get:

(gdb) next

   Program received signal SIG33, Real-time event 33.
   [Switching to Thread -1230148688 (LWP 3083)]
   0xb7a975a9 in poll () from /lib/tls/libc.so.6

and execution seems to abort because i can't reach any
breakpoints after this point. The program was compiled
with gcc-3.4.4 -g -O0. Gdb is version 6.3.

>>>Is there any work arounds for this bug?  I have tried this: 
>>>
>>>(gdb)> set auto-solib-add 0 
>>>(gdb)> handle S1G32 nostop noprint
> 
> These will definitely not help anything.  I wish people would stop
> suggesting them.



More information about the Gdb mailing list