Intermittent Segfault

TI36XPro
Tue, 19 Aug 2025 01:30:24 +0000
General Usage

Hello,

I have recently started experiencing an intermittent segfault when using Julia with the vscode extension. I’ve been developing with this setup for well over a year and never experienced this before. I don’t even know where or how to begin to diagnose it and would appreciate any advice.

I am using Julia 1.10.0, vscode 1.85.2, and julia extension 1.79.2.

The problem is that at random times Julia will segfault. When the crash happens the integrated terminal in vscode crashes so fast I can’t see what the actual error message is in the terminal. I followed these instructions and I think I managed to capture it, copy/pasted below. Sometimes it happens 30 seconds after starting a session and other times it can take an hour. No specific action appears to trigger it. I’ve had it happen when executing my code as well doing something like trying to get the help for a function in the terminal (e.g., >? myfunc).

I tried starting Julia with --check-bounds=yes but it made no difference.
I also realize the stacktrace is missing from the text below. I don’t see that in the vscode terminal logs. Would anyone know how to start a vscode Julia session that somehow redirects stderr and stdout to file so that I might get the stacktrace?

Does anyone know where I should start in order to resolve this?
Should I try to update Julia to a newer version?

[21965] signal (11.128): Segmentation fault
in expression starting at none:0
jl_object_id__cold at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/builtins.c:455
type_hash at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/jltypes.c:1575
typekey_hash at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/jltypes.c:1605
jl_precompute_memoized_dt at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/jltypes.c:1685
" [[13,10,91,50,49,57,54,53,93,32,115,105,103,110,97,108,32,40,49,49,46,49,50,56,41,58,32,83,101,103,109,101,110,116,97,116,105,111,110,32,102,97,117,108,116,13,10,105,110,32,101,120,112,114,101,115,115,105,111,110,32,115,116,97,114,116,105,110,103,32,97,116,32,110,111,110,101,58,48,13,10,106,108,95,111,98,106,101,99,116,95,105,100,95,95,99,111,108,100,32,97,116,32,47,99,97,99,104,101,47,98,117,105,108,100,47,98,117,105,108,100,101,114,45,97,109,100,99,105,52,45,54,47,106,117,108,105,97,108,97,110,103,47,106,117,108,105,97,45,114,101,108,101,97,115,101,45,49,45,100,111,116,45,49,48,47,115,114,99,47,98,117,105,108,116,105,110,115,46,99,58,52,53,53,13,10,116,121,112,101,95,104,97,115,104,32,97,116,32,47,99,97,99,104,101,47,98,117,105,108,100,47,98,117,105,108,100,101,114,45,97,109,100,99,105,52,45,54,47,106,117,108,105,97,108,97,110,103,47,106,117,108,105,97,45,114,101,108,101,97,115,101,45,49,45,100,111,116,45,49,48,47,115,114,99,47,106,108,116,121,112,101,115,46,99,58,49,53,55,53,13,10,116,121,112,101,107,101,121,95,104,97,115,104,32,97,116,32,47,99,97,99,104,101,47,98,117,105,108,100,47,98,117,105,108,100,101,114,45,97,109,100,99,105,52,45,54,47,106,117,108,105,97,108,97,110,103,47,106,117,108,105,97,45,114,101,108,101,97,115,101,45,49,45,100,111,116,45,49,48,47,115,114,99,47,106,108,116,121,112,101,115,46,99,58,49,54,48,53,13,10,106,108,95,112,114,101,99,111,109,112,117,116,101,95,109,101,109,111,105,122,101,100,95,100,116,32,97,116,32,47,99,97,99,104,101,47,98,117,105,108,100,47,98,117,105,108,100,101,114,45,97,109,100,99,105,52,45,54,47,106,117,108,105,97,108,97,110,103,47,106,117,108,105,97,45,114,101,108,101,97,115,101,45,49,45,100,111,116,45,49,48,47,115,114,99,47,106,108,116,121,112,101,115,46,99,58,49,54,56,53,13,10]]
2025-08-18 21:07:14.074 [debug] [103a9d1] parsing data "inst_datatype_inner at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/jltypes.c:2081
jl_inst_arg_tuple_type at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/jltypes.c:2176
arg_type_tuple at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/gf.c:2232 [inlined]
jl_lookup_generic_ at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/gf.c:3020 [inlined]
ijl_apply_generic at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/gf.c:3072
getvariables at /home/USERNAME/.vscode-server/extensions/julialang.language-julia-1.79.2/scripts/packages/VSCodeServer/src/trees.jl:295
unknown function (ip: 0x7f9ce4b0204a)
_jl_invoke at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
jl_f__call_latest at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/builtins.c:812
#invokelatest#2 at ./essentials.jl:887 [inlined]
invokelatest at ./essentials.jl:884 [inlined]
repl_getvariables_request at /home/USERNAME/.vscode-server/extensions/julialang.language-julia-1.79.2/scripts/packages/VSCodeServer/src/trees.jl:269
unknown function (ip: 0x7f9ce4b01259)
_jl_invoke at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/gf.c:3076
dispatch_msg at /home/USERNAME/.vscode-server/extensions/julialang.language-julia-1.79.2/scripts/packages/JSONRPC/src/typed.jl:67
_jl_invoke at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/gf.c:3076
dispatch_msg at /home/USERNAME/.vscode-server/extensions/julialang.language-julia-1.79.2/scripts/packages/VSCodeServer/src/VSCodeServer.jl:103
unknown function (ip: 0x7f9ce4afedaa)
_jl_invoke at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/gf.c:3076
macro expansion at /home/USERNAME/.vscode-server/extensions/julialang.language-julia-1.79.2/scripts/packages/VSCodeServer/src/VSCodeServer.jl:153 [inlined]
macro expansion at ./task.jl:479 [inlined]
#235 at /home/USERNAME/.vscode-server/extensions/julialang.language-julia-1.79.2/scripts/packages/VSCodeServer/src/VSCodeServer.jl:147
unknown function (ip: 0x7f9ce4af9902)
_jl_invoke at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
start_task at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/task.c:1238
Allocations: 9369414 (Pool: 9355799; Big: 13615); GC: 15

3 posts - 2 participants