18 Dec, 2008, Max7288 wrote in the 1st comment:
Votes: 0
Has anyone been able to figure out how to fix this error?

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.
18 Dec, 2008, tphegley wrote in the 2nd comment:
Votes: 0
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?
18 Dec, 2008, Max7288 wrote in the 3rd comment:
Votes: 0
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;
}
}
18 Dec, 2008, Zeno wrote in the 4th comment:
Votes: 0
Could you do "info local" in each of those frames?
18 Dec, 2008, Max7288 wrote in the 5th comment:
Votes: 0
Ive never done a info Local how would this be done (Hates sounding Newbish)
18 Dec, 2008, Max7288 wrote in the 6th comment:
Votes: 0
If its easier to Explain Via a Messenger You can contact me on any of those
18 Dec, 2008, David Haley wrote in the 7th comment:
Votes: 0
Generally we prefer to keep things on the forums so that everybody can see the thought process involved.

Here is a guide to using gdb which will help you debug this problem.
18 Dec, 2008, Max7288 wrote in the 8th comment:
Votes: 0
bot = 0
top = 177
mid = 88
18 Dec, 2008, David Haley wrote in the 9th comment:
Votes: 0
Those are the values where it crashes? In that case, what happens if you: "print soc_mess_list[mid]"

Do you know how big soc_mess_list is? Are you sure that top_of_socialt is the right size to be using as "top" for that array?
18 Dec, 2008, Max7288 wrote in the 10th comment:
Votes: 0
No symbol "mid" in current context.

Thats all I could get to come up using that line
And as for the Size of the Soc List im not Entirely Sure
18 Dec, 2008, David Haley wrote in the 11th comment:
Votes: 0
Err, you are typing these commands in at the point of the crash, right?
18 Dec, 2008, Max7288 wrote in the 12th comment:
Votes: 0
Indeed I am
18 Dec, 2008, Max7288 wrote in the 13th comment:
Votes: 0
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.
18 Dec, 2008, Max7288 wrote in the 15th comment:
Votes: 0
okay I finally got it work i believe

Cannot access memory at address 0x306d5413

#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
21 Dec, 2008, Max7288 wrote in the 16th comment:
Votes: 0
Bump

If any one Has even a slightest idea for me to check on please, Anything might help
this has got me and alot of other coders stumped.
21 Dec, 2008, Zeno wrote in the 17th comment:
Votes: 0
It looks like it's with socials? What happens if you remove all socials but like one? Maybe there's a "bad" social.
21 Dec, 2008, Max7288 wrote in the 18th comment:
Votes: 0
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
21 Dec, 2008, Zeno wrote in the 19th comment:
Votes: 0
Did someone type ban?

Print ban_node and ban_node->date
31 Dec, 2008, Max7288 wrote in the 20th comment:
Votes: 0
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..
0.0/32