On 07.24, J.A. Magallon wrote:
> Hi all.
> 
> I have a multi-threaded application that has benn running ok on my (permanent?)
> Cooker system, till latest glibc-gcc upgrades. Now, I just dies with a
> Segmentation fault.
> 
> From gdb, I get:
> 
> Program received signal SIG32, Real-time event 32.
> 0x4036f3b5 in pthread_getconcurrency () from /lib/i686/libpthread.so.0
> (gdb) 
> (gdb) bt
> #0  0x4036f3b5 in pthread_getconcurrency () from /lib/i686/libpthread.so.0
> #1  0x4036ef58 in pthread_getconcurrency () from /lib/i686/libpthread.so.0
> #2  0x4036e771 in pthread_create () from /lib/i686/libpthread.so.0
> #3  0x40048941 in SMP::Thread::run() (this=0x80b0464) at ast/smp.cc:159
> #4  0x40048c12 in SMP::Gang::spawn(void (*)(void*), void*) (this=0x80b0360, 
>     proc=0x40076240 <ShadeEngine::cameraShadeThread(void*)>, data=0xbfffe450)
>     at ast/smp.cc:206
> 
> I have looked through the cooker list, but the only thing I found was a
> similar problem with Mozilla many time ago...
> 
> I have read through manuals and they say that signals 32+ are 'real time
> signals', and that linuxthreads use the first 3 internally. And that
> gdb should not stop the app with one of that signals, to debug MT apps.
> 

I found a workaround for gdb. Put this in ~/.gdbinit:

handle SIG32 nostop noprint pass

;)

-- 
J.A. Magallon <[EMAIL PROTECTED]>      \                 Software is like sex:
werewolf.able.es                         \           It's better when it's free
Mandrake Linux release 9.2 (Cooker) for i586
Linux 2.4.22-pre7-jam1m (gcc 3.3.1 (Mandrake Linux 9.2 3.3.1-0.6mdk))

Reply via email to