# Killing a script causes a segmentation fault

**URL:** <https://discourse.julialang.org/t/killing-a-script-causes-a-segmentation-fault/2688>\
**Category:** General Usage\
**Created:** [March 15, 2017, 8:02pm UTC](https://discourse.julialang.org/t/killing-a-script-causes-a-segmentation-fault/2688 "2017-03-15T20:02:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pfack](https://avatars.discourse-cdn.com/v4/letter/p/e47774/32.png) [@pfack](https://discourse.julialang.org/u/pfack)\
**Post date:** [March 15, 2017, 8:02pm UTC](https://discourse.julialang.org/t/killing-a-script-causes-a-segmentation-fault/2688/1 "2017-03-15T20:02:06Z")

</div>

When I run a script from bash like this

```julia
$ julia hello.jl

```

where hello.jl is just

```julia
println("hello")

```

and I try to kill it like any other program with Ctrl+c, it hangs for quite some time and finally comes back with

```julia
Segmentation fault (core dumped)

```

This seems like a bug. Any thoughts? Thanks.

---

<div class="post-metadata">

**Author:** ![fengyang.wang](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fengyang.wang/32/104_2.png) [@fengyang.wang](https://discourse.julialang.org/u/fengyang.wang)\
**Post date:** [March 16, 2017, 5:49am UTC](https://discourse.julialang.org/t/killing-a-script-causes-a-segmentation-fault/2688/2 "2017-03-16T05:49:00Z")

</div>

See also [https://github.com/JuliaLang/julia/issues/19222](https://github.com/JuliaLang/julia/issues/19222).
