-
Notifications
You must be signed in to change notification settings - Fork 130
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
Seg fault when assigning to 2-dimensional array of references #2
Comments
I can reproduce the segfault while running chuck in the terminal, however, in Xcode it doesn't crash (executes successfully AFAICT). I figured I'd try my hand at fixing this, but does anyone have a clue as to how I can debug the issue, i.e. get a stacktrace? |
@aknuds1 you might make sure Xcode is compiling running a 64-bit executable (or the same architecture as your terminal-based exe), as with memory access bugs (as this likely is) that will make a difference. Also make sure the command line version and Xcode project are from the exact same revision of the code. Is there a single-file test case that will also cause the crash? |
@spencersalazar I only use the executable built by Xcode, and it's built as 64-bit. Given that ChucK does not crash under Xcode, is there some other way to produce a stacktrace? |
Sorry, reproducing the original problem as described is a bit convoluted, I will look into producing a simpler test case. What I would really like though are static arrays of object references. :) |
I got a core dump, how can I use this to debug? I've only used gdb with coredumps on Linux, but that was ages ago. According to the crash report in Console, the stacktrace looks like this:
|
Rephrase assertion failure as error message
Rephrase assertion failure as error message
(slowly) cleaning house on time-honored tickets. FYI as of the latest 1.5.1.2, LiCK compiles and runs without error |
I honestly don't remember if I found a workaround for this, will investigate |
With a git clone of LiCK and
in one terminal and
in another I get a seg fault.
The offending line in syTuningsExample.ck appears to be
https://github.com/heuermh/lick/blob/master/examples/syTuningsExample.ck
The code here is not so nice because I'm trying hard to work around not having static arrays of object references.
The text was updated successfully, but these errors were encountered: