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
(to devs) I would assume that the AST magic number should have been checked before deserialization of the AST. Does this report suggest that we have forgotten to update the AST magic number between 4.04 and 4.05? If so, then we could fix this in the 4.05 branch and in trunk.
Aside: I don't feel confident about magic numbers and I would be happier to let other people take care of it. For now they have been bumped in trunk, but not in the 4.06 release branch, so my impression is that something is still wrong.
Original bug ID: 7598
Reporter: bartjacobs
Assigned to: @damiendoligez
Status: resolved (set by @xavierleroy on 2017-10-19T13:24:18Z)
Resolution: fixed
Priority: normal
Severity: crash
Platform: x64
OS: macos
OS Version: 10.11.6
Version: 4.05.0
Target version: 4.06.0 +dev/beta1/beta2/rc1
Fixed in version: 4.06.0 +dev/beta1/beta2/rc1
Category: lexing and parsing
Related to: #7599
Monitored by: @gasche
Bug description
Suggested fix: add code to detect incompatibility and produce helpful error message.
Steps to reproduce
Install version 4.05 of OCaml and 4.04+1 of camlp4. Create file foo.ml containing the text
type bar = < quux: unit >
Run
ocamlopt.opt -c -pp camlp4o.opt foo.ml
This creates a segfault. See the OS X crash report attached.
File attachments
The text was updated successfully, but these errors were encountered: