{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/9768","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/9768/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/9768/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/9768/events","html_url":"https://github.com/JuliaLang/julia/issues/9768","id":54291078,"number":9768,"title":"jl_llvmtuple_eltype travis failure","user":{"login":"vtjnash","id":330950,"avatar_url":"https://avatars.githubusercontent.com/u/330950?v=3","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},"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":"2015-01-14T07:08:03Z","updated_at":"2015-01-15T01:14:30Z","closed_at":null,"body":"```c\r\njameson@julia:~/julia$ make test\r\n    JULIA test/all\r\n\tFrom worker 8:\t     * linalg/tridiag\r\n\tFrom worker 6:\t     * linalg/lapack\r\n\tFrom worker 7:\t     * linalg/triangular\r\n\tFrom worker 4:\t     * linalg3\r\n\tFrom worker 9:\t     * linalg/pinv\r\n\tFrom worker 5:\t     * linalg4\r\n\tFrom worker 3:\t     * linalg2\r\n\tFrom worker 2:\t     * linalg1\r\n\tFrom worker 6:\t     * linalg/cholmod\r\n\tFrom worker 8:\t     * linalg/umfpack\r\n\tFrom worker 6:\t     * linalg/givens\r\n\tFrom worker 6:\t     * core\r\n\tFrom worker 8:\t     * keywordargs\r\n\tFrom worker 9:\t     * numbers\r\n\t^[[Z\tFrom worker 8:\t     * strings\r\nunexpected Tuple type:\r\nrec_backtrace at /home/jameson/julia/src/task.c:598\r\nrecord_backtrace at /home/jameson/julia/src/task.c:642\r\ngdbbacktrace at /home/jameson/julia/src/task.c:717\r\njl_llvmtuple_eltype at /home/jameson/julia/src/intrinsics.cpp:226\r\nemit_unbox at /home/jameson/julia/src/intrinsics.cpp:270\r\nemit_function at /home/jameson/julia/src/codegen.cpp:4045\r\nto_function at /home/jameson/julia/src/codegen.cpp:555\r\njl_compile at /home/jameson/julia/src/codegen.cpp:684\r\njl_trampoline_compile_function at /home/jameson/julia/src/builtins.c:903\r\njl_trampoline at /home/jameson/julia/src/builtins.c:914\r\njl_apply at /home/jameson/julia/src/julia.h:999\r\njl_gf_invoke at /home/jameson/julia/src/gf.c:1754\r\njl_f_invoke at /home/jameson/julia/src/builtins.c:994\r\nanonymous at ./test.jl:83\r\njl_apply at /home/jameson/julia/src/julia.h:999\r\njl_trampoline at /home/jameson/julia/src/builtins.c:915\r\ndo_test at ./test.jl:47\r\njl_apply at /home/jameson/julia/src/julia.h:999\r\njl_apply_generic at /home/jameson/julia/src/gf.c:1623\r\njl_apply at /home/jameson/julia/src/julia.h:999\r\ndo_call at /home/jameson/julia/src/interpreter.c:70\r\neval at /home/jameson/julia/src/interpreter.c:210\r\njl_interpret_toplevel_expr at /home/jameson/julia/src/interpreter.c:26\r\njl_toplevel_eval_flex at /home/jameson/julia/src/toplevel.c:499\r\njl_parse_eval_all at /home/jameson/julia/src/toplevel.c:547\r\njl_load at /home/jameson/julia/src/toplevel.c:586\r\njl_load_ at /home/jameson/julia/src/toplevel.c:595\r\nruntests at /home/jameson/julia/test/testdefs.jl:6\r\nunknown function (ip: 1382510947)\r\njl_apply at /home/jameson/julia/src/julia.h:999\r\njl_apply_generic at /home/jameson/julia/src/gf.c:1623\r\njl_apply at /home/jameson/julia/src/julia.h:999\r\njl_f_apply at /home/jameson/julia/src/builtins.c:405\r\nanonymous at ./multi.jl:852\r\nrun_work_thunk at ./multi.jl:603\r\njl_apply at /home/jameson/julia/src/julia.h:999\r\njl_apply_generic at /home/jameson/julia/src/gf.c:1623\r\nanonymous at ./multi.jl:852\r\njl_apply at /home/jameson/julia/src/julia.h:999\r\nstart_task at /home/jameson/julia/src/task.c:229\r\nunknown function (ip: 0)\r\n\r\ni64\r\n\r\n(Any...,)\r\n\r\nsignal (11): Segmentation fault\r\ngetTypeID at /home/jameson/julia/usr/include/llvm/IR/Type.h:134\r\nisVectorTy at /home/jameson/julia/usr/include/llvm/IR/Type.h:226\r\nemit_unbox at /home/jameson/julia/src/intrinsics.cpp:263\r\nemit_unbox at /home/jameson/julia/src/intrinsics.cpp:274\r\nemit_function at /home/jameson/julia/src/codegen.cpp:4045\r\nto_function at /home/jameson/julia/src/codegen.cpp:555\r\njl_compile at /home/jameson/julia/src/codegen.cpp:684\r\njl_trampoline_compile_function at /home/jameson/julia/src/builtins.c:903\r\njl_trampoline at /home/jameson/julia/src/builtins.c:914\r\njl_apply at /home/jameson/julia/src/julia.h:999\r\njl_gf_invoke at /home/jameson/julia/src/gf.c:1754\r\njl_f_invoke at /home/jameson/julia/src/builtins.c:994\r\nanonymous at ./test.jl:83\r\njl_apply at /home/jameson/julia/src/julia.h:999\r\njl_trampoline at /home/jameson/julia/src/builtins.c:915\r\ndo_test at ./test.jl:47\r\njl_apply at /home/jameson/julia/src/julia.h:999\r\njl_apply_generic at /home/jameson/julia/src/gf.c:1623\r\njl_apply at /home/jameson/julia/src/julia.h:999\r\ndo_call at /home/jameson/julia/src/interpreter.c:70\r\neval at /home/jameson/julia/src/interpreter.c:210\r\njl_interpret_toplevel_expr at /home/jameson/julia/src/interpreter.c:26\r\njl_toplevel_eval_flex at /home/jameson/julia/src/toplevel.c:499\r\njl_parse_eval_all at /home/jameson/julia/src/toplevel.c:547\r\njl_load at /home/jameson/julia/src/toplevel.c:586\r\njl_load_ at /home/jameson/julia/src/toplevel.c:595\r\nruntests at /home/jameson/julia/test/testdefs.jl:6\r\nunknown function (ip: 1382510947)\r\njl_apply at /home/jameson/julia/src/julia.h:999\r\njl_apply_generic at /home/jameson/julia/src/gf.c:1623\r\njl_apply at /home/jameson/julia/src/julia.h:999\r\njl_f_apply at /home/jameson/julia/src/builtins.c:405\r\nanonymous at ./multi.jl:852\r\nrun_work_thunk at ./multi.jl:603\r\njl_apply at /home/jameson/julia/src/julia.h:999\r\njl_apply_generic at /home/jameson/julia/src/gf.c:1623\r\nanonymous at ./multi.jl:852\r\njl_apply at /home/jameson/julia/src/julia.h:999\r\nstart_task at /home/jameson/julia/src/task.c:229\r\nunknown function (ip: 0)\r\nWorker 6 terminated.\r\n```\r\n\r\non commit 05645d3 (69b84e9 + 5348c91(jn/roottask_stackbase)) + diff:\r\n\r\n```diff\r\ndiff --git a/src/intrinsics.cpp b/src/intrinsics.cpp\r\nindex 37c7f96..0d7524c 100644\r\n--- a/src/intrinsics.cpp\r\n+++ b/src/intrinsics.cpp\r\n@@ -203,19 +203,29 @@ static Value *emit_unboxed(jl_value_t *e, jl_codectx_t *ctx)\r\n     return emit_expr(e, ctx, false);\r\n }\r\n \r\n+extern \"C\" void gdbbacktrace();\r\n static Type *jl_llvmtuple_eltype(Type *tuple, jl_value_t *jt, size_t i)\r\n {\r\n     Type *ety = NULL;\r\n-    if (tuple->isArrayTy())\r\n+    if (tuple->isArrayTy()) {\r\n         ety = dyn_cast<ArrayType>(tuple)->getElementType();\r\n-    else if (tuple->isVectorTy())\r\n+    }\r\n+    else if (tuple->isVectorTy()) {\r\n         ety = dyn_cast<VectorType>(tuple)->getElementType();\r\n-    else if (tuple == T_void)\r\n+    }\r\n+    else if (tuple == T_void) {\r\n         ety = T_void;\r\n-    else if (tuple->isStructTy())\r\n+    }\r\n+    else if (tuple->isStructTy()) {\r\n         ety = julia_type_to_llvm(jl_tupleref((jl_tuple_t*)jt,i));\r\n-    else\r\n-        assert(false);\r\n+    }\r\n+    else {\r\n+        ios_printf(ios_stderr,\"unexpected Tuple type:\\n\");\r\n+        ios_flush(ios_stderr);\r\n+        gdbbacktrace();\r\n+        tuple->dump();\r\n+        jl_static_show(JL_STDERR,jt);\r\n+    }\r\n     return ety;\r\n }\r\n```"},"comment":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/comments/70024517","html_url":"https://github.com/JuliaLang/julia/issues/9768#issuecomment-70024517","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/9768","id":70024517,"user":{"login":"vtjnash","id":330950,"avatar_url":"https://avatars.githubusercontent.com/u/330950?v=3","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":"2015-01-15T01:14:30Z","updated_at":"2015-01-15T01:14:30Z","body":"```\r\nExpr(:lambda, Array{Any, 1}[:#s2603, :#s2604, :#s2605, :#s2606, :#s2607, :#s2608, Expr(:::, :args, Expr(:call, top(:apply_type), :Vararg, :Any)::Any)::Any], Array{Any, 1}[Array{Any, 1}[], Array{Any, 1}[Array{Any, 1}[:#s2603, Int64, 0], Array{Any, 1}[:#s2604, Int64, 0], Array{Any, 1}[:#s2605, Int64, 0], Array{Any, 1}[:#s2606, Int64, 0], Array{Any, 1}[:#s2607, Int64, 0], Array{Any, 1}[:#s2608, Int64, 0], Array{Any, 1}[:args, (), 0]], Array{Any, 1}[]], Expr(:body,\r\nExpr(:line, 2017, :core.jl)::Any,\r\nExpr(:return, 46)::Any)::Int64)::Any\r\n```"}}