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

Some examples segfault on MacOS #355

Closed
lamech opened this issue Jul 16, 2023 · 2 comments
Closed

Some examples segfault on MacOS #355

lamech opened this issue Jul 16, 2023 · 2 comments

Comments

@lamech
Copy link

lamech commented Jul 16, 2023

I built v4.87 from source on my MacBook Pro M2 using ideas suggested in #304. The resulting binary handles a lot of things quite well, but notably produces segmentation faults on the following inputs when I run scripts/solveExamples.sh:

EXAMPLES/blackchk.inp
EXAMPLES/extragrid.inp
EXAMPLES/proteanp.inp
EXAMPLES/sat.inp
BEISPIEL/maxi.inp
BEISPIEL/nontriv.inp
BEISPIEL/sat.inp
BEISPIEL/stip.inp

I see the same segmentation faults if I use the v4.85 build from #304.

If I load an Ubuntu Dockerfile and build a Linux v4.87 for aarch64 inside the container, everything works fine and I do not see these segmentation faults.

Full output and Dockerfile.txt attached (I can't use Dockerfile because Github won't let me attach a file with no extension). Assuming one has Docker installed, one can build and run the Dockerfile with:

docker build -f Dockerfile.txt -t popeye-chess:latest .       # Build the Docker image
docker run -it --entrypoint /bin/bash popeye-chess            # Open a shell on the container
cd popeye && py EXAMPLES/blackchk.inp                         # Quick test, should not segfault

solveExamples-output.zip
Dockerfile.txt

@lamech
Copy link
Author

lamech commented Jul 21, 2023

Update: I've found that if I install llvm from Homebrew (which provides a more up to date clang etc) and rebuild, all the examples that segfaulted work! So, I believe this issue can be closed.

lamech pushed a commit to lamech/popeye that referenced this issue Jul 24, 2023
lamech pushed a commit to lamech/popeye that referenced this issue Jul 24, 2023
@lamech
Copy link
Author

lamech commented Jul 30, 2023

With #359 merged, this issue can be closed.

@lamech lamech closed this as completed Jul 30, 2023
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