-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorerror handlingHandling of exceptions by Julia or the userHandling of exceptions by Julia or the user
Description
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
endCase 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
endIn 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.
Metadata
Metadata
Assignees
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorerror handlingHandling of exceptions by Julia or the userHandling of exceptions by Julia or the user