| Anonymous | Login | Signup for a new account | 2013-05-23 18:47 CEST | ![]() |
| Main | My View | View Issues | Change Log | Roadmap |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||||
| 0005040 | OCaml | OCaml general | public | 2010-04-28 22:36 | 2013-03-14 17:30 | ||||||
| Reporter | glondu | ||||||||||
| Assigned To | |||||||||||
| Priority | normal | Severity | feature | Reproducibility | always | ||||||
| Status | confirmed | Resolution | open | ||||||||
| Platform | OS | OS Version | |||||||||
| Product Version | |||||||||||
| Target Version | Fixed in Version | ||||||||||
| Summary | 0005040: The default exception handler doesn't use functions registered with Printexc.register_printer | ||||||||||
| 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 | ||||||||||
| Tags | No tags attached. | ||||||||||
| Attached Files | |||||||||||
Notes |
|
|
(0005444) xleroy (administrator) 2010-05-04 15:07 |
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. |
|
(0007606) glondu (reporter) 2012-06-21 22:34 |
The documentation for Printexc.catch says: This function is deprecated: the runtime system is now able to print uncaught exceptions as precisely as Printexc.catch does. But I think this is not true because of this bug. |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2010-04-28 22:36 | glondu | New Issue | |
| 2010-04-28 22:36 | glondu | File Added: 0001-Use-Printexc.to_string-if-possible-in-default-except.patch | |
| 2010-05-04 15:07 | xleroy | Note Added: 0005444 | |
| 2010-05-04 15:07 | xleroy | Status | new => feedback |
| 2012-06-21 22:34 | glondu | Note Added: 0007606 | |
| 2012-06-21 22:34 | glondu | Status | feedback => new |
| 2012-06-27 15:47 | doligez | Status | new => confirmed |
| 2013-03-11 21:24 | dim | Relationship added | related to 0005941 |
| Copyright © 2000 - 2011 MantisBT Group |