This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Segmentation fault on NPTL pthread_join
- From: Tom Gall <tom_gall at vnet dot ibm dot com>
- To: ropode at dist dot unige dot it
- Cc: GNU C Library <libc-alpha at sources dot redhat dot com>
- Date: Tue, 8 Nov 2005 15:59:46 -0600 (CST)
- Subject: Re: Segmentation fault on NPTL pthread_join
- References: <Pine.LNX.4.44.0511081722060.30802-100000@polare.laser.dist.unige.it><20051108185030.GA4873@lucon.org>
On Tue, 8 Nov 2005, H. J. Lu wrote:
> It has nothing to do with binutils. It may be a glibc issue.
>
>
> H.J.
> On Tue, Nov 08, 2005 at 05:23:01PM +0100, Roberto Podesta' wrote:
> > Hi,
> > we have recently moved a large C/C++ multithreaded application
> > (running on a PowerPC platform) from LinuxThreads
> > to NPTL, and we are having problems we didn't see with the previous (i.e.,
> > LinuxThreads) configuration. In particular,
> > when a thread tries for the first time to terminate another one by calling
> > pthread_cancel and then pthread_join, we get a
> > segmentation fault (all the threads are created joinable). By looking at
> > the corresponding core file, the problem seems
> > to occur in NPTL file pthread_join.c at line 86, where there is a call to
> > lll_wait_tid.
> > The versions we are using are:
> >
> > Glibc: 2.3.4
> > Gcc: 3.3.6-hammer
> > Binutils: 2.15
> >
> > Can anybody suggest how this problem can be solved?
Hi Roberto,
Best thing to perhaps do is create a smaller program demonstrates the
problem and post that here to the list.
>From what you describe it seems worth looking into and would be happy to
do so.
Regards
Tom
> > Thanks in advance for the support.
> >
> > Roberto
<snip>