hrmm seems if you remove the reroll system and take out the MAX_CLASS/2 it
gives you a core. Add double the classes in the const.c and your fine no
problems. anyway heres the core. anyone got any ideas?

MAX_CLASS/2 = 2188

Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/i686/libc.so.6...done.
Loaded symbols for /lib/i686/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
#0  0x0807836e in write_to_buffer (d=0x40752ea8, txt=0x0, length=0) at
comm.c:1639
1639            length = strlen(txt);
(gdb) bt
#0  0x0807836e in write_to_buffer (d=0x40752ea8, txt=0x0, length=0) at
comm.c:1639
#1  0x08079485 in nanny (d=0x40752ea8, argument=0x25 <Address 0x25 out of
bounds>) at comm.c:2191
#2  0x08076f90 in game_loop_unix (control=4) at comm.c:854
#3  0x080769b2 in main (argc=2, argv=0xbfffdfa4) at comm.c:449
#4  0x4003c647 in __libc_start_main (main=0x8076828 <main>, argc=2,
ubp_av=0xbfffdfa4, init=0x8048ef0 <_init>,
    fini=0x80da5f0 <_fini>, rtld_fini=0x4000dcd4 <_dl_fini>,
stack_end=0xbfffdf9c) at ../sysdeps/generic/libc-start.c:129
(gdb) f 0
#0  0x0807836e in write_to_buffer (d=0x40752ea8, txt=0x0, length=0) at
comm.c:1639
1639            length = strlen(txt);
(gdb) lis
1634    {
1635        /*
1636         * Find length in case caller didn't.
1637         */
1638        if ( length <= 0 )
1639            length = strlen(txt);
1640
1641        /*
1642         * Initial \n\r if needed.
1643         */
(gdb) f 1
#1  0x08079485 in nanny (d=0x40752ea8, argument=0x25 <Address 0x25 out of
bounds>) at comm.c:2191
2191                    write_to_buffer(d,class_table[iClass].name,0);
(gdb) list
2186            send_to_desc("{CThe following classes are
available{x:\n\r\n\r",d);
2187
2188            for ( iClass = 0; iClass < MAX_CLASS; iClass++ )
2189            {
2190                    write_to_buffer(d,"      ",0);
2191                    write_to_buffer(d,class_table[iClass].name,0);
2192                    write_to_buffer(d,"\n\r",1);
2193            }
2194            write_to_buffer(d,"What is your class (help <class> for
more information)? ",0);
2195            d->connected = CON_GET_NEW_CLASS;
(gdb) info locals
d_old = (struct descriptor_data *) 0x25
d_next = (struct descriptor_data *) 0xbfffddf0
buf = "\n  Str: 12\n  Int: 14\n  Wis: 13\n  Dex: 15\n  Con: 11\n  Chr:
15\n  Luc:
15\n\r\000\215\025@@\215\025@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@?\215\025D",
'\000' <repeats 20 times>,
"[EMAIL PROTECTED]@[EMAIL PROTECTED]@\000\000\000\000"...
newbuf = "\000     titan", ' ' <repeats 19 times>,
"\000@@[EMAIL PROTECTED]@@m\025@@\215\025@@=\t@@[EMAIL PROTECTED]@[EMAIL 
PROTECTED]@\215\025@@\215\025@@\215\025@@[EMAIL PROTECTED]@[EMAIL 
PROTECTED]@?\215\025D",
'\000' <repeats 20 times>,
"[EMAIL PROTECTED]@[EMAIL PROTECTED]@c<[EMAIL 
PROTECTED]@\003\000\000\000\003\000\000\000H\024"...
arg =
"[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL 
PROTECTED]@\220\200\001\000\000\000\000>\004\000\000|[EMAIL PROTECTED]@[EMAIL 
PROTECTED]@[EMAIL PROTECTED]@\000\000\000\000xm\025@"...
strsave =
"\000\000\000\000\000\000\000\000\002\000\000\000\000\000\000\000&{\020\b",
'\000' <repeats 36 times>, "\002", '\000' <repeats 30 times>,
"[EMAIL PROTECTED]@\003\000@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL 
PROTECTED]@[EMAIL PROTECTED]@",
'\000' <repeats 108 times>, "@[EMAIL PROTECTED]@s\001@@[EMAIL PROTECTED]@[EMAIL 
PROTECTED]",
'\000' <repeats 11 times>,
"[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]"...
ch = (struct char_data *) 0x407588d8
victim = (struct char_data *) 0x0
pwdnew = 0xbfffddf0 " "
p = 0x0
iClass = 37
race = 2
i = 37
weapon = -1
pos = 37
fOld = 240 ''


Reply via email to