Re: Confusing crash... *sigh* :)

From: The Merciless Lord of Everything (serces@mud.dk)
Date: 05/29/00


On Mon, 29 May 2000, Alex wrote:

> The backtrace, framelisting, etc is good, but what does that chunk
> of perform_act() show in your code?  And what was the actual error
> that gdb showed (ie, the couple of lines _before_ the backtrace)
*Oups* I forgot to paste that in, drat my mouse! :), Here comes the error:
-------------------------------------------
Core was generated by `bin/circle -q 4000'.
Program terminated with signal 11, Segmentation fault.
#0  0x804cd87 in perform_act (orig=0x81370e5 "p.", ch=0x863a8e8,
obj=0x86191b8, vict_obj=0x0, to=0x863a8e8) at comm.c:2033
(gdb) bt
#0  0x804cd87 in perform_act (orig=0x81370e5 "p.", ch=0x863a8e8,
obj=0x86191b8, vict_obj=0x0, to=0x863a8e8) at comm.c:2033
#1  0x804cf71 in act (str=0x81370c0 "There doesn't seem to be a coins in
$p.", hide_invisible=0, ch=0x863a8e8, obj=0x86191b8, vict_obj=0x0,
type=4) at comm.c:2086
#2  0x805d57e in get_from_container (ch=0x863a8e8, cont=0x86191b8,
arg=0xbffff4a8 "coins", mode=8, howmany=1) at act.item.c:223
#3  0x805dc7c in do_get (ch=0x863a8e8, argument=0xbffff6ab " coins from
corpse", cmd=136, subcmd=0) at act.item.c:354
#4  0x8089c3d in command_interpreter (ch=0x863a8e8, argument=0xbffff6a8
"get coins from corpse") at interpreter.c:796
#5  0x804a53b in game_loop (mother_desc=4) at comm.c:689
#6  0x8049a89 in init_game (port=4000) at comm.c:296
#7  0x80499ee in main (argc=3, argv=0xbffffc64) at comm.c:263
#8  0x4005bcb3 in __libc_start_main (main=0x8049784 <main>, argc=3,
argv=0xbffffc64, init=0x8048fb8 <_init>, fini=0x80d2f14
<__do_global_ctors_aux+36>,
    rtld_fini=0x4000a350 <_dl_fini>, stack_end=0xbffffc5c) at
../sysdeps/generic/libc-start.c:78
------------------------------------------------------------------------

I think you're completely right, there is something subtle going on, since
this problem apparently not possible to reproduce. Just tested once again,
no problem getting coins from corpse, wether they are there or not.

*sigh*

/Serces


"The Law of Self Sacrifice"
When you starve with a tiger, the tiger starves last.


     +------------------------------------------------------------+
     | 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 : 04/10/01 PDT