Code Monkey home page Code Monkey logo

Comments (4)

ejgallego avatar ejgallego commented on August 31, 2024

Hi @rwhender , thanks for the report. I can't reproduce. What coq-serapi version are you using?

I use a bit simpler script:

(ReadFile "theories/Basics/Contractible.v")
(Exec 16)
(Query () Ast)
(Query ((sid 16)) Ast)

but should not matter for this kind of problem.

from coq-serapi.

rwhender avatar rwhender commented on August 31, 2024

Thanks for the response.

I am using coq-serapi 8.15.0+0.15.3, coq 8.15.2, and OCaml 4.09.1.

That is a strange complication. If I run your script, I do not observe the segfault.

However, I was able to find a more concise way of reproducing the error. If I create a new file (say "theories/Basics/Contracitble_truncated.v") that is truncated after line 28, then follow your script (except using (Query () Goals)), I observe a segfault.

(ReadFile "theories/Basics/Contractible_truncated.v")
(Exec 16)
(Query () Goals)

I'll note here that I did rebuild by running make clean then make once again to make sure no strange artifacts were causing problems. The segfault still occurred in this case.

A note about our application here might be useful to explain this potentially odd-looking approach. We wish to know as much as possible about what Coq knows about the current state of goals, proof mode, etc. for every sentence in a Coq source file. We use the feedback from the (Add... command to determine the state that needs to be executed, then execute it, then query the goals after every execution to determine the change in proof state (if any).

from coq-serapi.

ejgallego avatar ejgallego commented on August 31, 2024

Fixed by 47c5470 , thanks a lot for the report!

Indeed I was testing 0.15.2 , the bug was introduced in 0.15.3 . So you want to either revert to 0.15.2 or upgrade to 0.15.4 when it is available.

from coq-serapi.

rwhender avatar rwhender commented on August 31, 2024

Thank you for the quick resolution!

from coq-serapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.