-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
jl_yield() causes segfault from c #15301
Comments
Please quote your code, especially macros in order to not pull in random unrelated people. Please also give a more complete picture of what you are doing. |
All I'm doing is writing to a buffer (float array) in RAM every 3 ms. I pass a pointer from julia to the RAM location, and then write to it. At this point I haven't even read the value back in Julia. Let me know if you'd like more details. Ie.
|
It's still hard to tell what you are doing without seeing the complete picture. |
i.e. the whole program or a stand alone repro. |
I run:
Which runs the following code for a while above successfully, then randomly crashes. The thing it runs is the code below:
When I comment out the jl_yield it works fine. I'm running it so I can share volatile memory between a julia process and a few others. But as I said it never gets read and crashes. If I remove the jl_yield I can read and write to it without issues. I hope that's enough to understand the plight! |
Is jl_yield being called from a different thread? |
no same one that i started with ccall from spawn 2 |
Bueller? Damn |
Can you please provide a MCVE? |
if turning off COPY_STACKS in options.h fixes this, i suspect the solution is #13099 |
Thanks guys! I'll take a look! On Tue, Mar 8, 2016, 11:28 Jameson Nash [email protected] wrote:
|
Closing due to lack of more info. |
I'm inserting a
jl_yield
so that my hungry process permits@parallel
and@spawnat
- but alas it doesn't look possible. It sometimes allows me to@spawnat
but mostly it just crashes.I tried:
uv_async_send
using multiple threads and it was about 1000 times slower than what I'm doing at present in a single thread (must be due tolib_uv
joins).If I leave the yield out it works fine :(
Not sure about this one!
Place of the call looks like:
The text was updated successfully, but these errors were encountered: