-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segfault in "bare-mode" #567
Comments
Fixed by un-documenting |
LilithHafner
pushed a commit
to LilithHafner/julia
that referenced
this issue
Oct 11, 2021
* Remove fptype * Add generic alternatives for _autodot and _crossdot
ViralBShah
pushed a commit
that referenced
this issue
Nov 12, 2024
Stdlib: SparseArrays URL: https://github.com/JuliaSparse/SparseArrays.jl.git Stdlib branch: main Julia branch: master Old commit: 0dd8d45 New commit: 14333ea Julia version: 1.12.0-DEV SparseArrays version: 1.12.0 Bump invoked by: @ViralBShah Powered by: [BumpStdlibs.jl](https://github.com/JuliaLang/BumpStdlibs.jl) Diff: JuliaSparse/SparseArrays.jl@0dd8d45...14333ea ``` $ git log --oneline 0dd8d45..14333ea 14333ea Break recursion (#579) 07cf4a6 Update ci.yml (#578) 33491e0 added diagonal-sparse multiplication (#564) 8f02b7f doc: move solvers doc to `src\solvers.md` (#576) 485fd4b Inline sparse-times-dense in-place multiplication (#567) f10d4da added specialized method for 3-argument dot with diagonal matrix (#565) 70c06b1 Diagonal-sandwiched triple product for SparseMatrixCSC (#562) 313a04f Change default QR tolerance to match SPQR (#557) 81d49e9 Update ci.yml (#558) ``` Co-authored-by: Dilum Aluthge <dilum@aluthge.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Starting Julia with the -b option ("Bare: don't load default startup files"), starts the Julia process with a few variables being uninitialized (e.g. jl_get_system_hooks is never called), leading to a segmentation violation upon e.g. any error (jl_errorf) since jl_new_struct expects to be able to dereference its first argument.
E.g.
julia> asdf
Program received signal SIGSEGV, Segmentation fault.
0x00000000004669ba in jl_new_struct (type=0x0) at alloc.c:82
82 if (type->instance != NULL) return type->instance;
(gdb) info stack
#0 0x00000000004669ba in jl_new_struct (type=0x0) at alloc.c:82
#1 0x000000000042cf99 in jl_errorf (fmt=0xbca5d0 "%s not defined") at builtins.c:40
#2 0x0000000000465af9 in eval (e=0x106b760, locals=0x0, nl=0) at interpreter.c:85
...
Instead of segfaulting upon error, I would have expected "julia -b" to behave like some kind of minimum/bare interpreter.
The text was updated successfully, but these errors were encountered: