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: 529 Reporter: administrator Status: closed Resolution: not a bug Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Bug description
In a piece of code I have the following:
try ...
with
| Foo.Bar.Baz -> () (* HERE *)
| ...
In the normal operation of the code, Baz is repeatedly raised from within Foo.Bar and is a normal condition.
As given above, everything works fine. However, if I remove the line marked "HERE", I get a segmentation fault (instead of an uncaught exception). If I replace the line marked "HERE" with the following:
| Foo.Bar.Baz -> raise Foo.Bar.Baz
I get "Uncaught exception: Foo.Bar.Baz".
The question is, why did I get a seg fault instead of uncaught exception when I removed the line?
My reason for sending this message is to find out whether this is/was a known bug (this is OCaml 3.01), or whether I should take the time to try to reduce the size of the example so that the bug becomes more clear.
The text was updated successfully, but these errors were encountered:
My reason for sending this message is to find out whether this
is/was a known bug (this is OCaml 3.01), or whether I should take
the time to try to reduce the size of the example so that the bug
becomes more clear.
Your description doesn't seem to match a known bug in 3.01, so I'd be
interested in a test program that reproduces the crash.
Original bug ID: 529
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
In a piece of code I have the following:
try ...
with
| Foo.Bar.Baz -> () (* HERE *)
| ...
In the normal operation of the code, Baz is repeatedly raised from within Foo.Bar and is a normal condition.
As given above, everything works fine. However, if I remove the line marked "HERE", I get a segmentation fault (instead of an uncaught exception). If I replace the line marked "HERE" with the following:
I get "Uncaught exception: Foo.Bar.Baz".
The question is, why did I get a seg fault instead of uncaught exception when I removed the line?
My reason for sending this message is to find out whether this is/was a known bug (this is OCaml 3.01), or whether I should take the time to try to reduce the size of the example so that the bug becomes more clear.
The text was updated successfully, but these errors were encountered: