Re: [crash bug] dg scripts

From: Ron Hensley (ron@CROSS.DMV.COM)
Date: 02/28/98


Hello all,
Well i installed DG scripts a while back but put really testing and using
them on the back burner as i had lots more on my plate.

So far they seem to work fine, unless I try to use wait in any of its 3
formats:
wait 1 s
wait 1 t
wait untill 14:00

any of these in any script ive tried crashes. Here is one such script

wait 3 s
say hello

this is a greet program, and goes off when a player enters the room with
the mob its attached to. if its only say hello, it works fine. with the
wait added, 2-3 seconds after you enter the mud crahes.

GDB:
Program terminated with signal 11, Segmentation fault.
#0  script_driver (go=0x53269, trig=0xefbfd8d0, type=83716, mode=1)
    at dg_scripts.c:1969
1969        for (p = cl->cmd; *p && isspace(*p); p++);
(gdb) print *trig
$5 = {nr = -10004, attach_type = -65 'Ã', data_type = -17 '¬',
  name = 0x52734 "h%\005", trigger_type = 3, cmdlist = 0xefbfd918,
  curr_state = 0x1, narg = -272639172,
  arglist = 0x3 <Address 0x3 out of bounds>, depth = -272639208,
  wait_event = 0x0, purged = 88 'X', var_list = 0xefbfd918, next =
0xefbfd918,
  next_in_world = 0x5225d}
(gdb) bt
#0  script_driver (go=0x53269, trig=0xefbfd8d0, type=83716, mode=1)
    at dg_scripts.c:1969
#1  0xc0dc4 in trig_wait_event (causer=0xf05ba0, victim=0x0, info=-272640260)
    at dg_scripts.c:505
#2  0xbde3c in process_events () at dg_event.c:81
#3  0x532bb in heartbeat (pulse=83716) at comm.c:792
#4  0x53269 in game_loop (mother_desc=3) at comm.c:771
#5  0x52734 in init_game (port=7000) at comm.c:334

Gotta admit I dont understand the triggers wait queue as ive not studied
it yet, but im curious is WAIT works for anyone else, or if there is a
known/fixed problem with them. I did go back over the patch and I see
nothing different in mine from the distributed code.

    *******************************************************************
    *   Ron Hensley                     ron@dmv.com                   *
    *   Network Administrator           http://www.dmv.com/~ron       *
    *                                   PGP Key at WWW Page           *
    *   DelMarVa OnLine                 749-7898 Ext. 403             *
    *******************************************************************


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



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