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

Segfaults randomly on OSX #76

Closed
bmisiak opened this issue Sep 28, 2015 · 2 comments
Closed

Segfaults randomly on OSX #76

bmisiak opened this issue Sep 28, 2015 · 2 comments

Comments

@bmisiak
Copy link

bmisiak commented Sep 28, 2015

The compiler can crash on OSX with a segmentation fault, but it doesn't happen all the time. Sometimes it works correctly, sometimes crashes 5s, 20s into compiling. Seems random. I compiled the most recent code form the master branch. Let me know how to provide more details.

./pawncc gm.pwn -i./include
Pawn compiler 3.10          Copyright (c) 1997-2006, ITB CompuPhase
Segmentation fault: 11
@oscar-broman
Copy link
Contributor

Could you compile it with the debug configuration and run it under gdb?

To compile:

cd pawn
cd build
cmake ../source/compiler -DCMAKE_C_FLAGS="-m32 -fno-builtin" -DCMAKE_CXX_FLAGS="-m32 -fno-builtin" -DCMAKE_BUILD_TYPE=Debug
make

To run it:

lldb -- /path/to/pawncc -d3 file.pwn

After lldb opens, type run and hit enter.

@bmisiak
Copy link
Author

bmisiak commented Nov 9, 2015

Well, since I upgraded my system along with xcode and recompiled pawncc with debug symbols I haven't been able to reproduce the issue anymore. I guess it's best to close it for now, I'll report back if it reappears. 🍻

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

2 participants