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

odoc html-targets segfaults on odoc pages #277

Closed
dbuenzli opened this issue Jan 14, 2019 · 1 comment
Closed

odoc html-targets segfaults on odoc pages #277

dbuenzli opened this issue Jan 14, 2019 · 1 comment

Comments

@dbuenzli
Copy link
Contributor

dbuenzli commented Jan 14, 2019

Steps to reproduce:

> mkdir /tmp/doc 
> odoc --version 
1.3.0
> odoc compile --pkg odoc -o /tmp/page-index.odoc $(opam var odoc:doc)/odoc-pages/index.mld 
> odoc html-targets --output-dir /tmp/doc /tmp/page-index.odoc 
Segmentation fault: 11

I suspect some kind of infinite loop this may help: (see below)

* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0xb09)
    frame #0: 0x00000001000cf4ab odoc`camlModel__Maps__list_map_1542 + 27
odoc`camlModel__Maps__list_map_1542:
->  0x1000cf4ab <+27>: movq   0x8(%rbx), %rax
    0x1000cf4af <+31>: movq   %rax, 0x18(%rsp)
    0x1000cf4b4 <+36>: movq   (%rbx), %rax
    0x1000cf4b7 <+39>: movq   %rax, (%rsp)
Target 0: (odoc) stopped.
@dbuenzli
Copy link
Contributor Author

In fact it segfaults around here I suspect the odoc file should not be loaded as a Compilation_unit or something like this.

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

No branches or pull requests

1 participant