diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-06-24 19:11:26 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-06-24 19:11:26 -0700 |
commit | d31b99878a2c7ed0fb52a88cb23cd7716d1ea40a (patch) | |
tree | 9d217a9e0ab069e5cc55951f09181ef2c53d5537 /tests/012/aseq.tl | |
parent | d64106a92d38753b1ed4b87819325496f8a0b682 (diff) | |
download | txr-d31b99878a2c7ed0fb52a88cb23cd7716d1ea40a.tar.gz txr-d31b99878a2c7ed0fb52a88cb23cd7716d1ea40a.tar.bz2 txr-d31b99878a2c7ed0fb52a88cb23cd7716d1ea40a.zip |
limit print depth/width when diagnosing oveflow.
* eval.c (error_trace): If the error is a stack overflow, then
save the printing depth and width, and set them to stringent
values, to minimize recursion in the printer. This minimizes
the chances of a segfault or runaway iteration under some
conditions. A repro test case is (print '#1=(#1#)) entered
into the listener.
Diffstat (limited to 'tests/012/aseq.tl')
0 files changed, 0 insertions, 0 deletions