JuliaLang / julia

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

Symbol lookup error: undefined symbol: `jl_fptr_sparam` #56701

Open serenity4 opened 6 days ago

serenity4 commented 6 days ago

Here is a bug apparently related to precompilation:

(@v1.12) pkg> activate --temp
  Activating new project at `/tmp/jl_Q2CEQp`

(jl_Q2CEQp) pkg> add SymbolicGA#lookup-error
... [truncated]

julia> using SymbolicGA: @ga

julia> @ga 2 (1, (1, 2))::(0, 1)
/home/serenity4/.julia/juliaup/julia-nightly/bin/julia: symbol lookup error: /home/serenity4/.julia/compiled/v1.12/SymbolicGA/krY9u_Z0AFz.so: undefined symbol: jl_fptr_sparam

git bisect indicates that the first bad commit is cd99cfc4d39c09b3edbb6040639b4baa47882f6e (#56179).

If commenting the line as done here: https://github.com/serenity4/SymbolicGA.jl/commit/3fe2ccce629f1a87df23a8d54fe32eaebb1880f0, with the same reproducer (you may set it up with pkg> add SymbolicGA#segfault-reproducer - don't mind the branch name, it was from #56690), the error no longer appears and the code executes fine.

giordano commented 6 days ago

git bisect indicates that the first bad commit is cd99cfc4d39c09b3edbb6040639b4baa47882f6e (#56179).

CC: @vtjnash