bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: linuxthreads/malloc problem


From: Charles G Waldman
Subject: Re: linuxthreads/malloc problem
Date: Thu, 2 Nov 2000 08:42:33 -0600 (CST)

Wolfram Gloger writes:

 > <address@hidden> writes:
 > > I have problems with malloc/free when I use it in my pthread programs. I
 > > keep getting segfaults when I start 2 instances of the program.
 > 
 > Huh?  That would indicate either a kernel or a hardware problem.

Is this on a Linux machine?  What kernel version?

I was part of the group that worked on Python2.0.  There was some code
in the Python core which used pthread mutexes.  The test suite which
exercised this code would exhibit misbehavior, but only on Linux.
There were also anecodal reports that the behavior would differ if you
had multiple instances of the program running. It was speculated, but
not proven, that the problems we were seeing might be due to an
underlying Linux kernel bug.  Note, this is all highly speculative,
nobody managed to prove it!  We wound up simply changing the code in
question, using a different approach which did not trigger the
problem.  But it is a continuing task to try to better understand what
was happening, so I am very interested in hearing about any problems
with Pthreads which are really due to Linux kernel flaws.

 > > I wrote a little test program that demonstrates the problems on my
 > > machine. When I remove the malloc/free's, everything runs fine. I can
 > > send it to you when you think it helps.

I would like to see this program.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]