Help with crash please

From: Andy Hubbard (andy.hubbard@ntlworld.com)
Date: 04/03/03


Hi all,

 I hope someone can point me in the right direction as to what I have broken
here ;)

 I recently moved my mud from a cygwin/windows box onto a Linux box, as it
was obvious I had introduced some very sloppy code of my creation, and
needed the extra memory debugging tools Linux provides ....

 I found an aweful lot, and cleaned up the code, but I am still left with
this common crash that occurs several times each day :

Program received signal SIGSEGV, Segmentation fault.
game_loop (mother_desc=5) at comm.c:858
858                             if ( !d->has_prompt && d->bufptr == 0 ) {
(gdb) #0  game_loop (mother_desc=5) at comm.c:858
#1  0x0804a4e3 in init_game (port=4500) at comm.c:441
#2  0x0804a2b8 in main (argc=2, argv=0x8156e60) at comm.c:384
#3  0x420158d4 in __libc_start_main () from /lib/i686/libc.so.6
(gdb) Cannot access memory at address 0x3b305b1b
(gdb) Cannot access memory at address 0x305b0eab
(gdb) input_set = {__fds_bits = {128, 0 <repeats 31 times>}}
output_set = {__fds_bits = {507776, 0 <repeats 31 times>}}
exc_set = {__fds_bits = {0 <repeats 32 times>}}
null_set = {__fds_bits = {0 <repeats 32 times>}}
last_time = {tv_sec = 1049417850, tv_usec = 104862}
opt_time = {tv_sec = 0, tv_usec = 100000}
process_time = {tv_sec = 0, tv_usec = 1095}
temp_time = {tv_sec = 0, tv_usec = 98905}
before_sleep = {tv_sec = 1049417850, tv_usec = 5957}
now = {tv_sec = 1049417850, tv_usec = 106529}
timeout = {tv_sec = 0, tv_usec = 0}
comm = " 'Too many interruptions...\0 ac now. &R<&r-&Y=&c-&C>&n", '\0'
<repeats 201 times>
d = (struct descriptor_data *) 0x3b305b1b
next_d = (struct descriptor_data *) 0x305b0eab
missed_pulses = 0
maxdesc = 18
aliased = 0

 This is on 'autogdb' so I have no more information than that.  But the fact
that I have some unaccessable memory in descriptor_data strikes me as being
very bad ;(

 I realise from the info I have made available it is impossible for anyone
to debug this for me, but a pointer as to what could be breaking this would
be most appreciated. Then I will have at least a starting point to get my
teeth stuck into.

Many thanks gurus,

Andy

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/26/03 PDT