Menu

#8 Evaluating strings in eval_cmd seizes up

closed-fixed
None
8
2001-12-10
2001-12-09
Ryan Daum
No

It appears that evaluating any expression containing a
string causes a the whole mud to seize up. Obviously
doesn't during normal core compile, so must be some
condition unique to eval.

Discussion

  • Ryan Daum

    Ryan Daum - 2001-12-09

    Logged In: YES
    user_id=15747

    Problem appears to having something to do with string_fixquote:

    #0 0x40109156 in string_fixquote(String*) (str=0x80fec48)
    at string.cc:266
    #1 0x400e403e in Machine::call_verb_recursive(Object*, int,
    int, int, Objid const&, Objid const&, Objid const&, char
    const*, char const*) (this=0x8051bb4,
    o=0x80d7268, msgid=48, age=2, ticks=62, player=@0x80fe7d8,
    from=@0x80fe7e0, to=@0x80fe7e8, verb=0x80fec20 "eval",
    argstr=0x80fec25 "return \"5\";") at Machine.cc:257

     
  • Ryan Daum

    Ryan Daum - 2001-12-09

    Logged In: YES
    user_id=15747

    Going to assign this to maelstorm, since he's more familiar
    with the string stuff. It appears there's an infinite loop
    in string_fixquote (string::iterator s never becoming end())

     
  • Ryan Daum

    Ryan Daum - 2001-12-09
    • assigned_to: nobody --> maelstorm
     
  • Ryan Daum

    Ryan Daum - 2001-12-10

    Logged In: YES
    user_id=15747

    I ended up finding the logic error (an else if where there
    should have just been an if) by comparing against the
    original coolmud-2.3 sources. Appears to be working fine now.

     
  • Ryan Daum

    Ryan Daum - 2001-12-10
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB