tag 306147 + woody
thanks

On Sun, Apr 24, 2005 at 04:37:09PM +0200, Petter Reinholdtsen wrote:
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 1082424224 (LWP 5203)]
> 0x4057dc37 in pthread_join () from /lib/tls/libpthread.so.0
> (gdb) bt
> #0  0x4057dc37 in pthread_join () from /lib/tls/libpthread.so.0
> #1  0x08086a14 in KinoCommon::showScenes ()

It's a bug in the woody version of kino, after all. The code boils down
to

void KinoCommon::showScenes()
{
        static pthread_t th = (pthread_t) 0;

        pthread_join(th, 0);
        pthread_create(&th, ...);
        (...)
}

The first pthread_join(0, 0) happens to work with linuxthreads
(returning ESRCH). NPTL, however, interprets the thread handle th
differently, and only performs lax error checking, leading to a segfault
when trying to join on a zero handle. This code is no longer present in
the version in sarge and sid, though, and as woody's glibc ships with
linuxthreads only, I still think that an update to stable is not needed.

Regards,

Daniel.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to