-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
Segmentation fault on for
list comprehension at certain size
#87
Comments
Also on a Mac: CPLUS_INCLUDE_PATH=/opt/homebrew/include
LDFLAGS=/opt/homebrew/lib/libcrypto.a
SDKROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk The first test did not fail for me until 138017. The second and third tests both segfault. Interestingly, I had a typo while testing 138017. The following sequence at a new repl does work for me: (def size 13801)
(def size 138017)
(for [a (range size)] 1) |
This will be related to chunking of the sequences. |
Thanks for taking the time to report this!
I think this is an accurate assessment. I have some changes I'm planning to make to jank's sequences which will alleviate most of the common crashes by simplifying the API. I'll leave this open until that is fixed. Compared to figuring out AOT compilation, getting a REPL server going, getting release binaries for everyone, etc. this is low priority for me. However, this is something which I will fix, when it makes sense, since I recognize it's a blocker issue. |
Hey everyone, adding some cases to look at later on:
Also with
It never stops printing until it runs out of memory. Seems to be an issue with chunking. Maybe this article is useful for reference: Laziness and chunking It works fine using range directly:
Same with mapv:
|
commit 45d7de0 on Mac OS 14.6.1 Apple M1, memory 8G.
The following code gives segmentation fault at
size
137953 and higer:With 2 bindings it segfaults at
size
97 and higer:With 3 bindings it segfauts at
size
21 and higer:The text was updated successfully, but these errors were encountered: