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

Broadcasted getindex does not check bounds #19203

Closed
simonster opened this issue Nov 3, 2016 · 1 comment
Closed

Broadcasted getindex does not check bounds #19203

simonster opened this issue Nov 3, 2016 · 1 comment
Labels
bug Indicates an unexpected problem or unintended behavior

Comments

@simonster
Copy link
Member

julia> getindex.([[1]], 1)
1-element Array{Int64,1}:
 1

julia> getindex.([[1]], 10)
1-element Array{Int64,1}:
 0

julia> getindex.([[1]], 100000000000)

signal (11): Segmentation fault: 11
while loading no file, in expression starting on line 0
macro expansion at ./broadcast.jl:149 [inlined]
macro expansion at ./simdloop.jl:72 [inlined]
macro expansion at ./broadcast.jl:142 [inlined]
_broadcast! at ./broadcast.jl:137
unknown function (ip: 0x31810b2d7)
jl_apply_generic at /usr/local/julia-release-0.5/src/gf.c:1861
broadcast! at ./broadcast.jl:201
jl_apply_generic at /usr/local/julia-release-0.5/src/gf.c:1861
jl_apply at /usr/local/julia-release-0.5/src/./julia.h:1378 [inlined]
jl_f__apply at /usr/local/julia-release-0.5/src/builtins.c:547
broadcast_t at ./broadcast.jl:257
jl_apply_generic at /usr/local/julia-release-0.5/src/gf.c:1861
broadcast at ./broadcast.jl:18
jl_apply_generic at /usr/local/julia-release-0.5/src/gf.c:1861
do_call at /usr/local/julia-release-0.5/src/interpreter.c:71
eval at /usr/local/julia-release-0.5/src/interpreter.c:210
eval_body at /usr/local/julia-release-0.5/src/interpreter.c:480
jl_interpret_toplevel_thunk at /usr/local/julia-release-0.5/src/interpreter.c:628
jl_toplevel_eval_flex at /usr/local/julia-release-0.5/src/toplevel.c:642
jl_toplevel_eval_in at /usr/local/julia-release-0.5/src/builtins.c:577
eval at ./boot.jl:238
jlcall_eval_18352 at /usr/local/julia-release-0.5/usr/lib/julia/sys.dylib (unknown line)
jl_apply_generic at /usr/local/julia-release-0.5/src/gf.c:1861
eval_user_input at ./REPL.jl:66
unknown function (ip: 0x3180fda16)
jl_apply_generic at /usr/local/julia-release-0.5/src/gf.c:1861
macro expansion at ./REPL.jl:97 [inlined]
#3 at ./event.jl:65
unknown function (ip: 0x3180f50ef)
jl_apply_generic at /usr/local/julia-release-0.5/src/gf.c:1861
jl_apply at /usr/local/julia-release-0.5/src/./julia.h:1378 [inlined]
start_task at /usr/local/julia-release-0.5/src/task.c:259
Allocations: 3727192 (Pool: 3725866; Big: 1326); GC: 5
fish: 'julia' terminated by signal SIGSEGV (Address boundary error)
@simonster simonster added the bug Indicates an unexpected problem or unintended behavior label Nov 3, 2016
@martinholters
Copy link
Member

Ref #19188.

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
Projects
None yet
Development

No branches or pull requests

2 participants