[NEWBIE] Segmentation Fault

From: John Hines (jahweb@grnco.net)
Date: 02/11/99


Hi,
        I have been running into this small problem when using medit to
edit existing circle mobs. I have recently added in NPC Class and
Race options into my MUD. As expected I also added the ability to
set those races and classes in medit.

        I have gone over my .mob files several times to ensure the
proper format and always come up with a crash on different mobs
at different times. Some of which edited fine on a previous
occasion. I have include gdb output below...


Program received signal SIGSEGV, Segmentation fault.
0x4006ba8e in _IO_vfprintf (s=0xbffff898,
    format=0x80c5082 "%sI%s) Position  : %s%s\r\n%sJ%s)
Default   : %s%s\r\n%sK%s) Attack    : %s%s\r\n%sL%s) NPC
Flags : %s%s\r\n%sM%s) AFF Flags : %s%s\r\n%sO%s) NPC
Class : %s%s\r\n%sR%s) NPC Race  : %s%s\r\n%sS%s) Script
 : %s%s\r\n"..., ap=0xbffff978) at vfprintf.c:1080
vfprintf.c:1080: No such file or directory.<-----could this be o/s
reliant?

(gdb) info stack

#0  0x4006ba8e in _IO_vfprintf (s=0xbffff898,
    format=0x80c5082 "%sI%s) Position  : %s%s\r\n%sJ%s)
Default   : %s%s\r\n%sK%s) Attack    : %s%s\r\n%sL%s) NPC
Flags : %s%s\r\n%sM%s) AFF Flags : %s%s\r\n%sO%s) NPC
Class : %s%s\r\n%sR%s) NPC Race  : %s%s\r\n%sS%s) Script
 : %s%s\r\n"..., ap=0xbffff978) at vfprintf.c:1080
#1  0x40075f33 in _IO_vsprintf (
    string=0x80d5140 "\e[32mI\e[0m) Position  :
\e[33mStanding\r\n\e[32mJ\e[0m) Default   :
\e[33mStanding\r\n\e[32mK\e[0m) Attack    :
\e[33mhit\r\n\e[32mL\e[0m) NPC Flags : \e[36mSCAVENGER
ISNPC STAY-ZONE \r\n\e[32mM\e[0m) AFF Flags : \e[36mNO"...,
    format=0x80c5082 "%sI%s) Position  : %s%s\r\n%sJ%s)
Default   : %s%s\r\n%sK%s) Attack    : %s%s\r\n%sL%s) NPC
Flags : %s%s\r\n%sM%s) AFF Flags : %s%s\r\n%sO%s) NPC
Class : %s%s\r\n%sR%s) NPC Race  : %s%s\r\n%sS%s) Script
 : %s%s\r\n"..., args=0xbffff918) at iovsprintf.c:48
#2  0x40071291 in sprintf (
    s=0x80d5140 "\e[32mI\e[0m) Position  :
\e[33mStanding\r\n\e[32mJ\e[0m) Default   :
\e[33mStanding\r\n\e[32mK\e[0m) Attack    :
\e[33mhit\r\n\e[32mL\e[0m) NPC Flags : \e[36mSCAVENGER
ISNPC STAY-ZONE \r\n\e[32mM\e[0m) AFF Flags : \e[36mNO"...,
    format=0x80c5082 "%sI%s) Position  : %s%s\r\n%sJ%s)
Default   : %s%s\r\n%sK%s) Attack    : %s%s\r\n%sL%s) NPC
Flags : %s%s\r\n%sM%s) AFF Flags : %s%s\r\n%sO%s) NPC
Class : %s%s\r\n%sR%s) NPC Race  : %s%s\r\n%sS%s) Script
 : %s%s\r\n"...) at sprintf.c:33
---Type <return> to continue, or q <return> to quit---
#3  0x8096840 in medit_disp_menu (d=0x83285b8) at medit.c:884
#4  0x80958ab in medit_setup_existing (d=0x83285b8,
rmob_num=566)
    at medit.c:221

What concerns me the most is the fact that this particular mob edit
that has caused the code to halt was a mob that was edited fine 30
minutes prior.

any info on this stack would help me a great deal.

CircleMUD bpl14
OLC+ 2.1a
recent upgrade from DG_Scripts pl5a to pl6

thanks,
John


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST