-
Notifications
You must be signed in to change notification settings - Fork 5
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
Crashes with: Failed to renumber Goblint analyses
#10
Comments
It appears as if those modules are not loaded at all, even if I put a printout into base at the top-level that does not happen |
Maybe it's missing the |
I was suspecting it might be the switch to fpath: At 5162202cbb120bbbba1b53922c781e30d2a1a302 for Goblint and 91b7e22 it appears to work. Then, I went back to the newest version, and it now for some reason manages to find everything (???), but then fails with a |
The issue seems to be inside the let wrap_solver_state () =
let module Arg = struct
include A.PostSolverArg
let should_prune = false
end
in
print_endline("first one done");
let module S2' =
Constraints.GlobSolverFromEqSolver (Generic.LoadRunIncrSolver (Arg)) (EQSys) (LHT) (GHT)
in
print_endline("second one done");
let r2, _ = S2'.solve [] [] [] in
print_endline("solve done");
new solver_state_impl r2 |
It seems we actually need to keep some of the // For some reason, the standard Batteries output channels
// appear to be closed by default and writing to them
// raises [BatInnerIO.Output_closed]. This fixes it.
let out = IO.output_channel(Stdlib.stdout);
Messages.formatter := Format.formatter_of_output(out); With this change it now seems to work mostly fine, with the oddity that I can never see the source code of the input file, as that always causes a 404 error (not sure if copying in the file was always a manual step @keremc)? |
@michael-schwarz Yeah, it was always a manual step. Usually, I just symlink the source directory. |
Hmm, maybe we should think about making that step automatic, which should make it easier for people to use? |
Indeed it should be automatic like with g2html. The difficulty with copying/symlinking sources is making sure it all works on more complex analysis targets as well, like zstd analysis with compilation database, not just single input files. |
True, but even if we do not get that to work in a first approximation, it would already be nice if it works for simple examples. |
I think this issue is resolved now @stilscher? |
Yes it should be. Gobview is working in the current version without the mentioned error. And also the source files are copied automatically, at least for simple examples like our regression tests. Support for bigger projects like |
I stumbled across this because I wanted to take a look at #7.
With Goblint 9114bcc51f11f5ba921b1f0f8761d1d75cc16cb1 and GobView 1c5b81f, Gobview fails to renumber analyses, and the
renumber_goblint_analyses
raises a Not_found exception.I instrumented the code with debug printouts:
For some reason we only find a very specific subset of analyses that is registered with MCP in Gobview, and e.g. not
base
?Any ideas what is happening here @sofamaniac @keremc ?
The text was updated successfully, but these errors were encountered: