Been getting a lot of strange crashes of late. Backtraces show like: Core was generated by `circle -C3 4008'. Program terminated with signal 11, Segmentation fault. Reading symbols from /usr/lib/libz.so.1...done. Reading symbols from /lib/libcrypt.so.1...done. Reading symbols from /usr/lib/libmysqlclient.so.6...done. Reading symbols from /lib/libc.so.6...done. Reading symbols from /lib/libnsl.so.1...done. Reading symbols from /lib/libm.so.6...done. Reading symbols from /lib/ld-linux.so.2...done. Reading symbols from /lib/libnss_nisplus.so.2...done. Reading symbols from /lib/libnss_files.so.2...done. Reading symbols from /lib/libnss_nis.so.2...done. Reading symbols from /lib/libnss_dns.so.2...done. Reading symbols from /lib/libresolv.so.2...done. #0 0x2ab71fd9 in chunk_alloc () from /lib/libc.so.6 (gdb) #0 0x2ab71fd9 in chunk_alloc () from /lib/libc.so.6 #1 0x2ac0c2c0 in __DTOR_END__ () from /lib/libc.so.6 Cannot access memory at address 0x10. (gdb) 264 265 #endif /* CIRCLE_WINDOWS || CIRCLE_MACINTOSH */ 266 267 268 #define plant_magic(x) do { (x)[sizeof(x) - 1] = MAGIC_NUMBER; } while (0) 269 #define test_magic(x) ((x)[sizeof(x) - 1]) 270 271 int main(int argc, char **argv) 272 { 273 int pos = 1; (gdb) No locals. (gdb) #0 0x2ab71fd9 in chunk_alloc () from /lib/libc.so.6 #1 0x2ac0c2c0 in __DTOR_END__ () from /lib/libc.so.6 Cannot access memory at address 0x10. (gdb) (gdb) (gdb) $1 = 51 '3' (gdb) (gdb) I've compiled with -g, no -O2, and this is what I have gdb run: bt list info locals where print *ch print *d print *buf print *obj quit Does anyone know of any good sites that discuss how to debug something like a MUD, getting into some of the advanced stacktracing functions of gdb? I know I'm obviously not tapping a lot of it's potential but I've never really needed to do much beyond this level. -- StormeRider Creator of Winds of Storm mudhosters.net:4008 Head Coder of the Last Sunrise, thelastsunrise.net:9000 +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 04/10/01 PDT