Welcome to the Builder Academy

Question What is Causing This Crash?

More
18 Jan 2013 08:37 #1370 by zusuk
If someone could direct me how to find/fix this issue, I would appreciate it. Here is the core dump.
Code:
luminari@luminarimud.com [~/luminari]# gdb bin/circle lib/core.tmp.27996 GNU gdb (GDB) CentOS (7.0.1-45.el5.centos) Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i386-redhat-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /home/luminari/luminari/bin/circle...done. [New Thread 27996] Reading symbols from /lib/libcrypt.so.1...(no debugging symbols found)...done. Loaded symbols for /lib/libcrypt.so.1 Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done. Loaded symbols for /lib/libc.so.6 Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done. Loaded symbols for /lib/ld-linux.so.2 Core was generated by `bin/circle -q 4100'. Program terminated with signal 11, Segmentation fault. #0 0x0808fda9 in do_wiznet (ch=0xaf4f6d0, argument=0xbfc0da08 "what are you up to?", cmd=801, subcmd=0) at act.wizard.c:2496 2496 if (IS_PLAYING(d) && (GET_LEVEL(d->character) >= level) && (gdb) list 2491 snprintf(buf2, sizeof(buf1), "\tc[wiznet] Someone: %s%s\tn", 2492 emote ? "<--- " : "", argument); 2493 } 2494 2495 for (d = descriptor_list; d; d = d->next) { 2496 if (IS_PLAYING(d) && (GET_LEVEL(d->character) >= level) && 2497 (!PRF_FLAGGED(d->character, PRF_NOWIZ)) 2498 && (d != ch->desc || !(PRF_FLAGGED(d->character, PRF_NOREPEAT)))) { 2499 if (CAN_SEE(d->character, ch)) 2500 msg = act(buf1, FALSE, d->character, 0, 0, TO_CHAR | DG_NO_TRIG); (gdb) info local buf1 = "\tc[wiznet] Orme: what are you up to?\tn", '\000' <repeats 474 times>"\370, p\300\277\245=\022\b\000\000\000\000w\000\000\000\030q\300\277\257-\017\b\320\366\364\n\000\000\000\000\030q\300\277\365=\022\b q\300\277\000\000\000z\000\000\000" buf2 = "\tc[wiznet] Someone: what are you up to?\tn\000\000\000\000\000\000d", '\000' <repeats 28 times>, "\003", '\000' <repeats 79 times>, "-", '\000' <repeats 19 times>, "\r", '\000' <repeats 11 times>, "x\371\202\000y\371\202\000\000\000\000\000Ps\300\277", '\000' <repeats 356 times>, "w\000\000" msg = <value optimized out> d = 0xb0b1f60 emote = 0 '\000' level = 31 (gdb) up #1 0x0812793e in command_interpreter (ch=0xaf4f6d0, argument=0xbfc0da04 "wiz what are you up to?") at interpreter.c:676 676 ((*complete_cmd_info[cmd].command_pointer) (ch, line, cmd, complete_cmd_info[cmd].subcmd)); (gdb) list 671 break; 672 case POS_FIGHTING: 673 send_to_char(ch, "No way! You're fighting for your life!\r\n"); 674 break; 675 } else if (no_specials || !special(ch, cmd, line)) 676 ((*complete_cmd_info[cmd].command_pointer) (ch, line, cmd, complete_cmd_info[cmd].subcmd)); 677 } 678 679 /* Routines to handle aliasing. */ 680 static struct alias_data *find_alias(struct alias_data *alias_list, char *str) (gdb) info local cmd = 801 line = 0xbfc0da07 " what are you up to?" arg = "wiz", '\000' <repeats 17 times>"\204, \232v\000\000\061\060\070\000\000\000\000\364\317\205\000\000\000\000\000\000\000\000\000-\255v\000\274q\300\277\240Z\"\b\237\032#\b\030s\300\277\364\317\205\000\274q\300\277\240Z\"\b\250r\300\277\064Jv\000\274q\300\277Ds\300\277\030s\300\277\240Z\"\b\000\000\000\000\\r\300\277\377\277\000\000\001\200\255\373\240Z\"\b\240Z\"\b\240Z\"\b\240Z\"\b\243Z\"\b\237\032#\b\240Z\"\b\237\032#\b", '\000' <repeats 20 times>"\210, \217\034\b\000\000\000\000\240Z\"\b\000\000\000\000\000\000\000\000\377\277\000\000\001\200\255\373\240Z\"\b\240Z\"\b\000\000\000\000\240Z\"\b\315Z\"\b\377\377\377\377\240Z\"\ba\340v", '\000' <repeats 13 times>, "a\340v", '\000' <repeats 13 times>, "a\340v\000\060\000\000\000\343r\300\277\031\000\000\000p\341\205\000\000\000\000\000p\341\205\000@\341\205\000\030\000\000\000@\341\205\000\000\000\000\000\246"... (gdb) up #2 0x080cdf60 in game_loop (local_mother_desc=3) at comm.c:898 898 command_interpreter(d->character, comm); /* Send it to interpreter */ (gdb) list 893 else { /* else: we're playing normally. */ 894 if (aliased) /* To prevent recursive aliases. */ 895 d->has_prompt = TRUE; /* To get newline before next cmd output. */ 896 else if (perform_alias(d, comm, sizeof(comm))) /* Run it through aliasing system */ 897 get_from_q(&d->input, comm, &aliased); 898 command_interpreter(d->character, comm); /* Send it to interpreter */ 899 } 900 } 901 902 /* Send queued output out to the operating system (ultimately to user). */ (gdb) info local input_set = {__fds_bits = {16, 0 <repeats 31 times>}} output_set = {__fds_bits = {1008, 0 <repeats 31 times>}} exc_set = {__fds_bits = {0 <repeats 32 times>}} null_set = {__fds_bits = {0 <repeats 32 times>}} last_time = {tv_sec = 1358464676, tv_usec = 591139} opt_time = {tv_sec = 0, tv_usec = 100000} process_time = {tv_sec = 0, tv_usec = 825} temp_time = {tv_sec = 0, tv_usec = 99175} before_sleep = {tv_sec = 1358464676, tv_usec = 491964} now = {tv_sec = 1358464676, tv_usec = 591896} timeout = {tv_sec = 0, tv_usec = 0} comm = "wiz what are you up to?\000es of valcrest\000d level in npc_warrior_behave.", '\000' <repeats 442 times> d = 0xaf417a0 next_d = 0x0 missed_pulses = <value optimized out> maxdesc = <value optimized out> aliased = 0 (gdb) up #3 0x080cf427 in init_game (argc=Cannot access memory at address 0x0 ) at comm.c:540 540 game_loop(mother_desc); (gdb) list 535 if (fCopyOver) /* reload players */ 536 copyover_recover(); 537 538 log("Entering game loop."); 539 540 game_loop(mother_desc); 541 542 Crash_save_all(); 543 544 log("Closing all sockets."); (gdb) info local No locals. (gdb) up #4 main (argc=Cannot access memory at address 0x0 ) at comm.c:358 358 init_game(port); (gdb) list 353 354 if (scheck) 355 boot_world(); 356 else { 357 log("Running game on port %d.", port); 358 init_game(port); 359 } 360 361 log("Clearing game world."); 362 destroy_db(); (gdb) info local pos = <value optimized out> dir = 0x9e3a068 "lib" (gdb) up Initial frame selected; you cannot go up.

Regards,
Zusuk

Website
www.luminariMUD.com

Main Game Port
luminariMUD.com:4100

Please Log in or Create an account to join the conversation.

More
19 Jan 2013 01:03 #1377 by Vatiken
"d" doesn't have a character is my best guess from the information provided.

tbaMUD developer/programmer

Please Log in or Create an account to join the conversation.

Time to create page: 0.220 seconds