Re: NPC Classes segfault trace

From: Welcor (welcor@dune.net)
Date: 10/24/01


----- Original Message -----
From: "AJ" <mielikki@EXILEMUD.COM>
> Program received signal SIGSEGV, Segmentation fault.
>
> 0x61082d7d in _libkernel32_a_iname ()
>
> (gdb) bt
<snip of kernel related frames>
> #5 0x00483ef8 in medit_disp_class (d=0xa238b00) at medit.c:340

<snip>
> { sprintf(buf, "%s%2d%s) %s\r\n",
> grn, i, nrm, npc_class_types[i]);
>

I bet the above is line 340, right ?

Make sure you have NUM_NPC_CLASS entries in the npc_class_types[] array.
A typical reason for a crash would be to index beyond the array bounds.
(I figure the npc_class_types is a const char *[] defined in constants.[ch])

Welcor

--
   +---------------------------------------------------------------+
   | 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