bug-glibc
[Top][All Lists]
Advanced

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

linuxthreads/malloc problem


From: Reto Baettig
Subject: linuxthreads/malloc problem
Date: Wed, 01 Nov 2000 12:18:55 -0800

Hi

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.

The program starts a bunch of threads. The threads malloc a buffer and
signal another thread which frees the buffer. After the buffer is freed,
the whole circle starts again.

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.

But maybe this is this a well known problem?

Here's my configuration:

Linux reto0 2.2.14bapper #13 SMP Tue Sep 19 21:26:52 PDT 2000 alpha
unknown
Kernel modules         2.3.10-pre1
Gnu C                  egcs-2.91.66
Binutils               2.9.5.0.22
Linux C Library        2.1.3
Dynamic linker         ldd (GNU libc) 2.1.3

TIA

Reto



reply via email to

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