{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/28981","repository_url":"https://api.github.com/repos/JuliaLang/julia","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/28981/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/28981/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/28981/events","html_url":"https://github.com/JuliaLang/julia/issues/28981","id":355817374,"node_id":"MDU6SXNzdWUzNTU4MTczNzQ=","number":28981,"title":"Segfault using StaticArrays and broadcasting","user":{"login":"schmrlng","id":4130030,"node_id":"MDQ6VXNlcjQxMzAwMzA=","avatar_url":"https://avatars0.githubusercontent.com/u/4130030?v=4","gravatar_id":"","url":"https://api.github.com/users/schmrlng","html_url":"https://github.com/schmrlng","followers_url":"https://api.github.com/users/schmrlng/followers","following_url":"https://api.github.com/users/schmrlng/following{/other_user}","gists_url":"https://api.github.com/users/schmrlng/gists{/gist_id}","starred_url":"https://api.github.com/users/schmrlng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schmrlng/subscriptions","organizations_url":"https://api.github.com/users/schmrlng/orgs","repos_url":"https://api.github.com/users/schmrlng/repos","events_url":"https://api.github.com/users/schmrlng/events{/privacy}","received_events_url":"https://api.github.com/users/schmrlng/received_events","type":"User","site_admin":false},"labels":[{"id":421532175,"node_id":"MDU6TGFiZWw0MjE1MzIxNzU=","url":"https://api.github.com/repos/JuliaLang/julia/labels/inference","name":"inference","color":"bfdadc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-08-31T02:27:45Z","updated_at":"2018-09-17T15:51:48Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"From https://github.com/JuliaArrays/StaticArrays.jl/issues/482, running\r\n```julia\r\n# test.jl\r\nusing LinearAlgebra\r\nusing StaticArrays\r\n\r\nperp(v) = SVector(v[2], -v[1])\r\n\r\nstruct A{N,T}\r\n    v::SVector{N,SVector{2,T}}\r\n\r\n    function A{N,T}(X) where {N,T}\r\n        new(normalize.(perp.(X)))\r\n    end\r\nend\r\nA(X) = A{length(X),eltype(eltype(X))}(X)\r\n\r\nX = rand(SVector{3,SVector{2,Float64}})\r\nA(X)\r\n```\r\nwe get\r\n```julia\r\n  | | |_| | | | (_| |  |  Version 1.0.0 (2018-08-08)\r\n _/ |\\__'_|_|_|\\__'_|  |  \r\n|__/                   |\r\n\r\njulia> versioninfo()\r\nJulia Version 1.0.0\r\nCommit 5d4eaca0c9 (2018-08-08 20:58 UTC)\r\nPlatform Info:\r\n  OS: Linux (x86_64-linux-gnu)\r\n  CPU: AMD Ryzen 7 1800X Eight-Core Processor\r\n  WORD_SIZE: 64\r\n  LIBM: libopenlibm\r\n  LLVM: libLLVM-6.0.0 (ORCJIT, znver1)\r\n\r\n(v1.0) pkg> st\r\n    Status `~/.julia/environments/v1.0/Project.toml`\r\n  [90137ffa] StaticArrays v0.8.3\r\n\r\njulia> include(\"test.jl\")\r\n\r\nsignal (11): Segmentation fault\r\nin expression starting at /tmp/test.jl:17\r\nconvert at /home/schmrlng/.julia/packages/StaticArrays/Ze5H3/src/convert.jl:8 [inlined]\r\nType at /tmp/test.jl:11\r\nType at /tmp/test.jl:14\r\nunknown function (ip: 0x7f694004da96)\r\njl_fptr_trampoline at /home/schmrlng/code/oss/julia-1.0/src/gf.c:1829\r\njl_apply_generic at /home/schmrlng/code/oss/julia-1.0/src/gf.c:2182\r\ndo_call at /home/schmrlng/code/oss/julia-1.0/src/interpreter.c:324\r\neval_value at /home/schmrlng/code/oss/julia-1.0/src/interpreter.c:428\r\neval_stmt_value at /home/schmrlng/code/oss/julia-1.0/src/interpreter.c:363 [inlined]\r\neval_body at /home/schmrlng/code/oss/julia-1.0/src/interpreter.c:686\r\njl_interpret_toplevel_thunk_callback at /home/schmrlng/code/oss/julia-1.0/src/interpreter.c:799\r\nunknown function (ip: 0xfffffffffffffffe)\r\nunknown function (ip: 0x7f69043219ff)\r\nunknown function (ip: 0xffffffffffffffff)\r\njl_interpret_toplevel_thunk at /home/schmrlng/code/oss/julia-1.0/src/interpreter.c:808\r\njl_toplevel_eval_flex at /home/schmrlng/code/oss/julia-1.0/src/toplevel.c:787\r\njl_parse_eval_all at /home/schmrlng/code/oss/julia-1.0/src/ast.c:838\r\njl_load at /home/schmrlng/code/oss/julia-1.0/src/toplevel.c:821\r\ninclude at ./boot.jl:317 [inlined]\r\ninclude_relative at ./loading.jl:1038\r\ninclude at ./sysimg.jl:29\r\njl_apply_generic at /home/schmrlng/code/oss/julia-1.0/src/gf.c:2182\r\ninclude at ./client.jl:388\r\njl_fptr_trampoline at /home/schmrlng/code/oss/julia-1.0/src/gf.c:1829\r\njl_apply_generic at /home/schmrlng/code/oss/julia-1.0/src/gf.c:2182\r\ndo_call at /home/schmrlng/code/oss/julia-1.0/src/interpreter.c:324\r\neval_value at /home/schmrlng/code/oss/julia-1.0/src/interpreter.c:428\r\neval_stmt_value at /home/schmrlng/code/oss/julia-1.0/src/interpreter.c:363 [inlined]\r\neval_body at /home/schmrlng/code/oss/julia-1.0/src/interpreter.c:686\r\njl_interpret_toplevel_thunk_callback at /home/schmrlng/code/oss/julia-1.0/src/interpreter.c:799\r\nunknown function (ip: 0xfffffffffffffffe)\r\nunknown function (ip: 0x7f69495b9c2f)\r\nunknown function (ip: 0xffffffffffffffff)\r\njl_interpret_toplevel_thunk at /home/schmrlng/code/oss/julia-1.0/src/interpreter.c:808\r\njl_toplevel_eval_flex at /home/schmrlng/code/oss/julia-1.0/src/toplevel.c:787\r\njl_toplevel_eval_in at /home/schmrlng/code/oss/julia-1.0/src/builtins.c:622\r\neval at ./boot.jl:319\r\njl_apply_generic at /home/schmrlng/code/oss/julia-1.0/src/gf.c:2182\r\neval_user_input at /home/schmrlng/code/oss/julia-1.0/usr/share/julia/stdlib/v1.0/REPL/src/REPL.jl:85\r\nmacro expansion at /home/schmrlng/code/oss/julia-1.0/usr/share/julia/stdlib/v1.0/REPL/src/REPL.jl:117 [inlined]\r\n#28 at ./task.jl:259\r\njl_apply_generic at /home/schmrlng/code/oss/julia-1.0/src/gf.c:2182\r\njl_apply at /home/schmrlng/code/oss/julia-1.0/src/julia.h:1536 [inlined]\r\nstart_task at /home/schmrlng/code/oss/julia-1.0/src/task.c:268\r\nunknown function (ip: 0xffffffffffffffff)\r\nAllocations: 3652857 (Pool: 3652443; Big: 414); GC: 7\r\n[1]    7461 segmentation fault (core dumped)  julia\r\n```"},"comment":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/comments/422070340","html_url":"https://github.com/JuliaLang/julia/issues/28981#issuecomment-422070340","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/28981","id":422070340,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMjA3MDM0MA==","user":{"login":"vtjnash","id":330950,"node_id":"MDQ6VXNlcjMzMDk1MA==","avatar_url":"https://avatars1.githubusercontent.com/u/330950?v=4","gravatar_id":"","url":"https://api.github.com/users/vtjnash","html_url":"https://github.com/vtjnash","followers_url":"https://api.github.com/users/vtjnash/followers","following_url":"https://api.github.com/users/vtjnash/following{/other_user}","gists_url":"https://api.github.com/users/vtjnash/gists{/gist_id}","starred_url":"https://api.github.com/users/vtjnash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vtjnash/subscriptions","organizations_url":"https://api.github.com/users/vtjnash/orgs","repos_url":"https://api.github.com/users/vtjnash/repos","events_url":"https://api.github.com/users/vtjnash/events{/privacy}","received_events_url":"https://api.github.com/users/vtjnash/received_events","type":"User","site_admin":false},"created_at":"2018-09-17T15:51:48Z","updated_at":"2018-09-17T15:51:48Z","author_association":"MEMBER","body":"It's up to the user to not use `Core.Compiler.return_type` in a way that bugs will be too likely to be visible. For example, see how Base.broadcast and Base.map uses it."}}
{"actor":{"display_login":"vtjnash"}}