# Julia Bus Error after wake-up from sleep on linux

**URL:** <https://discourse.julialang.org/t/julia-bus-error-after-wake-up-from-sleep-on-linux/71965>\
**Category:** General Usage\
**Created:** [November 23, 2021, 6:49pm UTC](https://discourse.julialang.org/t/julia-bus-error-after-wake-up-from-sleep-on-linux/71965 "2021-11-23T18:49:29Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![dlakelan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dlakelan/32/8491_2.png) [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Post date:** [November 23, 2021, 6:49pm UTC](https://discourse.julialang.org/t/julia-bus-error-after-wake-up-from-sleep-on-linux/71965/1 "2021-11-23T18:49:29Z")

</div>

I run Julia on a Linux machine, the machine has NFS home directories with kerberos security. I have no idea if that is relevant but I mention it because it’s non-standard.

Pretty consistently after waking my computer up in the morning, if I type anything at all into the terminal where Julia was running, it gives Bus Error and dies.

Can anyone reproduce this? I’d be happy to file a bug report but would like more info than “under some conditions Julia gives a Bus Error” so it’d be good if someone else could reproduce.

This is Julia 1.17.0-rc3

---

<div class="post-metadata">

**Author:** ![dlakelan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dlakelan/32/8491_2.png) [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Post date:** [November 24, 2021, 11:30pm UTC](https://discourse.julialang.org/t/julia-bus-error-after-wake-up-from-sleep-on-linux/71965/2 "2021-11-24T23:30:27Z")

</div>

Here’s what this looks like. A Julia session was running since last night. This morning after waking my machine I typed 1 and enter and immediately after enter I get a Bus error.

```julia
julia> 1
Bus error

```

If anyone has suggestions of what would help to debug this, I’ll happily try stuff. For example is there some debugger I should run Julia within to see what causes the bus error? Instructions would be welcome.

---

<div class="post-metadata">

**Author:** ![dlakelan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dlakelan/32/8491_2.png) [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Post date:** [November 26, 2021, 5:17pm UTC](https://discourse.julialang.org/t/julia-bus-error-after-wake-up-from-sleep-on-linux/71965/3 "2021-11-26T17:17:10Z")

</div>

Well, just running Julia in gdb and waiting has failed to reproduce the bug. perhaps it requires that I actually do some computations. sigh

---

<div class="post-metadata">

**Author:** ![dlakelan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dlakelan/32/8491_2.png) [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Post date:** [November 26, 2021, 7:45pm UTC](https://discourse.julialang.org/t/julia-bus-error-after-wake-up-from-sleep-on-linux/71965/4 "2021-11-26T19:45:29Z")

</div>

And now… even though it’s running through **gdb** I get:

```julia
julia> 1
1

julia> lBus error

```

So evidently does this mean gdb itself bus errored, because it didn’t trap the error?

---

<div class="post-metadata">

**Author:** ![jameson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jameson/32/23_2.png) [@jameson](https://discourse.julialang.org/u/jameson)\
**Post date:** [November 30, 2021, 7:49pm UTC](https://discourse.julialang.org/t/julia-bus-error-after-wake-up-from-sleep-on-linux/71965/5 "2021-11-30T19:49:29Z")

</div>

Bus error is a certainly a possible symptom of a program running off a NFS mount and losing internet connection. It is why programs should not be run on NFS mounts, if that is of any help

---

<div class="post-metadata">

**Author:** ![shmiggles](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/shmiggles/32/19871_2.png) [@shmiggles](https://discourse.julialang.org/u/shmiggles)\
**Post date:** [November 30, 2021, 8:00pm UTC](https://discourse.julialang.org/t/julia-bus-error-after-wake-up-from-sleep-on-linux/71965/6 "2021-11-30T20:00:28Z")

</div>

In GNU Guix, running software stored in NFS is [standard practice](https://hpc.guix.info/blog/2017/11/installing-guix-on-a-cluster/).

---

<div class="post-metadata">

**Author:** ![jameson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jameson/32/23_2.png) [@jameson](https://discourse.julialang.org/u/jameson)\
**Post date:** [November 30, 2021, 8:12pm UTC](https://discourse.julialang.org/t/julia-bus-error-after-wake-up-from-sleep-on-linux/71965/7 "2021-11-30T20:12:25Z")

</div>

Fair enough, I should more precisely have said it is why programs should not be run on NFS mounts unless you are running a cluster which has reliable internal networking and does not experience service outages (such as computers getting put to sleep)

---

<div class="post-metadata">

**Author:** ![dlakelan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dlakelan/32/8491_2.png) [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Post date:** [December 1, 2021, 12:56am UTC](https://discourse.julialang.org/t/julia-bus-error-after-wake-up-from-sleep-on-linux/71965/8 "2021-12-01T00:56:09Z")

</div>

You think it’s the fact that Julia and the sysimage themselves are on the NFS mount? Because for example shells left open for days don’t bus error. I could move Julia and the sysimage to the local drive.

This wouldn’t explain why gdb failed to catch the bus error since it was running off the local drive.
