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

Revert "Makefile: only use dune --release on release builds" #3774

Merged
merged 1 commit into from
Feb 18, 2025

Conversation

mtzguido
Copy link
Member

@mtzguido mtzguido commented Feb 18, 2025

For whatever reason, building the library without the --release flag makes a dune build call in everparse for the ASN1 X.509 parser explode with a stack overflow:

$ dune clean && fstar.exe --ocamlenv dune build
File "dune", lines 3-9, characters 0-113:
3 | (executable
4 |   (name ASN1_Parser)
5 |   (libraries
6 |     fstar.lib
7 |   )
8 |   (flags (:standard -w -8-9-11-26-27-33-39-20))
9 | )
Fatal error: exception Stack overflow

This is during compilation of the ASN1_X509.ml module, which is 58k lines long, and the offending function where the crash happens (dparse_cert) is 28k lines long.

This is probably hitting some limitation of ocamlopt, but also a reminder that we should try to generate more compact code. For now, just revert this, and pay some time in development builds.

This reverts commit 1ac7ed0.

cc @tahina-pro , this showed up in the everest build.

For whatever reason, building the library without the --release flag
makes a dune build call in everparse for the ASN1 parser explode with a
stack overflow:
```
$ dune clean && fstar.exe --ocamlenv dune build
File "dune", lines 3-9, characters 0-113:
3 | (executable
4 |   (name ASN1_Parser)
5 |   (libraries
6 |     fstar.lib
7 |   )
8 |   (flags (:standard -w -8-9-11-26-27-33-39-20))
9 | )
Fatal error: exception Stack overflow
```
This is during compilation of the ASN1_X509.ml module, which is
58k lines long, and the offending function where the crash happens
(dparse_cert) is 28k lines long.

This is probably hitting some limitation of ocamlopt, but also a
reminder that we should try to generate more compact code. For now, just
revert this, and pay some time in development builds.

This reverts commit 1ac7ed0.
@mtzguido mtzguido enabled auto-merge February 18, 2025 04:46
@mtzguido mtzguido merged commit f6113c8 into FStarLang:master Feb 18, 2025
9 checks passed
@mtzguido mtzguido deleted the dune branch February 18, 2025 05:24
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

Successfully merging this pull request may close these issues.

1 participant