Skip to content

segfault showing type with union field #23355

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

Closed
simonster opened this issue Aug 19, 2017 · 1 comment
Closed

segfault showing type with union field #23355

simonster opened this issue Aug 19, 2017 · 1 comment
Labels
bug Indicates an unexpected problem or unintended behavior regression Regression in behavior compared to a previous version

Comments

@simonster
Copy link
Member

simonster commented Aug 19, 2017

  | | |_| | | | (_| |  |  Version 0.7.0-DEV.1386 (2017-08-18 22:41 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit feaa2f6* (0 days old master)
|__/                   |  x86_64-apple-darwin16.7.0


julia> struct BitsUnion
                  x::Union{Int64,Float64}
              end

julia> bitsunion = BitsUnion(5.0)
BitsUnion(
signal (11): Segmentation fault: 11
while loading no file, in expression starting on line 0
jl_new_bits_internal at /usr/local/julia/src/datatype.c:497
jl_new_bits at /usr/local/julia/src/datatype.c:526
jl_get_nth_field at /usr/local/julia/src/datatype.c:785
jl_f_getfield at /usr/local/julia/src/builtins.c:628
show_default at ./show.jl:150
jl_call_fptr_internal at /usr/local/julia/src/./julia_internal.h:366
jl_call_method_internal at /usr/local/julia/src/./julia_internal.h:385
jl_apply_generic at /usr/local/julia/src/gf.c:1940
jl_apply at /usr/local/julia/src/./julia.h:1447
jl_invoke at /usr/local/julia/src/gf.c:51
show at ./replutil.jl:4
unknown function (ip: 0x111392236)
jl_call_fptr_internal at /usr/local/julia/src/./julia_internal.h:366
jl_call_method_internal at /usr/local/julia/src/./julia_internal.h:385
jl_apply_generic at /usr/local/julia/src/gf.c:1940
display at ./repl/REPL.jl:125
unknown function (ip: 0x1113920b6)
jl_call_fptr_internal at /usr/local/julia/src/./julia_internal.h:366
jl_call_method_internal at /usr/local/julia/src/./julia_internal.h:385
jl_apply_generic at /usr/local/julia/src/gf.c:1940
display at ./repl/REPL.jl:128
unknown function (ip: 0x111391d76)
jl_call_fptr_internal at /usr/local/julia/src/./julia_internal.h:366
jl_call_method_internal at /usr/local/julia/src/./julia_internal.h:385
jl_apply_generic at /usr/local/julia/src/gf.c:1940
display at ./multimedia.jl:277
inner at ./essentials.jl:605
jl_call_fptr_internal at /usr/local/julia/src/./julia_internal.h:366
jl_call_method_internal at /usr/local/julia/src/./julia_internal.h:385
jl_apply_generic at /usr/local/julia/src/gf.c:1940
jl_apply at /usr/local/julia/src/./julia.h:1447
jl_f__apply at /usr/local/julia/src/builtins.c:435
jl_f__apply_latest at /usr/local/julia/src/builtins.c:473
print_response at ./repl/REPL.jl:146
jlcall_print_response_22513 at /usr/local/julia/usr/lib/julia/sys-debug.dylib (unknown line)
jl_call_fptr_internal at /usr/local/julia/src/./julia_internal.h:366
jl_call_method_internal at /usr/local/julia/src/./julia_internal.h:385
jl_apply_generic at /usr/local/julia/src/gf.c:1940
print_response at ./repl/REPL.jl:132
jlcall_print_response_22508 at /usr/local/julia/usr/lib/julia/sys-debug.dylib (unknown line)
jl_call_fptr_internal at /usr/local/julia/src/./julia_internal.h:366
jl_call_method_internal at /usr/local/julia/src/./julia_internal.h:385
jl_apply_generic at /usr/local/julia/src/gf.c:1940
do_respond at ./repl/REPL.jl:658
unknown function (ip: 0x11138fb81)
jl_call_fptr_internal at /usr/local/julia/src/./julia_internal.h:366
jl_call_method_internal at /usr/local/julia/src/./julia_internal.h:385
jl_apply_generic at /usr/local/julia/src/gf.c:1940
do_call at /usr/local/julia/src/interpreter.c:70
eval at /usr/local/julia/src/interpreter.c:262
eval_body at /usr/local/julia/src/interpreter.c:539
jl_toplevel_eval_body at /usr/local/julia/src/interpreter.c:511
jl_toplevel_eval_flex at /usr/local/julia/src/toplevel.c:601
jl_toplevel_eval at /usr/local/julia/src/toplevel.c:630
jl_toplevel_eval_in at /usr/local/julia/src/builtins.c:505
eval at ./repl/LineEdit.jl:3
jl_call_fptr_internal at /usr/local/julia/src/./julia_internal.h:366
jl_call_method_internal at /usr/local/julia/src/./julia_internal.h:385
jl_apply_generic at /usr/local/julia/src/gf.c:1940
run_interface at ./repl/LineEdit.jl:1646
jl_call_fptr_internal at /usr/local/julia/src/./julia_internal.h:366
jl_call_method_internal at /usr/local/julia/src/./julia_internal.h:385
jl_apply_generic at /usr/local/julia/src/gf.c:1940
run_frontend at ./repl/REPL.jl:961
run_repl at ./repl/REPL.jl:182
jl_call_fptr_internal at /usr/local/julia/src/./julia_internal.h:366
jl_call_method_internal at /usr/local/julia/src/./julia_internal.h:385
jl_apply_generic at /usr/local/julia/src/gf.c:1940
_start at ./client.jl:425
jl_call_fptr_internal at /usr/local/julia/src/./julia_internal.h:366
jl_call_method_internal at /usr/local/julia/src/./julia_internal.h:385
jl_apply_generic at /usr/local/julia/src/gf.c:1940
jl_apply at /usr/local/julia/julia (unknown line)
true_main at /usr/local/julia/julia (unknown line)
main at /usr/local/julia/julia (unknown line)
Allocations: 2635042 (Pool: 2634565; Big: 477); GC: 5
fish: '/usr/local/julia/julia' terminated by signal SIGSEGV (Address boundary error)
@simonster simonster added bug Indicates an unexpected problem or unintended behavior regression Regression in behavior compared to a previous version labels Aug 19, 2017
@quinnj
Copy link
Member

quinnj commented Aug 19, 2017

Same as #23351

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 Regression in behavior compared to a previous version
Projects
None yet
Development

No branches or pull requests

2 participants