RE: threads problems in RedHat9몗 媵

"Thomas Bailey" <[email protected]>
Newsgroups gmane.linux.redhat.devel
Message-ID <[email protected]>
Maxim,

I had a similar problem - the destructors associated with thread
specific storage are not called in the RH 9 pthread library either.

You can work around this by linking against the pthread and libc
libraries in /lib or /lib/i686, which seem to work. Unfortunately, the
only way I could do this was to change the perms on the libraries in
/lib/tls so that the linker couldn't read them.

Regards

Tom

-----Original Message-----
From: Maxim Koshelev [mailto:[email protected]] 
Sent: 17 June 2003 06:09
To: [email protected]
Subject: threads problems in RedHat9몗媵

---INTERNET EMAIL NOTIFICATION---
   This email originates from the Internet and therefore may not be from
the apparent sender. Please check any attachments carefully before
opening them as they may not be as they appear. 
If you have any doubts about the origin or content of the email please
contact PC Support on x2288.
---

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.



_______________________________________________
Redhat-devel-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/redhat-devel-list



-----------------------------------------------------------------------
The information contained in this e-mail is confidential and solely 
for the intended addressee(s). Unauthorised reproduction, disclosure, 
modification, and/or distribution of this email may be unlawful. If you 
have received this email in error, please notify the sender immediately 
and delete it from your system. The views expressed in this message 
do not necessarily reflect those of LIFFE Holdings Plc or any of its subsidiary companies.
-----------------------------------------------------------------------
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.