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

test(rules): reproduce #6843 #6956

Merged
merged 1 commit into from
Jan 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Reproduce #6843

Cross compilation setup that causes dune to crash

$ cat >dune-workspace <<EOF
> (lang dune 3.6)
> (context (default))
> (context
> (default
> (name esperanto)
> (host default)))
> EOF

$ cat >dune-project <<EOF
> (lang dune 3.6)
> EOF
$ cat >dune <<EOF
> (executable (name cat))
> EOF

$ export OCAMLFIND_CONF=$PWD/etc/findlib.conf
$ mkdir -p etc/findlib.conf.d
$ touch etc/findlib.conf etc/findlib.conf.d/esperanto.conf
$ dune build -x esperanto ./cat.exe 2>&1 | awk '/I must not/,/Only I will remain/'
I must not crash. Uncertainty is the mind-killer. Exceptions are the
little-death that brings total obliteration. I will fully express my cases.
Execution will pass over me and through me. And when it has gone past, I
will unwind the stack along its path. Where the cases are handled there will
be nothing. Only I will remain.