You will probably need to give more information then that. What are the lines surrounding the code. What function is it in. Is Dragonball Truth a codebase? What's the backtrace?
Dragonball Truth is a Codebase From Circlemud/Diku This is a problem on the Public copies
Back Trace is
#0 0x08094b22 in find_action (cmd=75) at act.social.c:76 #1 0x08094b7b in do_action (ch=0x8f36538, argument=0xbfe99333 "", cmd=75, subcmd=0) at act.social.c:97 #2 0x080bf368 in command_interpreter (ch=0x8f36538, argument=0xbfe99330 "gig") at interpreter.c:1048 #3 0x0804e1a9 in game_loop (mother_desc=3) at comm.c:876 #4 0x0804e610 in init_game (port=1280) at comm.c:480 #5 0x0804e997 in main (argc=3, argv=0xbfe9b764) at comm.c:350
Surrounding lines
int find_action(int cmd) { int bot, top, mid;
bot = 0; top = top_of_socialt;
if (top < 0) return (-1);
for (;;) { mid = (bot + top) / 2;
if (soc_mess_list[mid].act_nr == cmd) return (mid); if (bot >= top) return (-1);
if (soc_mess_list[mid].act_nr > cmd) top = –mid; else bot = ++mid; } }
And Now it seems im getting a Entirely Different Error now… how Strange Now i get ./autorun: line 92: 14817 Segmentation fault bin/circle $FLAGS $PORT >>syslog 2>&1
18 Dec, 2008, David Haley wrote in the 14th comment:
Votes: 0
Without information from gdb about the cras, there's nothing that anybody can do about this.
And I have to say that it is pretty unlikely that the symbol "mid" doesn't exist if you're running it in the right stack frame, where "mid" is clearly declared… something else must be going on here.
#0 0x08094b22 in find_action (cmd=137) at act.social.c:76 #1 0x08094b7b in do_action (ch=0x8e32fa8, argument=0xbff76da6 "", cmd=137, subcmd=0) at act.social.c:97 #2 0x080bf368 in command_interpreter (ch=0x8e32fa8, argument=0xbff76da0 "shifty") at interpreter.c:1048 #3 0x080eeb90 in script_driver (go=0x8e32fa8, trig=0x8e33158, type=0, mode=0) at dg_scripts.c:2369 #4 0x080ef67e in greet_mtrigger (actor=0x8e2d7d0, dir=2) at dg_triggers.c:303 #5 0x080613ab in do_simple_move (ch=0x8e2d7d0, dir=2, need_specials_check=1) at act.movement.c:330 #6 0x080c764d in mobile_activity () at mobact.c:90 #7 0x0804dc65 in heartbeat (pulse=2900) at comm.c:1223 #8 0x0804e2d4 in game_loop (mother_desc=3) at comm.c:932 #9 0x0804e610 in init_game (port=1280) at comm.c:480 #10 0x0804e997 in main (argc=3, argv=0xbff80f44) at comm.c:350
bot = 0 top = 177 mid = 88
I think i Was trying to do the lines off of the other Error
Well I commented out All but one social and a new error popped up now
do_ban (ch=0xa85d500, argument=0xbfe92e23 "", cmd=94, subcmd=0) at ban.c:157 157 if (ban_node->date) {
And
This is the Backtrace after the crash
0 do_ban (ch=0xa85d500, argument=0xbfe92e23 "", cmd=94, subcmd=0) at ban.c:157 #1 0x080bf360 in command_interpreter (ch=0xa85d500, argument=0xbfe92e20 "ban") at interpreter.c:1048 #2 0x0804e1a9 in game_loop (mother_desc=3) at comm.c:876 #3 0x0804e610 in init_game (port=1280) at comm.c:480 #4 0x0804e997 in main (argc=3, argv=0xbfe95254) at comm.c:350
Also it seems it changes alittle if your multiplaying when it happens and it will list the crashers Ip address in the Error
okay its been a busy week with the family, I finally have a free moment to sit down and try to beat this new bug
Program received signal SIGSEGV, Segmentation fault. 0x00a4157e in strstr () from /lib/tls/libc.so.6 (gdb) bt #0 0x00a4157e in strstr () from /lib/tls/libc.so.6 #1 0x080a3f76 in isbanned (hostname=0xb7c8800c "68.230.115.236") at ban.c:96 #2 0x0804b42c in new_descriptor (s=3) at comm.c:1711 #3 0x0804e426 in game_loop (mother_desc=3) at comm.c:812 #4 0x0804e610 in init_game (port=1281) at comm.c:478 #5 0x0804e997 in main (argc=3, argv=0xbff43554) at comm.c:348 (gdb) print strstr $1 = {<text variable, no debug info>} 0xa41570 <strstr> (gdb) print isbanned $2 = {int (char *)} 0x80a3f30 <isbanned>
it crashes when some one is fighting and a person logs in so im guessing it has to do with the sockets of the mud some how but im not quite sure..
Program received signal SIGSEGV, Segmentation fault.
0x08094b22 in find_action (cmd=137) at act.social.c:76
76 if (soc_mess_list[mid].act_nr == cmd)
It seems to happen randomly when fighting with mobs, I checked with Player Vs Player And Mob Vs. Mob.