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: 4063 Reporter: padator Status: closed (set by @xavierleroy on 2006-07-18T09:29:56Z) Resolution: not a bug Priority: normal Severity: minor Version: 3.09.2 Category: ~DO NOT USE (was: OCaml general)
Bug description
When I do (on the test file attached)
ocamlc -g test_bug_backtrace.ml
./a.out 1
I get only this backtrace
Fatal error: exception Failure("failwith: OneExn")
Raised at file "pervasives.ml", line 22, characters 22-33
Called from file "test_bug_backtrace.ml", line 22, characters 15-26
I would like to know that it was also called from line 12, and then
line 7.
What is wierd is that when I use ocamldebug on the same file, it
has a correct backtrace and I am able to go through all the
intermediate callers.
Additional information
This is a simple example, but on my real program,
I am in the situation where I don't know at all from where the
exception was launched.
For instance I get
Fatal error: exception Failure("not supported")
Raised at file "pervasives.ml", line 22, characters 22-33
Called from file "list.ml", line 57, characters 20-23
Called from file "list.ml", line 57, characters 20-23
Called from file "cocci.ml", line 165, characters 19-34
Called from file "main.ml", line 55, characters 8-61
Called from file "main.ml", line 106, characters 39-46
Whereas It should have added just after the "pervasives"
Called from file "asttoctl.ml", line ... characters ...
In which case I know I have to look for the file asttoctl.ml
Original bug ID: 4063
Reporter: padator
Status: closed (set by @xavierleroy on 2006-07-18T09:29:56Z)
Resolution: not a bug
Priority: normal
Severity: minor
Version: 3.09.2
Category: ~DO NOT USE (was: OCaml general)
Bug description
When I do (on the test file attached)
ocamlc -g test_bug_backtrace.ml
./a.out 1
I get only this backtrace
Fatal error: exception Failure("failwith: OneExn")
Raised at file "pervasives.ml", line 22, characters 22-33
Called from file "test_bug_backtrace.ml", line 22, characters 15-26
I would like to know that it was also called from line 12, and then
line 7.
What is wierd is that when I use ocamldebug on the same file, it
has a correct backtrace and I am able to go through all the
intermediate callers.
Additional information
This is a simple example, but on my real program,
I am in the situation where I don't know at all from where the
exception was launched.
For instance I get
Fatal error: exception Failure("not supported")
Raised at file "pervasives.ml", line 22, characters 22-33
Called from file "list.ml", line 57, characters 20-23
Called from file "list.ml", line 57, characters 20-23
Called from file "cocci.ml", line 165, characters 19-34
Called from file "main.ml", line 55, characters 8-61
Called from file "main.ml", line 106, characters 39-46
Whereas It should have added just after the "pervasives"
Called from file "asttoctl.ml", line ... characters ...
In which case I know I have to look for the file asttoctl.ml
File attachments
The text was updated successfully, but these errors were encountered: