> Then GDB outputs this: > [Thread debugging using libthread_db enabled] > Error while reading shared library symbols: > Cannot find new threads: generic error > Cannot find new threads: generic error
I experienced this on CentOS 5 when starting EP1 engine games in gdb; however, updating my gdb fixed it. Another SourceMod dev using a different system (Ubuntu, I think) couldn't resolve it by updating. I'm unsure about the root cause of this, but trawling with Google indicates gdb gets confused if the target binary isn't linked to pthread but later a binary using pthread is dlopened. There are probably two ways to get around it: either attach gdb to srcds after it's started or use 'LD_PRELOAD=/lib/libpthread.so.0' along with setting LD_LIBRARY_PATH. > (gdb) bt > #0 0xf7f8bb21 in _dl_debug_state () from /lib/ld-linux.so.2 > #1 0xf7f8f21c in ?? () from /lib/ld-linux.so.2 > #2 0x00000000 in ?? () I don't know if this is a result of the pthread problem or not. -Fyren _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux