My apologies but in case anyone might be pursueing this as I am attempting to - my last gdb output was incorrect. I had some leftovers from dinking around in the make files - when I removed those and rebuilt OpenThreads in debug mode the example simplethreader still runs and workcrew still fails but I get more on the gdb output:
[EMAIL PROTECTED] /usr/src/OpenThreads/examples_src/workcrew/cygwin32.opt $ gdb workcrew GNU gdb 6.5.50.20060706-cvs (cygwin-special) Copyright (C) 2006 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 "i686-pc-cygwin"...(no debugging symbols found) (gdb) r 3 Starting program: /usr/src/OpenThreads/examples_src/workcrew/cygwin32.opt/workcr ew.exe 3 Loaded symbols for /cygdrive/c/WINDOWS/system32/ntdll.dll Loaded symbols for /cygdrive/c/WINDOWS/system32/kernel32.dll Loaded symbols for /usr/local/bin/cygOpenThreads.dll Loaded symbols for /usr/bin/cygwin1.dll Loaded symbols for /cygdrive/c/WINDOWS/system32/advapi32.dll Loaded symbols for /cygdrive/c/WINDOWS/system32/rpcrt4.dll FINAL RESULT: 40.000000 Error: Thread 0x10064d80 still running in destructor Program received signal SIGILL, Illegal instruction. [Switching to thread 1576.0xc7c] 0x61147ffc in _gm_ () from /usr/bin/cygwin1.dll (gdb) bt #0 0x61147ffc in _gm_ () from /usr/bin/cygwin1.dll #1 0xffffffff in ?? () #2 0x00000001 in ?? () #3 0x10064e00 in ?? () #4 0x610af250 in pthread_key::_fixup_after_fork () from /usr/bin/cygwin1.dll #5 0x5b580000 in ?? () #6 0x9066c35d in ?? () #7 0xffffb855 in ?? () #8 0xe589ffff in ?? () #9 0xb68dc35d in ?? () #10 0x00000000 in ?? () (gdb) c Continuing. Error: Thread 0x10064e88 still running in destructor Program received signal SIGSEGV, Segmentation fault. [Switching to thread 1576.0xd50] 0x10064f96 in ?? () (gdb) bt #0 0x10064f96 in ?? () #1 0x10001014 in thread_cleanup_handler () from /usr/local/bin/cygOpenThreads.dll #2 0x610ae248 in pthread::pop_cleanup_handler () from /usr/bin/cygwin1.dll #3 0x610ad691 in pthread::pop_all_cleanup_handlers () from /usr/bin/cygwin1.dll #4 0x610add1e in pthread::exit () from /usr/bin/cygwin1.dll #5 0x610ad6ba in pthread::cancel_self () from /usr/bin/cygwin1.dll #6 0x610ad713 in pthread::static_cancel_self () from /usr/bin/cygwin1.dll #7 0x610ae7d5 in pthread_cond::wait () from /usr/bin/cygwin1.dll #8 0x610b6280 in __pthread_cond_dowait () from /usr/bin/cygwin1.dll #9 0x61092aa8 in _sigfe () from /usr/bin/cygwin1.dll #10 0x10064b98 in ?? () #11 0x00000000 in ?? () (gdb) c Continuing. assertion "status == 0" failed: file "../PThreadCondition.c++", line 110 16584640 [unknown (0xC7C)] workcrew 1576 _cygtls::handle_exceptions: Exception: STATUS_PRIVILEGED_INSTRUCTION 16596250 [unknown (0xC7C)] workcrew 1576 open_stackdumpfile: Dumping stack trace to workcrew.exe.stackdump 16584640 [unknown (0xC7C)] workcrew 1576 _cygtls::handle_exceptions: Exception: STATUS_PRIVILEGED_INSTRUCTION 16584489 [unknown (0xD50)] workcrew 1576 _cygtls::handle_exceptions: Exception: STATUS_ACCESS_VIOLATION 16723128 [unknown (0xD50)] workcrew 1576 _cygtls::handle_exceptions: Error while dumping state (probably corrupted stack) Program received signal SIGSEGV, Segmentation fault. 0x10064f96 in ?? () (gdb) c Continuing. Program received signal SIGSEGV, Segmentation fault. 0x10064f96 in ?? () (gdb) bt #0 0x10064f96 in ?? () #1 0x10001014 in thread_cleanup_handler () from /usr/local/bin/cygOpenThreads.dll #2 0x610ae248 in pthread::pop_cleanup_handler () from /usr/bin/cygwin1.dll #3 0x610ad691 in pthread::pop_all_cleanup_handlers () from /usr/bin/cygwin1.dll #4 0x610add1e in pthread::exit () from /usr/bin/cygwin1.dll #5 0x610ad6ba in pthread::cancel_self () from /usr/bin/cygwin1.dll #6 0x610ad713 in pthread::static_cancel_self () from /usr/bin/cygwin1.dll #7 0x610ae7d5 in pthread_cond::wait () from /usr/bin/cygwin1.dll #8 0x610b6280 in __pthread_cond_dowait () from /usr/bin/cygwin1.dll #9 0x61092aa8 in _sigfe () from /usr/bin/cygwin1.dll #10 0x10064b98 in ?? () #11 0x00000000 in ?? () (gdb) c Continuing. 16945102 [sig] workcrew 1576 C:\cygwin\usr\src\OpenThreads\examples_src\workcrew \cygwin32.opt\workcrew.exe: *** fatal error - called with threadlist_ix -1 16933896 [unknown (0xC7C)] workcrew 1576 _cygtls::handle_exceptions: Exception: STATUS_ACCESS_VIOLATION Program exited with code 0400. (gdb) bt No stack. (gdb) bk _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
