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

Segfault with polymorphic variants #3802

Closed
vicuna opened this issue Oct 4, 2005 · 2 comments
Closed

Segfault with polymorphic variants #3802

vicuna opened this issue Oct 4, 2005 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Oct 4, 2005

Original bug ID: 3802
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Florian Hars
Version: 3.08.4
OS: Linux amd64
Submission from: p54902ede.dip0.t-ipconnect.de (84.144.46.222)

I am playing with an ocamlyacc parser for Relax-NG compact, and I can
reproducably make pure OCaml Code segfault in an incomplete pattern matching. My
code is at http://www.hars.de/tmp/segf.tar.gz It requires ulex and uses omake to
build.
The code as is doesn't do anything usefull, but it compiles without error, yet
segfaults both in bytecode and native code.

@vicuna
Copy link
Author

vicuna commented Oct 6, 2005

Comment author: administrator

Full_Name: Florian Hars

I am playing with an ocamlyacc parser for Relax-NG compact, and I can
reproducably make pure OCaml Code segfault in an incomplete pattern matching.

Actually the problem has nothing to do with polymorphic variants.
It is just that entry points should have monomorphic types, and the
code that checks that in ocamlyacc was never upgraded to polymorphic
objects and variants.

I fixed this in the main CVS branch.

Jacques

@vicuna
Copy link
Author

vicuna commented Oct 6, 2005

Comment author: administrator

Fixed in yacc/reader.c by JG (2005-10-06)

@vicuna vicuna closed this as completed Oct 6, 2005
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant