{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/10867","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/10867/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/10867/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/10867/events","html_url":"https://github.com/JuliaLang/julia/issues/10867","id":69197454,"number":10867,"title":"segfault for SimpleVector constructor","user":{"login":"stevengj","id":2913679,"avatar_url":"https://avatars.githubusercontent.com/u/2913679?v=3","gravatar_id":"","url":"https://api.github.com/users/stevengj","html_url":"https://github.com/stevengj","followers_url":"https://api.github.com/users/stevengj/followers","following_url":"https://api.github.com/users/stevengj/following{/other_user}","gists_url":"https://api.github.com/users/stevengj/gists{/gist_id}","starred_url":"https://api.github.com/users/stevengj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevengj/subscriptions","organizations_url":"https://api.github.com/users/stevengj/orgs","repos_url":"https://api.github.com/users/stevengj/repos","events_url":"https://api.github.com/users/stevengj/events{/privacy}","received_events_url":"https://api.github.com/users/stevengj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-17T19:01:00Z","updated_at":"2015-04-17T19:36:24Z","closed_at":null,"body":"Since @JeffBezanson mentioned a `SimpleVector` type in #10380, I tried it, but got a segfault.  (I called the `SimpleVector` constructor incorrectly, and should have gotten a `MethodError`.)   The following sequence of lines crashes Julia 0.4 reliably for me on OSX 10.10.2 when *pasted at the REPL* (not when run from a script):\r\n```\r\nTuple(Int,Int)\r\nTuple{Int,Int}\r\nTuple{Int,Int}[1]\r\nisa(Tuple{Int}, Type{Tuple})\r\nt = (Int, Float64)\r\nTuple{t...}\r\nTuple{t...}.parameters\r\nSimpleVector(3,4)\r\n```\r\ngiving:\r\n```\r\nsignal (11): Segmentation fault: 11\r\njl_f_tuple at /Users/stevenj/Code/julia/src/builtins.c:621\r\nnext at tuple.jl:18\r\njlcall_next_44016 at  (unknown line)\r\nshowerror at replutil.jl:132\r\nshowerror at replutil.jl:81\r\nanonymous at REPL.jl:98\r\njl_apply at /Users/stevenj/Code/julia/src/./julia.h:1280\r\nwith_output_color at util.jl:208\r\ndisplay_error at REPL.jl:96\r\nprint_response at REPL.jl:124\r\njlcall_print_response_44002 at  (unknown line)\r\nprint_response at REPL.jl:118\r\njlcall_print_response_44001 at  (unknown line)\r\nanonymous at REPL.jl:595\r\nrun_interface at ./LineEdit.jl:1552\r\njlcall_run_interface_41266 at /Users/stevenj/Code/julia/usr/lib/julia/sys.dylib (unknown line)\r\nrun_frontend at ./REPL.jl:835\r\nrun_repl at ./REPL.jl:164\r\n_start at ./client.jl:440\r\njlcall__start_41979 at /Users/stevenj/Code/julia/usr/lib/julia/sys.dylib (unknown line)\r\ntrue_main at /usr/local/bin/julia (unknown line)\r\nmain at /usr/local/bin/julia (unknown line)\r\n```"},"comment":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/comments/94059287","html_url":"https://github.com/JuliaLang/julia/issues/10867#issuecomment-94059287","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/10867","id":94059287,"user":{"login":"JeffBezanson","id":744556,"avatar_url":"https://avatars.githubusercontent.com/u/744556?v=3","gravatar_id":"","url":"https://api.github.com/users/JeffBezanson","html_url":"https://github.com/JeffBezanson","followers_url":"https://api.github.com/users/JeffBezanson/followers","following_url":"https://api.github.com/users/JeffBezanson/following{/other_user}","gists_url":"https://api.github.com/users/JeffBezanson/gists{/gist_id}","starred_url":"https://api.github.com/users/JeffBezanson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeffBezanson/subscriptions","organizations_url":"https://api.github.com/users/JeffBezanson/orgs","repos_url":"https://api.github.com/users/JeffBezanson/repos","events_url":"https://api.github.com/users/JeffBezanson/events{/privacy}","received_events_url":"https://api.github.com/users/JeffBezanson/received_events","type":"User","site_admin":false},"created_at":"2015-04-17T19:36:24Z","updated_at":"2015-04-17T19:36:24Z","body":"Reduced:\r\n\r\n```\r\njulia> enumerate((Tuple,Type))\r\nEnumerate{Tuple{DataType,DataType}}((Tuple,Type{T}))\r\n\r\njulia> enumerate((SimpleVector,3))\r\nEnumerate{Tuple{DataType,DataType}}(\r\nsignal (11): Segmentation fault\r\n```\r\n"}}