-
Notifications
You must be signed in to change notification settings - Fork 108
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
segfault or abort with IT in small programs #47
Comments
Huh.. this looks fun ! I'll also investigate this bug ~ |
@jasonhemann After ~50,000 of runs, I'm still unable to reproduce the segfault: ubuntu@server ~> i=0; while :; do echo "[$i] $(./lci bug.lol)" ; i=$(( i+1 )) ; done 2> bug.log
...
[50000] 6
[50001] 6 I'm just wondering how you have compiled the |
Hi, I am compiling
|
@jasonhemann Hmm.. when I compiled it on Docker |
What other information can I supply that would help narrow this down? |
@initbar I'm compiling on OSX 10.10.5, with what I assume is the standard OSX build environment. |
@jasonhemann Hmm, then I'm not sure if I can be helpful 😅 (I don't have any Macs) |
I've duplicated this error on OSX using the following script:
This code segfaults in the first 200 iterations or so. When run on Linux, it runs perfectly fine, so this appears to be an OSX issue. I used XCode to build this, so it may also be a clang issue. Cursory debugging indicates that the segfault occurs on various calls to free() in the statement evaluation logic. EDIT: Looks like the error was a double free of the implicit |
The program
executes fine. I'm using
IT
as described in the 1.2 spec on expression syntax.However, when I try to do something more complicated involving
IT
, e.g.,I variously get abort traps or segfaults.
However, this is an intermittent failure. I can't always seem to produce it. I've been able to reproduce it by modifying this test file and building up to it.
The text was updated successfully, but these errors were encountered: