threads problems in RedHat9+updates

Maxim Koshelev <[email protected]>
Newsgroups gmane.linux.redhat.devel
Message-ID <[email protected]>
Hi there,

It seems to me that pthread_cleanup_(pop|push) routines are broken in RH9.
My multithreaded application works well only if I comment out all 
'pthread_cleanup_' strings in my program.
In most cases using pthread_cleanup_ routines lead to:
(gdb bt):
#1  0x4002fea9 in __pthread_cleanup_upto () from /lib/tls/libpthread.so.0
#2  0x42027431 in _longjmp_unwind () from /lib/tls/libc.so.6
#3  0x4202739c in siglongjmp () from /lib/tls/libc.so.6
#4  0x4002ce62 in pthread_exit () from /lib/tls/libpthread.so.0

Segmentation fault at exiting from thread.
There is any fix for it? Or something was changed in RH9 about 
pthread_cleanup_ routines?

Thanks in advice for any explanation.
Maxim.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.