This is the mail archive of the
glibc-linux@ricardo.ecn.wfu.edu
mailing list for the glibc project.
linux pthreads patch
- To: glibc-linux at ricardo dot ecn dot wfu dot edu, Charles Flynn <flynn at ozy dot dec dot com>
- Subject: linux pthreads patch
- From: Charles Flynn <flynn at ozy dot dec dot com>
- Date: Fri, 17 Dec 1999 05:25:05 +1000
- Reply-To: glibc-linux at ricardo dot ecn dot wfu dot edu
Hi,
We were getting crashes on our application and strongly suspected Linux
pthreads.
We are running on Kernel 2.2.10 with glib-2.1.2 (i386-redhat-linux).
I have attached a typical stack trace which shows crash at
pthread_cond_broadcast. Some other stack traces we got showed the
application stopped at pthread_cond_wait.
We stress our application and after approx less than one our it dumps
core
I downloaded your patch, and the glibc-2.1.2 sources, patched the glibc
sources and rebuilt glibc-2.1.2 from scratch as test library using the
"Glibc 2 HOWTO".
I re-ran our stress test and it was still running after 3 hours after
which I stopped the test.
I will run it also over the weekend.
Our application is designed to be distributed and we normally test it on
our production machines ( we have three ). The 3 hour test I ran was not
on a production machine so I would like to re-run your patch on our
production machines for at least 24 hours.
I have a question which would aid this process greatly.
What is the best way to install your patches without having to un-tar
the sources on every target machine and build from scratch?
Our application uses the shared libraries ( I can confirm this using ldd
<app> )
I installed and built the patches as a test library using the "Glibc 2
HOWTO" .
Thanks for the patch
Regards
Charlie
gdb) where
#0 0x40046111 in __kill ()
#1 0x4001b475 in pthread_cond_broadcast (cond=0xb7fffc14)
at restart.h:21
#2 0x807711f in RPC_DgProcessRSend (chan=0x812a110, hdr=0xbf5ffcd4,
dgMsg=0x40e21638)
at /devel/radenk/linux/petal/src/rtl/rpc.dg2.c:1106
#3 0x8077b19 in RPC_DgProcessMsgThread (port=0x80a1ab8)
at /devel/radenk/linux/petal/src/rtl/rpc.dg2.c:1372
#4 0x806ef60 in Th_WorkerThread (idx=0x1)
at /devel/radenk/linux/petal/src/rtl/thcore.native.c:94
#5 0x4001bce9 in pthread_start_thread (arg=0xbf5ffe7c)
at manager.c:204
(gdb) l