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

Ocamldoc hangs when module references itself #7331

Closed
vicuna opened this issue Aug 21, 2016 · 3 comments
Closed

Ocamldoc hangs when module references itself #7331

vicuna opened this issue Aug 21, 2016 · 3 comments
Assignees
Milestone

Comments

@vicuna
Copy link

vicuna commented Aug 21, 2016

Original bug ID: 7331
Reporter: andy
Assigned to: @Octachron
Status: resolved (set by @Octachron on 2017-03-08T13:12:46Z)
Resolution: fixed
Priority: normal
Severity: major
Platform: x64
OS: Linux Mint
OS Version: 17.3
Version: 4.03.0
Target version: 4.06.0 +dev/beta1/beta2/rc1
Category: ocamldoc
Monitored by: @gasche

Bug description

The presence of the module rec M: sig ... end = M construct causes ocamldoc to hang.

Steps to reproduce

mkdir repro && cd repro
echo "module rec M: sig end = M" > main.ml
ocamldoc -html main.ml

It never finishes.

@vicuna
Copy link
Author

vicuna commented Feb 24, 2017

Comment author: @alainfrisch

An infinite loop -- even in ocamldoc -- is not a minor issue, bumping severity.

@vicuna
Copy link
Author

vicuna commented Mar 6, 2017

Comment author: @Octachron

I have proposed a fix for this infinite loop in #1085.

@vicuna
Copy link
Author

vicuna commented Mar 8, 2017

Comment author: @Octachron

This issue has been fixed for OCaml >=4.05 by merging the above github PR.

@vicuna vicuna closed this as completed Mar 8, 2017
@vicuna vicuna added this to the 4.06.0 milestone Mar 14, 2019
@vicuna vicuna added the bug label Mar 20, 2019
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

2 participants