Menu

#1581 trace "all" crashes when the scope of a method is NIL

5.0.0
closed
nobody
None
none
1
2023-01-01
2018-12-09
jfaucher
No

trace "all" crashes when the scope of a method is NIL.
In my working copy (v4.2), I fixed by applying something like that in the methods at risk :

RexxString *scopeName = (scope == TheNilObject ? scope->requestString() : scope->getId());
1 Attachments

Discussion

  • Rick McGuire

    Rick McGuire - 2018-12-09
    • status: open --> accepted
    • Pending work items: none --> tests
     
  • Rick McGuire

    Rick McGuire - 2018-12-09

    Thank you for the thorough analysis of the "scope" of the problem :-)

    Code committed [r11587]

     

    Related

    Commit: [r11587]

  • Erich

    Erich - 2018-12-15

    I can't find a simple test scenario for this, other than running external code with ::options trace all and capturing the output .. ideas?

     
    • Rick McGuire

      Rick McGuire - 2018-12-15

      Set the .error monitor to a object that captures the output (or even just throws it away). This bug is all about trace not crashing the interpreter.

       
  • Erich

    Erich - 2018-12-15
    • status: accepted --> pending
    • Pending work items: tests --> none
     
  • Erich

    Erich - 2018-12-15

    Set the .error monitor to a object that captures the output
    I love the .Error monitor (but never think of it)

    Added test with revision [r11616]

     

    Related

    Commit: [r11616]

  • Rony G. Flatscher

    • Status: pending --> closed
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB