Hi, I'm running RedHat 7 on an i686, gdb 5.0. Attached is a report of possible problem with gdb. The example shows that a C++ program loads and runs fine during the first call to gdb, but that it fails on all subsequent runs. The error message is "/home/zender/bin/LINUX/ccc: error while loading shared libraries: libpthread.so.0: failed to map segment from shared object: Cannot allocate memory" This message is over my head, perhaps it's not gdb-related at all. But it seems strange the program behavior changes within gdb. The program runs fine, repeatedly, from the shell command line. Again, my installation is stock RedHat 7, with all updates applied. I'm not smart enough to fiddle with threads so I have no idea why there is an error coming from libpthread. Any help appreciated. Willing to provide more info if needed. Thanks, Charlie zender@dust:~/c++$ gdb `which ccc` 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-redhat-linux"... (gdb) run Starting program: /home/zender/bin/LINUX/ccc [New Thread 1024 (LWP 13533)] Electric Fence 2.2.0 Copyright (C) 1987-1999 Bruce Perens <[EMAIL PROTECTED]> Start = Mon Oct 16 13:33:19 2000 This is /ccc version Unknown dated Unknown Command Line: /home/zender/bin/LINUX/ccc libcsz_c++ reports dbg_lvl_get() returns 0 HINT: Invoke with /ccc --dbg=3 to see current test Defined tpt with long_name = Temperature and units = kelvin Defined wvl with long_name = Wavelength at band center and units = meter Defined wvl_nbr with long_name = Number of wavelengths and units = number Wavelength at band center Wrote results to foo.nc ncks: ncks -C -H -F -m -u -d wvl,0.5e-6 -v wvl foo.nc End = Mon Oct 16 13:33:19 2000 Program exited normally. Current language: auto; currently c (gdb) run Starting program: /home/zender/bin/LINUX/ccc /home/zender/bin/LINUX/ccc: error while loading shared libraries: libpthread.so.0: failed to map segment from shared object: Cannot allocate memory Program exited with code 0177. -- Charlie Zender [EMAIL PROTECTED] (949) 824-2987/FAX-3256, Department of Earth System Science, University of California, Irvine CA 92697-3100 _______________________________________________ Bug-gdb mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-gdb