Closed
Description
This might be a bug in JuliaInterpreter but putting it here until it is determined.
This regression was found when testing #41499 against :release-1.7
which means that the offending commit is among the ones in #41499.
julia> using JuliaInterpreter
julia> let TT = Union{UInt8, Int8}
a = TT[0x0, 0x1]
pa = pointer(a)
@interpret unsafe_store!(pa, 0x1, 2)
end
julia: /home/kc/julia/src/cgutils.cpp:1814: llvm::Value* data_pointer(jl_codectx_t&, const jl_cgval_t&): Assertion `x.ispointer()' failed.
signal (6): Aborted
in expression starting at none:1
gsignal at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
abort at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
unknown function (ip: 0x7f9084d73748)
__assert_fail at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
data_pointer at /home/kc/julia/src/cgutils.cpp:1814 [inlined]
data_pointer at /home/kc/julia/src/cgutils.cpp:1812
emit_memcpy<long unsigned int&> at /home/kc/julia/src/cgutils.cpp:1898 [inlined]
emit_pointerset at /home/kc/julia/src/intrinsics.cpp:676 [inlined]
emit_intrinsic at /home/kc/julia/src/intrinsics.cpp:1081
emit_call at /home/kc/julia/src/codegen.cpp:3691
emit_expr at /home/kc/julia/src/codegen.cpp:4535
emit_ssaval_assign at /home/kc/julia/src/codegen.cpp:4186
emit_stmtpos at /home/kc/julia/src/codegen.cpp:4428 [inlined]
emit_function at /home/kc/julia/src/codegen.cpp:7216
jl_emit_code at /home/kc/julia/src/codegen.cpp:7578
jl_emit_codeinst at /home/kc/julia/src/codegen.cpp:7623
_jl_compile_codeinst at /home/kc/julia/src/jitlayers.cpp:124
jl_generate_fptr at /home/kc/julia/src/jitlayers.cpp:350
jl_compile_method_internal at /home/kc/julia/src/gf.c:1978
jl_compile_method_internal at /home/kc/julia/src/gf.c:1932 [inlined]
_jl_invoke at /home/kc/julia/src/gf.c:2237 [inlined]
jl_apply_generic at /home/kc/julia/src/gf.c:2427
jl_apply at /home/kc/julia/src/julia.h:1787 [inlined]
do_call at /home/kc/julia/src/interpreter.c:125
eval_value at /home/kc/julia/src/interpreter.c:214
eval_stmt_value at /home/kc/julia/src/interpreter.c:165 [inlined]
eval_body at /home/kc/julia/src/interpreter.c:583
jl_interpret_toplevel_thunk at /home/kc/julia/src/interpreter.c:727
jl_toplevel_eval_flex at /home/kc/julia/src/toplevel.c:885
jl_toplevel_eval_in at /home/kc/julia/src/toplevel.c:944
eval at ./boot.jl:373 [inlined]
eval at /home/kc/.julia/dev/JuliaInterpreter/src/JuliaInterpreter.jl:1
_jl_invoke at /home/kc/julia/src/gf.c:2226 [inlined]
jl_apply_generic at /home/kc/julia/src/gf.c:2427
jl_apply at /home/kc/julia/src/julia.h:1787 [inlined]
do_call at /home/kc/julia/src/interpreter.c:125
eval_value at /home/kc/julia/src/interpreter.c:214
eval_stmt_value at /home/kc/julia/src/interpreter.c:165 [inlined]
eval_body at /home/kc/julia/src/interpreter.c:583
jl_interpret_toplevel_thunk at /home/kc/julia/src/interpreter.c:727
jl_toplevel_eval_flex at /home/kc/julia/src/toplevel.c:885
jl_toplevel_eval_flex at /home/kc/julia/src/toplevel.c:830
jl_toplevel_eval_in at /home/kc/julia/src/toplevel.c:944
eval at ./boot.jl:373 [inlined]
eval_user_input at /home/kc/julia/usr/share/julia/stdlib/v1.8/REPL/src/REPL.jl:150
repl_backend_loop at /home/kc/julia/usr/share/julia/stdlib/v1.8/REPL/src/REPL.jl:241
start_repl_backend at /home/kc/julia/usr/share/julia/stdlib/v1.8/REPL/src/REPL.jl:226
#run_repl#47 at /home/kc/julia/usr/share/julia/stdlib/v1.8/REPL/src/REPL.jl:359
run_repl at /home/kc/julia/usr/share/julia/stdlib/v1.8/REPL/src/REPL.jl:346
_jl_invoke at /home/kc/julia/src/gf.c:2226 [inlined]
jl_apply_generic at /home/kc/julia/src/gf.c:2427
#931 at ./client.jl:394
jfptr_YY.931_35299 at /home/kc/julia/usr/lib/julia/sys.so (unknown line)
_jl_invoke at /home/kc/julia/src/gf.c:2226 [inlined]
jl_apply_generic at /home/kc/julia/src/gf.c:2427
jl_apply at /home/kc/julia/src/julia.h:1787 [inlined]
jl_f__call_latest at /home/kc/julia/src/builtins.c:757
#invokelatest#2 at ./essentials.jl:718 [inlined]
invokelatest at ./essentials.jl:716 [inlined]
run_main_repl at ./client.jl:379
exec_options at ./client.jl:309
_start at ./client.jl:495
jfptr__start_36699 at /home/kc/julia/usr/lib/julia/sys.so (unknown line)
_jl_invoke at /home/kc/julia/src/gf.c:2226 [inlined]
jl_apply_generic at /home/kc/julia/src/gf.c:2427
jl_apply at /home/kc/julia/src/julia.h:1787 [inlined]
true_main at /home/kc/julia/src/jlapi.c:559
jl_repl_entrypoint at /home/kc/julia/src/jlapi.c:701
main at /home/kc/julia/cli/loader_exe.c:42
__libc_start_main at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
_start at ./julia (unknown line)
Allocations: 948032 (Pool: 947848; Big: 184); GC: 1
[1] 384787 abort (core dumped) ./julia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment