-
-
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
Seg fault upon interrupting disk io in progress #5399
Comments
Though I don't see it while testing with the local file system now, I still see it on a 'slow' filesystem simulated by sshfs mounting a directory on an EC2 instance. valgrind output is here - https://gist.github.com/amitmurthy/8431825 |
Could you try putting |
It improved the issue in the sense that it took me 4 counts of running file_io(60) and interrupting it before the seg fault happended, but it did nevertheless. This was the change I tried with :
Any other function to wrap with SIGATOMIC and try ? |
I would try adding But, this may be something of a lost cause as there is no general way to guarantee that everything is interrupt-safe. #2622 suggests wrapping all ccalls, but I'm kind of against this since it adds overhead and probably still won't make everything work. |
To simulate it, run the following code, interrupt once and run the function again.
NOTE: Came across this while I was simulating access to a slow filesystem (by using sshfs (via fuse) to mount an EC2 directory locally).
When I tried with the sshfs mountpoint -
/home/amitm/tmp/ec2
, julia segfaults the first time it is interrupted itself.The text was updated successfully, but these errors were encountered: