JuliaLang / julia

The Julia Programming Language
https://julialang.org/
MIT License
45.41k stars 5.45k forks source link

`segfault` on start up unless using `--history-file=no` #51394

Open torfjelde opened 11 months ago

torfjelde commented 11 months ago

I don't know what just happened, but I did ]add DiffEqBase to a project of mine, and now I can no longer start a julia session, independently of whether I'm activating the project or not.

The following works:

julia --history-file=no

and then evaluating basic code works (though versioninfo causes same segfault).

I've also tried with --startup-file=no, and it as no effect so it doesn't seem to be an issue with anything like that.

Stacktrace can be found here: https://gist.github.com/torfjelde/5033a4b77af0be8b5382d8b1df1703ce

It's too long to include in the issue.

EDIT: After re-installing Julia (I'm using juliaup so I just used that to remove the release version, and then re-added it).

julia> versioninfo()
Julia Version 1.9.3
Commit bed2cd540a1 (2023-08-24 14:43 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 12 × Intel(R) Core(TM) i7-10710U CPU @ 1.10GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, skylake)
  Threads: 1 on 12 virtual cores
Keno commented 11 months ago

The stack trace shows generic GC corruption. We'd probably need an rr trace to debug this.

JeffBezanson commented 11 months ago

I believe this is due to 3b1bbe30e53c487929c47d2a1facbc6173848e6c. With that commit check-whitespace crashes for me in readline. EDIT: Oops, didn't see this is v1.9.3. That commit is only on master but seems to crash for me.