# Segmentation fault when a try to catch a InterruptException

**URL:** <https://discourse.julialang.org/t/segmentation-fault-when-a-try-to-catch-a-interruptexception/2285>\
**Category:** General Usage\
**Tags:** interruptexception\
**Created:** [February 24, 2017, 8:02pm UTC](https://discourse.julialang.org/t/segmentation-fault-when-a-try-to-catch-a-interruptexception/2285 "2017-02-24T20:02:11Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![yuyichao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yuyichao/32/20_2.png) [@yuyichao](https://discourse.julialang.org/u/yuyichao)\
**Post date:** [February 24, 2017, 9:52pm UTC](https://discourse.julialang.org/t/segmentation-fault-when-a-try-to-catch-a-interruptexception/2285/7 "2017-02-24T21:52:48Z")

</div>

Also note that in a script, you need to do `ccall(:jl_exit_on_sigint, Void, (Cint,), 0)` in order to turn a `SIGINT` into an exception. I have no idea why it is like this but it has been like this forever and doesn’t seem to be well documented…

---

_[View the full topic](https://discourse.julialang.org/t/segmentation-fault-when-a-try-to-catch-a-interruptexception/2285)._
