Hi,
the following problem occures if I start gdb with a program linked
against pthread and try to run this program twice:
----------------------------------------------------
pthread-test> gdb ./test_thread
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-suse-linux"...
(gdb) run
Starting program: /hosts/zeppelin/users1/harry/pthread-test/./test_thread
[New Thread 1024 (LWP 22955)]
Program exited normally.
(gdb) run
Starting program: /hosts/zeppelin/users1/harry/pthread-test/./test_thread
/hosts/zeppelin/users1/harry/pthread-test/./test_thread: error while loading shared
libraries: libpthread.so.0: failed to map segment from shared object: Cannot allocate
memory
Program exited with code 0177.
(gdb)
----------------------------------------------------
The source for the program is:
----------------------------------------------------
int
main (int argc, char **argv)
{
return 0;
}
----------------------------------------------------
Compiled with:
g++ -pipe -march=i586 -g -fPIC -shared -D_REENTRANT -c -o test_thread.o
test_thread.cpp
Linked with:
g++ -g test_thread.o -lpthread -o test_thread
Version of g++ is 2.95.3
The glibc and pthread-library is the one from the SuSE-distribution version 7.1
and is from the package: glibc-2.2-7.i386.rpm
regards
Harald
--
Harald Haak [EMAIL PROTECTED]
GOM mbH http://www.gom.com
Mittelweg 7-8 Tel.: 0531/39029-0
38106 Braunschweig / Germany Fax.: 0531/39029-15
_______________________________________________
Bug-gdb mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gdb