Menu

#2053 When the trace is not activated, .TraceObject~option should not impact the error display

5.2.0
open
nobody
None
none
5
2026-03-20
2026-03-20
jfaucher
No

The trace is not activated, the MT prefix should not be displayed:

$ rexx -e ".traceObject~option = 'F'; say 1/0"
[R1   T1   I0   ]                       1 *-* say 1/0
[R1   T1   I0   ]                  Error 42 running INSTORE line 1:  Arithmetic overflow/underflow.
[R1   T1   I0   ]                  Error 42.3:  Arithmetic overflow; divisor must not be zero.
/local/rexx/oorexx/scripts/errors$ 

The attached script can be executed with no argument (no option set),
or by passing an option N or T or S or F or P
All the options except N will impact the error display.

The script contains:

  • the output for each option.
  • the call stack showing that displayUsingTraceOutput is called in case of error.
  • a code review of ooRexx 4.2 and 5.2 which confirms it's not a bug in ooRexx.
  • a partial fix.

The P option is not covered by the fix.
I'm not sure how to fix it.
In Activity::traceOutput, the output is completely cleared when the P option is enabled.

1 Attachments

Discussion

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB