Closed
Description
openedon Dec 1, 2016
Case 1:
function try_no_segfault()
while true
try
sleep(1)
println("trying...")
# @async 1+1
catch e
if typeof(e) <: InterruptException
println("caught Interrupt")
return
end
end
end
return
end
Case 2:
function try_segfault()
while true
try
sleep(1)
println("trying...")
@async 1+1
catch e
if typeof(e) <: InterruptException
println("caught Interrupt")
return
end
end
end
return
end
In the successful case, run try_no_segfault()
, then CTRL+c to see a successful interrupt and return to the julia prompt.
To reproduce the segfault, run try_segfault()
, then CTRL+c to see a segfault and end of the julia session.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment