[This was previously a bug report involving -lpth and -lgc on Debian GNU/Linux. I found out that the problem stems from -lgc dragging in -lpthread.]
This is a simple test to show that Pth and Pthreads can't run in the same executable on my machine. Is there a good reason why this is so? I would have thought that Pth would happily run in a single kernel thread. Any advice to getting this working is greatly appreciated. I can supply more details if you ask me for what you need. $ cat t.c #include <pth.h> int main (int argc, char **argv) { pth_init (); return 0; } $ gcc -o t t.c -lpth -lpthread $ gdb t GNU gdb 5.0.90-cvs (MI_OUT) Copyright 2001 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-linux"...(no debugging symbols found)... (gdb) r Starting program: /fig/home/src/slog/t (no debugging symbols found)...(no debugging symbols found)...[New Thread 1024 (LWP 19531)] (no debugging symbols found)...(no debugging symbols found)... Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1024 (LWP 19531)] 0x4003f6e1 in __errno_location () from /lib/libpthread.so.0 (gdb) bt #0 0x4003f6e1 in __errno_location () from /lib/libpthread.so.0 #1 0x40078878 in sigprocmask () from /lib/libc.so.6 #2 0x400268ad in __pth_scheduler () from /usr/lib/libpth.so.13 #3 0x4002939e in pth_ctrl () from /usr/lib/libpth.so.13 #4 0x40097834 in makecontext () from /lib/libc.so.6 #5 0x4001532c in _dl_debug_mask () from /lib/ld-linux.so.2 #6 0x40015868 in ?? () Cannot access memory at address 0xf414 (gdb) quit The program is running. Exit anyway? (y or n) y $ Thanks, -- Gordon Matzigkeit <[EMAIL PROTECTED]> //\ I'm a FIG (http://fig.org/) Committed to freedom and diversity \// I use GNU (http://fig.org/gnu/) ______________________________________________________________________ GNU Portable Threads (Pth) http://www.gnu.org/software/pth/ User Support Mailing List [EMAIL PROTECTED] Automated List Manager (Majordomo) [EMAIL PROTECTED]