CODE: Seg Fault in comm.c

From: SuddenToad (suddentoad@yahoo.com)
Date: 08/30/01


I am running CircleMUDBpl18 with Osasis 2.0 and DGScripts.  The
platform is Win2000 Prof with CygWin (newest production version)
running on top.  I am having trouble with a segmentation fault
that
is killing the MUD.  According to gdb the crash is occurring
when
the function king_welmar in castle.c accesses act() in comm.c.

Backtrace:
(gdb) bt
#0  0x004487b9 in act (str=0x1 <Address 0x1 out of bounds>,
hide_invisible=0, ch=0xa245090, obj=0x0, vict_obj=0x0, type=1)
at comm.c:2621
#1  0x0043c542 in king_welmar (ch=0xa245090, me=0xa245090,
 cmd=0, argument=0x48cdbc "") at castle.c:474
#2  0x0048d167 in mobile_activity () at mobact.c:58
#3  0x00443cad in heartbeat (pulse=32300) at comm.c:929
#4  0x00443b6d in game_loop (mother_desc=3) at comm.c:891
#5  0x00442d41 in init_game (port=4000) at comm.c:464
#6  0x004427ad in main (argc=1, argv=0xa011558) at comm.c:339
#7  0x61003aea in _size_of_stack_reserve__ ()
#8  0x61003cbd in _size_of_stack_reserve__ ()
#9  0x61003cfc in _size_of_stack_reserve__ ()
#10 0x004b3603 in cygwin_crt0 ()

Gdb is highlighting line 2621 in comm.c.
Surrounding code:
2615  void act(const char *str, int hide_invisible, struct
char_data *ch,
2616     struct obj_data *obj, const void *vict_obj, int type)
2617  {
2618     const struct char_data *to;
2619     int to_sleeping;
2620
2621     if (!str || !*str)
2622       return;
2623

I have combed the archives and have found nothing.  I cannot
figure out what is causing str to become out of bounds.  Any
help would be greatly appreciated and will be reciprocated
with general good will and warm butterflies of some sort.

Thanks,

SuddenToad


__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/06/01 PST