[DG-SCRIPTS] Trigedit error

From: Lloth - Raymond Budavari (rbudavar@MAIL.USYD.EDU.AU)
Date: 05/26/98


        I have been having a strange problem with the DG Scripts patch (pl3)
and after trying everything i could I turn to the list as a last resort. I
have a circlemud bpl11 with Oasis v1.6, after handpatching the
dg_for_oasis1.6a_dgpl3.patch into my code everything seemed to be fine,
except for the problem of trigedit crashing the mud. My gdb output is as
follows -
(gdb) bt
#0  0xef5a3d50 in strlen ()
#1  0xef5e1f8c in _doprnt ()
#2  0xef5eae14 in sprintf ()
#3  0x8977c in trigedit_disp_menu (d=0x496728) at dg_olc.c:194
#4  0x89644 in trigedit_setup_existing (d=0x496728, rtrg_num=0) at
dg_olc.c:171
#5  0x61068 in do_olc (ch=0x496ec0, argument=0x496728 "", cmd=371,
subcmd=5)
    at olc.c:234
#6  0x55424 in command_interpreter (ch=0x496ec0, argument=0xeffff340
"trigedit 1")
    at interpreter.c:844
#7  0x1d8ec in game_loop (mother_desc=3) at comm.c:666
#8  0x1cccc in init_game (port=9997) at comm.c:256
#9  0x1cc50 in main (argc=3, argv=0xeffff9c4) at comm.c:226

The mud crashes here -
sprintf(buf,
#if defined(CLEAR_SCREEN)
"^[[H^[[J"
#endif
  "Trigger Editor [%s%d%s]\r\n\r\n"

I have also tried this on a stock circle pl2 with dg scripts (which doesnt
crash when using trigedit) and after running both muds through gdb i can
say the mud that crashes never reaches the
       send_to_char(buf, d->character);
line. Also the trigedit_disp_menu is basically the same as say
medit_disp_menu (which i have traced through gdb also and it doesnt
crash). Gdb tells me the input into trigedit_disp_menu is the same in the
working and non working mud .. plus the conents of buf are similar before
being written to by the offending line. buf is unchanged from stock and
still declared globally in db.h (as MAX_STR_LENGTH).

Well sorry for the long winded message - just trying to provide as much
relevant information as possible and this problem i am sorry to say
appears to be beyond my ability to fix. I guess not being familar with
the strlen() warning is the cause of my problems, how ever any help
would be greatly appreciated!
                                                  -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
                                                  Raymond Budavari - Lloth
                                                  Coding/Admin on the UNDERDARK
                                                  lloth@deathsdoor.com
                                                  -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


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