-
-
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 heavily nested function call #56690
Labels
bug
Indicates an unexpected problem or unintended behavior
regression 1.12
Regression in the 1.12 release
Milestone
Comments
Should we mark this issue and #56701 as 1.12 regressions and add them to the 1.12 milestone? This seems serious enough to warrant attention before releasing 1.12. |
Fixed by #56817 |
Sweet! I got another segfault, very similar to this issue (@v1.12) pkg> activate --temp
Activating new project at `/tmp/jl_8wkX5V`
(jl_8wkX5V) pkg> add SymbolicGA#segfault-reproducer
julia> using SymbolicGA: @ga
julia> @ga 2 (1, (1, 2))::(0, 1); # this now works
julia> @ga 3 (1, 2, 3)::Vector × 1f0::e1 # this still doesn't
[3585] signal 11 (1): Segmentation fault
in expression starting at REPL[5]:1
_jl_invoke at /cache/build/builder-demeter6-7/julialang/julia-master/src/gf.c:3422 [inlined]
ijl_invoke at /cache/build/builder-demeter6-7/julialang/julia-master/src/gf.c:3451
traverse at /home/serenity4/.julia/packages/SymbolicGA/bCHM9/src/expressions.jl:816 [inlined]
#traverse#51 at /home/serenity4/.julia/packages/SymbolicGA/bCHM9/src/expressions.jl:828
traverse at /home/serenity4/.julia/packages/SymbolicGA/bCHM9/src/expressions.jl:816 [inlined]
traverse at /home/serenity4/.julia/packages/SymbolicGA/bCHM9/src/expressions.jl:816 [inlined]
leaf_factorization_terms at /home/serenity4/.julia/packages/SymbolicGA/bCHM9/src/factorization.jl:81 [inlined]
replace_with_factorized! at /home/serenity4/.julia/packages/SymbolicGA/bCHM9/src/factorization.jl:73
#factorize!##0 at /home/serenity4/.julia/packages/SymbolicGA/bCHM9/src/factorization.jl:92 [inlined]
#traverse_indexed#55 at /home/serenity4/.julia/packages/SymbolicGA/bCHM9/src/expressions.jl:833
traverse_indexed at /home/serenity4/.julia/packages/SymbolicGA/bCHM9/src/expressions.jl:832 [inlined]
#traverse_indexed#55 at /home/serenity4/.julia/packages/SymbolicGA/bCHM9/src/expressions.jl:845
traverse_indexed at /home/serenity4/.julia/packages/SymbolicGA/bCHM9/src/expressions.jl:832 [inlined]
#traverse_indexed#55 at /home/serenity4/.julia/packages/SymbolicGA/bCHM9/src/expressions.jl:845
traverse_indexed at /home/serenity4/.julia/packages/SymbolicGA/bCHM9/src/expressions.jl:832
#traverse_indexed#55 at /home/serenity4/.julia/packages/SymbolicGA/bCHM9/src/expressions.jl:845
traverse_indexed at /home/serenity4/.julia/packages/SymbolicGA/bCHM9/src/expressions.jl:832
traverse_indexed at /home/serenity4/.julia/packages/SymbolicGA/bCHM9/src/expressions.jl:832
factorize! at /home/serenity4/.julia/packages/SymbolicGA/bCHM9/src/factorization.jl:92 [inlined]
factorize! at /home/serenity4/.julia/packages/SymbolicGA/bCHM9/src/factorization.jl:89 [inlined]
#generate_expression#65 at /home/serenity4/.julia/packages/SymbolicGA/bCHM9/src/macro.jl:189
generate_expression at /home/serenity4/.julia/packages/SymbolicGA/bCHM9/src/macro.jl:186 [inlined]
#codegen_expression#67 at /home/serenity4/.julia/packages/SymbolicGA/bCHM9/src/macro.jl:211 [inlined]
codegen_expression at /home/serenity4/.julia/packages/SymbolicGA/bCHM9/src/macro.jl:209
#codegen_expression#66 at /home/serenity4/.julia/packages/SymbolicGA/bCHM9/src/macro.jl:206
unknown function (ip: 0x7f76d0f2c8ba) at (unknown file)
codegen_expression at /home/serenity4/.julia/packages/SymbolicGA/bCHM9/src/macro.jl:206
unknown function (ip: 0x7f76d0f296aa) at (unknown file)
@ga at /home/serenity4/.julia/packages/SymbolicGA/bCHM9/src/macro.jl:49
jl_invoke_julia_macro at /cache/build/builder-demeter6-7/julialang/julia-master/src/ast.c:1138
jl_expand_macros at /cache/build/builder-demeter6-7/julialang/julia-master/src/ast.c:1200
jl_expand_macros at /cache/build/builder-demeter6-7/julialang/julia-master/src/ast.c:1249 [inlined]
jl_expand_in_world at /cache/build/builder-demeter6-7/julialang/julia-master/src/ast.c:1299
__repl_entry_lower_with_loc at /cache/build/builder-demeter6-7/julialang/julia-master/usr/share/julia/stdlib/v1.12/REPL/src/REPL.jl:339
jl_apply at /cache/build/builder-demeter6-7/julialang/julia-master/src/julia.h:2246 [inlined]
jl_f__call_latest at /cache/build/builder-demeter6-7/julialang/julia-master/src/builtins.c:883
#invokelatest#1 at ./essentials.jl:1056 [inlined]
invokelatest at ./essentials.jl:1052 [inlined]
toplevel_eval_with_hooks at /cache/build/builder-demeter6-7/julialang/julia-master/usr/share/julia/stdlib/v1.12/REPL/src/REPL.jl:346
toplevel_eval_with_hooks at /cache/build/builder-demeter6-7/julialang/julia-master/usr/share/julia/stdlib/v1.12/REPL/src/REPL.jl:352
toplevel_eval_with_hooks at /cache/build/builder-demeter6-7/julialang/julia-master/usr/share/julia/stdlib/v1.12/REPL/src/REPL.jl:345 [inlined]
eval_user_input at /cache/build/builder-demeter6-7/julialang/julia-master/usr/share/julia/stdlib/v1.12/REPL/src/REPL.jl:370
repl_backend_loop at /cache/build/builder-demeter6-7/julialang/julia-master/usr/share/julia/stdlib/v1.12/REPL/src/REPL.jl:482
#start_repl_backend#41 at /cache/build/builder-demeter6-7/julialang/julia-master/usr/share/julia/stdlib/v1.12/REPL/src/REPL.jl:467
start_repl_backend at /cache/build/builder-demeter6-7/julialang/julia-master/usr/share/julia/stdlib/v1.12/REPL/src/REPL.jl:464 [inlined]
#run_repl#48 at /cache/build/builder-demeter6-7/julialang/julia-master/usr/share/julia/stdlib/v1.12/REPL/src/REPL.jl:690
run_repl at /cache/build/builder-demeter6-7/julialang/julia-master/usr/share/julia/stdlib/v1.12/REPL/src/REPL.jl:676
jfptr_run_repl_26070.1 at /home/serenity4/.julia/juliaup/julia-nightly/share/julia/compiled/v1.12/REPL/u0gqU_WFKhp.so (unknown line)
run_std_repl at ./client.jl:490
jfptr_run_std_repl_58353.1 at /home/serenity4/.julia/juliaup/julia-nightly/lib/julia/sys.so (unknown line)
jl_apply at /cache/build/builder-demeter6-7/julialang/julia-master/src/julia.h:2246 [inlined]
jl_f__call_latest at /cache/build/builder-demeter6-7/julialang/julia-master/src/builtins.c:883
#invokelatest#1 at ./essentials.jl:1056 [inlined]
invokelatest at ./essentials.jl:1052 [inlined]
run_main_repl at ./client.jl:511
repl_main at ./client.jl:593 [inlined]
_start at ./client.jl:568
jfptr__start_57578.1 at /home/serenity4/.julia/juliaup/julia-nightly/lib/julia/sys.so (unknown line)
jl_apply at /cache/build/builder-demeter6-7/julialang/julia-master/src/julia.h:2246 [inlined]
true_main at /cache/build/builder-demeter6-7/julialang/julia-master/src/jlapi.c:922
jl_repl_entrypoint at /cache/build/builder-demeter6-7/julialang/julia-master/src/jlapi.c:1081
main at /cache/build/builder-demeter6-7/julialang/julia-master/cli/loader_exe.c:58
unknown function (ip: 0x7f76de558e07) at /usr/lib/libc.so.6
__libc_start_main at /usr/lib/libc.so.6 (unknown line)
unknown function (ip: 0x4010b8) at /workspace/srcdir/glibc-2.17/csu/../sysdeps/x86_64/start.S
Allocations: 43524877 (Pool: 43510208; Big: 14669); GC: 18
fish: Job 1, '~/.cargo/bin/julia +nightly --s…' terminated by signal SIGSEGV (Address boundary error) Shall we reopen this one, or file another issue? |
vtjnash
added a commit
that referenced
this issue
Jan 14, 2025
vtjnash
added a commit
that referenced
this issue
Jan 14, 2025
oscardssmith
added
bug
Indicates an unexpected problem or unintended behavior
regression 1.12
Regression in the 1.12 release
labels
Jan 14, 2025
vtjnash
added a commit
that referenced
this issue
Jan 16, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Indicates an unexpected problem or unintended behavior
regression 1.12
Regression in the 1.12 release
I get a segfault on nightly for the SymbolicGA.jl package:
If uncommenting the line that was commented here: serenity4/SymbolicGA.jl@3fe2ccc, with the same reproducer (setting it up with
pkg> add SymbolicGA#lookup-error
instead), I instead get an undefined symbol:Version info
Everything works fine on 1.11.
The text was updated successfully, but these errors were encountered: