Skip to content
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

camlp4 sometimes triggers Stack_overflow in top-level when previous expression got interrupted #6212

Closed
vicuna opened this issue Oct 26, 2013 · 1 comment

Comments

@vicuna
Copy link

vicuna commented Oct 26, 2013

Original bug ID: 6212
Reporter: bnoordhuis
Assigned to: @bobzhang
Status: closed (set by @diml on 2016-12-07T17:27:32Z)
Resolution: open
Priority: low
Severity: minor
Version: 4.01.0
Target version: later
Category: -for Camlp4 use https://github.com/ocaml/camlp4/issues
Monitored by: @gasche

Bug description

When camlp4 is loaded, it sometimes triggers a Stack_overflow exception when expressions get interrupted in the top-level.

Steps to reproduce

$ ocaml
OCaml version 4.01.0

match "=" with | s when s = "=" -> true | _ -> false;

Interrupted.

match "=" with | s when s = "=" -> true | _ -> false;;

  • : bool = true

#load "dynlink.cma";;

#load "camlp4o.cma";;

    Camlp4 Parsing version 4.01.0

match "=" with | s when s = "=" -> true | _ -> false;

Interrupted.

match "=" with | s when s = "=" -> true | _ -> false;;

Error: Camlp4: Uncaught exception: Stack_overflow

Additional information

Verified with 4.00.1 and 4.01.0 on OS X 10.8 and Fedora 18. Note the single semi-colon in the first expression.

@vicuna
Copy link
Author

vicuna commented Dec 7, 2016

Comment author: @diml

Camlp4 is now a separate project. Please re-open a ticket on github [1] if you are still interested in seeing the original issue fixed.

[1] https://github.com/ocaml/camlp4/issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant