Julia SEGFAULT debian

Hi all,

This is a reissue of my issue from reddit:

I’ve been trying to learn Julia lately, originally I was getting along pretty well.

However, since I reinstalled my distro (switched from Ubuntu to Debian 12), I’ve not been able to even run Julia.

I’ve used the official juliaup install script as well as the cargo install for Juliaup. Each time I run Julia and invoke package mode, I am hit with a segfault each time.

Not to mention, often on Ubuntu I had numerous pc crashes(full crashes) when running Julia, often necessitating a hard power off.

When I get the segfaults, I usually try a previous Julia version, eg I’ve tried 1.11.2,1.11.1,1.11.0 and 1.10.7

I have made sure to remove all files in the respective Juliaup and Julia directories when reinstalling however I’ve come to no avail.

Trying to diagnose the segfault is hard because there’s no dump file I’m aware of.

If anyone can provide any assistance I’d be glad to know.

Thanks!

REDDIT POST:
I have posted this on r/julia under ‘Julia constant segfault Debian’
INCLUDES CONSOLE HISTORY/SCREENSHOTS

1 Like

Can you please share the code (no screenshots please) you’re trying to run when you get the segmentation fault, including the full error message? Also, Please read: make it easier to help you, it’s really hard to say anything useful when very little information is provided.

3 Likes

You should have linked to the thread.

Whenever anything segfaults on me, one of the first things I reach for is strace.

  • Run julia with strace.
  • Do whatever it is you do to make it segfault.
  • Then, look at the end of the error_log to see where it died.
strace -o error_log julia

After it segfaults:

tail error_log

Maybe it gives you a clue, maybe it doesn’t, but it doesn’t hurt to try. If you can get your system to give you a core dump, looking at the dump with gdb might help too.