Skip to content
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

Opaque pointer mode broken, throws assertion #50260

Closed
maleadt opened this issue Jun 22, 2023 · 0 comments · Fixed by #50263
Closed

Opaque pointer mode broken, throws assertion #50260

maleadt opened this issue Jun 22, 2023 · 0 comments · Fixed by #50263
Labels
compiler:codegen Generation of LLVM IR and native code regression Regression in behavior compared to a previous version

Comments

@maleadt
Copy link
Member

maleadt commented Jun 22, 2023

#50094 broke --opaque-pointers:

❯ JULIA_LLVM_ARGS="--opaque-pointers" ./julia -e 'Base.compilecache(Base.identify_package("Test"))'
julia: /home/tim/Julia/src/julia/src/codegen.cpp:1810: llvm::GlobalVariable* get_pointer_to_constant(jl_codegen_params_t&, llvm::Constant*, llvm::StringRef, llvm::Module&): Assertion `val == gv->getInitializer()' failed.

[129671] signal (6.-6): Aborted
in expression starting at /home/tim/Julia/src/julia/build/dev/usr/share/julia/stdlib/v1.10/Test/src/precompile.jl:1
unknown function (ip: 0x7f181266526c)
gsignal at /usr/lib/libc.so.6 (unknown line)
abort at /usr/lib/libc.so.6 (unknown line)
unknown function (ip: 0x7f18125fe45b)
__assert_fail at /usr/lib/libc.so.6 (unknown line)
get_pointer_to_constant at /home/tim/Julia/src/julia/src/codegen.cpp:1810
stringConstPtr at /home/tim/Julia/src/julia/src/cgutils.cpp:119
just_emit_type_error at /home/tim/Julia/src/julia/src/cgutils.cpp:1475

cc @pchintalapudi

@maleadt maleadt added regression Regression in behavior compared to a previous version compiler:codegen Generation of LLVM IR and native code labels Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:codegen Generation of LLVM IR and native code regression Regression in behavior compared to a previous version
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant