{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/16860","repository_url":"https://api.github.com/repos/JuliaLang/julia","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/16860/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/16860/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/16860/events","html_url":"https://github.com/JuliaLang/julia/issues/16860","id":159596443,"number":16860,"title":"Segfault when adding new zeros method","user":{"login":"martinholters","id":15785210,"avatar_url":"https://avatars.githubusercontent.com/u/15785210?v=3","gravatar_id":"","url":"https://api.github.com/users/martinholters","html_url":"https://github.com/martinholters","followers_url":"https://api.github.com/users/martinholters/followers","following_url":"https://api.github.com/users/martinholters/following{/other_user}","gists_url":"https://api.github.com/users/martinholters/gists{/gist_id}","starred_url":"https://api.github.com/users/martinholters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinholters/subscriptions","organizations_url":"https://api.github.com/users/martinholters/orgs","repos_url":"https://api.github.com/users/martinholters/repos","events_url":"https://api.github.com/users/martinholters/events{/privacy}","received_events_url":"https://api.github.com/users/martinholters/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JuliaLang/julia/labels/bug","name":"bug","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-10T09:35:53Z","updated_at":"2016-06-14T07:35:51Z","closed_at":null,"body":"Discovered this in #16740.\r\n\r\nThe segfault happens on Travis' 64bit linux, no other CI, not my own 64bit linux, but I could nail it down using a [branch in my repo](https://github.com/martinholters/julia/tree/analyze_segfault), and it is actually sufficient to [add a definition](https://github.com/martinholters/julia/commit/fb7239212abf498512551214c1be664db6dc55b1) for `zeros{T<:AbstractArray}(::Type{T}, dims...)` (which is not even called).\r\n\r\nThe test triggering the segfault is [arrayops.jl:177](https://github.com/martinholters/julia/blob/bc56e326def6bf4eb122e15845274903b3fe6c02/test/arrayops.jl#L177), and it occurs in `sig_match_simple` at [typemap.c:127](https://github.com/martinholters/julia/blob/fb7239212abf498512551214c1be664db6dc55b1/src/typemap.c#L127), see [the travis output](https://travis-ci.org/martinholters/julia/builds/136645719)."},"comment":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/comments/225802416","html_url":"https://github.com/JuliaLang/julia/issues/16860#issuecomment-225802416","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/16860","id":225802416,"user":{"login":"martinholters","id":15785210,"avatar_url":"https://avatars.githubusercontent.com/u/15785210?v=3","gravatar_id":"","url":"https://api.github.com/users/martinholters","html_url":"https://github.com/martinholters","followers_url":"https://api.github.com/users/martinholters/followers","following_url":"https://api.github.com/users/martinholters/following{/other_user}","gists_url":"https://api.github.com/users/martinholters/gists{/gist_id}","starred_url":"https://api.github.com/users/martinholters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinholters/subscriptions","organizations_url":"https://api.github.com/users/martinholters/orgs","repos_url":"https://api.github.com/users/martinholters/repos","events_url":"https://api.github.com/users/martinholters/events{/privacy}","received_events_url":"https://api.github.com/users/martinholters/received_events","type":"User","site_admin":false},"created_at":"2016-06-14T07:35:51Z","updated_at":"2016-06-14T07:35:51Z","body":"Setting up a (virtual) machine with Ubuntu 12.04 and following the build steps from the travis configuration, I can now reproduce the problem. That allowed me to narrow it down to the following code resulting in a segfault:\r\n\r\n```Julia\r\nimport Base.zeros\r\nzeros{T<:AbstractArray}(::Type{T}, dims...) = error(\"What, me? I'm not even being called!\")\r\n\r\nrng = (2,2:3,2:2:5)\r\ntmp = zeros(Int,2,3,5)\r\ntmp[rng...] = 1 # needs the splatting\r\nB = cat(3,zeros(Int,2,3),zeros(Int,2,3),zeros(Int,2,3)) # needs three matrices cat'ed\r\n```\r\n\r\nI will try to bisect (assuming there is a version where this does not segfault) to figure out what might be going on..."}}
{"actor":{"display_login":"martinholters"}}