You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 5040 Reporter:@glondu Assigned to:@diml Status: closed (set by @xavierleroy on 2015-12-11T18:26:38Z) Resolution: fixed Priority: normal Severity: feature Fixed in version: 4.02.0+dev Category: ~DO NOT USE (was: OCaml general) Tags: patch Related to:#5941 Monitored by: maizatulin @gasche mehdi "Dmitry Grebeniuk" @diml@ygrek@jmeber@hcarty@Chris00
Bug description
Hello,
The default exception handler (called when the program aborts with an uncaught exception) doesn't use functions registered with Printexc.register_printer. Attached is a tentative patch. The only caveat I see so far is that if the printer raises an exception itself, the printed backtrace (if any) will the printer's.
There is a way to preserve the stack backtrace. At this point, I'm wondering whether most of the uncaught exception processing could be done in Caml. The main concern is Out_of_memory conditions. To be continued.
IMHO, this bug is "annoying" when coupled to the fact that the default exception handler does not print floats—there is no way to circumvent that for constructors of interest.
Original bug ID: 5040
Reporter: @glondu
Assigned to: @diml
Status: closed (set by @xavierleroy on 2015-12-11T18:26:38Z)
Resolution: fixed
Priority: normal
Severity: feature
Fixed in version: 4.02.0+dev
Category: ~DO NOT USE (was: OCaml general)
Tags: patch
Related to: #5941
Monitored by: maizatulin @gasche mehdi "Dmitry Grebeniuk" @diml @ygrek @jmeber @hcarty @Chris00
Bug description
Hello,
The default exception handler (called when the program aborts with an uncaught exception) doesn't use functions registered with Printexc.register_printer. Attached is a tentative patch. The only caveat I see so far is that if the printer raises an exception itself, the printed backtrace (if any) will the printer's.
Cheers,
--
Stéphane
File attachments
The text was updated successfully, but these errors were encountered: