New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
two backtrace problems #3027
Comments
Comment author: administrator
Thanks for the nicely packaged source, I was able to reproduce and
This is indeed a stupid bug in the backtrace handling code (wrong
This is more subtle. The backtrace code tries to handle intelligently
That is, it tries not to say that the exception was raised at "raise x" In your particular case, however, the finalization code calls some You can boil this down to: let _ = The trace printed is
instead of
I believe the best we can get (without incurring excessive Java-like
i.e. you'll get a backtrace that is correct, but not as detailed as Best wishes,
diff -u -r1.6 backtrace.c void stash_backtrace(code_t pc, value * sp)
|
Comment author: administrator Revised backtrace handling 2001-11-26 by XL. |
Original bug ID: 629
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Hi,
at http://wwwtcs.inf.tu-dresden.de/~tews/Trace/trace.tar.gz
you find the sources that reproduce two problems with backtraces:
The trace starts with "Raised at module Format", although the
assertion fails in module Pvs_pretty,
there are lots of lines "Called from unknown location"
although everything is compiled with -g and Dynlink is not
used.
To reproduce the problem
cd Bug/Ccsl
make # you need GNU make here
export OCAMLRUNPARAM=b=1
./run
The assertion is triggered because method raise_bug in
interface_theory.ml puts an empty list the constructor
SmartApplication. I tried to reduce the size of the example
further, but as soon as I delete other substantial parts the
problem goes away. This happens also, if I put a comment around
the unused code in file interface_theory.ml (everything below
class ccsl_interface_theory).
Bye,
Hendrik
The text was updated successfully, but these errors were encountered: