[den@den-pc Debug]$ coredumpctl gdb /home/den/repository/amber/out/Debug/amber PID: 22742 (amber) UID: 1000 (den) GID: 1000 (den) Signal: 6 (ABRT) Timestamp: Thu 2019-07-04 20:46:01 EEST (37s ago) Command Line: ./amber /home/den/Downloads/do-while-loop-in-conditionals.amber Executable: /home/den/repository/amber/out/Debug/amber Control Group: /user.slice/user-1000.slice/user@1000.service/gnome-terminal-server.service Unit: user@1000.service User Unit: gnome-terminal-server.service Slice: user-1000.slice Owner UID: 1000 (den) Boot ID: 73ede2ff788441619a029ef11cb1da3c Machine ID: 8d1bb5a429474570a39ca8932b373b95 Hostname: den-pc Storage: /var/lib/systemd/coredump/core.amber.1000.73ede2ff788441619a029ef11cb1da3c.22742.1562262361000000.lz4 Message: Process 22742 (amber) of user 1000 dumped core. Stack trace of thread 22742: #0 0x00007f78c234e82f raise (libc.so.6) #1 0x00007f78c2339672 abort (libc.so.6) #2 0x00007f78c2339548 __assert_fail_base.cold.0 (libc.so.6) #3 0x00007f78c2346db6 __assert_fail (libc.so.6) #4 0x00007f78c2115051 n/a (/home/den/mesa64/mesa-git-bisect-vulkan/lib/libvulkan_intel.so) #5 0x00007f78c211525b n/a (/home/den/mesa64/mesa-git-bisect-vulkan/lib/libvulkan_intel.so) #6 0x00007f78c21152ef n/a (/home/den/mesa64/mesa-git-bisect-vulkan/lib/libvulkan_intel.so) #7 0x00007f78c1fb69c8 n/a (/home/den/mesa64/mesa-git-bisect-vulkan/lib/libvulkan_intel.so) #8 0x00007f78c1fb7b77 n/a (/home/den/mesa64/mesa-git-bisect-vulkan/lib/libvulkan_intel.so) #9 0x00007f78c1e1987d n/a (/home/den/mesa64/mesa-git-bisect-vulkan/lib/libvulkan_intel.so) #10 0x00007f78c1e1be62 n/a (/home/den/mesa64/mesa-git-bisect-vulkan/lib/libvulkan_intel.so) #11 0x00007f78c1e1d6af n/a (/home/den/mesa64/mesa-git-bisect-vulkan/lib/libvulkan_intel.so) #12 0x00007f78c1ede5d6 n/a (/home/den/mesa64/mesa-git-bisect-vulkan/lib/libvulkan_intel.so) #13 0x00007f78c1edef91 n/a (/home/den/mesa64/mesa-git-bisect-vulkan/lib/libvulkan_intel.so) #14 0x00007f78c0eff215 n/a (/home/den/repository/vulkansdk-linux-x86_64-1.1.108.0/1.1.108.0/x86_64/lib/libVkLayer_khronos_validation.so) GNU gdb (GDB) 8.3 Copyright (C) 2019 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /home/den/repository/amber/out/Debug/amber... [New LWP 22742] [New LWP 22743] [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". Core was generated by `./amber /home/den/Downloads/do-while-loop-in-conditionals.amber'. Program terminated with signal SIGABRT, Aborted. #0 0x00007f78c234e82f in raise () from /usr/lib/libc.so.6 [Current thread is 1 (Thread 0x7f78c2310c00 (LWP 22742))] (gdb) bt #0 0x00007f78c234e82f in raise () from /usr/lib/libc.so.6 #1 0x00007f78c2339672 in abort () from /usr/lib/libc.so.6 #2 0x00007f78c2339548 in __assert_fail_base.cold.0 () from /usr/lib/libc.so.6 #3 0x00007f78c2346db6 in __assert_fail () from /usr/lib/libc.so.6 #4 0x00007f78c2115051 in remove_phis_block (block=0x55d586fa3f60, b=0x7fffa4f52780) at ../src/compiler/nir/nir_opt_remove_phis.c:115 #5 0x00007f78c211525b in nir_opt_remove_phis_impl (impl=0x55d586f9e7e0) at ../src/compiler/nir/nir_opt_remove_phis.c:150 #6 0x00007f78c21152ef in nir_opt_remove_phis (shader=0x55d586fa0a80) at ../src/compiler/nir/nir_opt_remove_phis.c:168 #7 0x00007f78c1fb69c8 in brw_nir_optimize (nir=0x55d586fa0a80, compiler=0x55d586d9fed0, is_scalar=true, allow_copies=true) at ../src/intel/compiler/brw_nir.c:588 #8 0x00007f78c1fb7b77 in brw_preprocess_nir (compiler=0x55d586d9fed0, nir=0x55d586fa0a80) at ../src/intel/compiler/brw_nir.c:681 #9 0x00007f78c1e1987d in anv_shader_compile_to_nir (pipeline=0x55d586f92c80, mem_ctx=0x55d586ec0590, module=0x55d586f8b010, entrypoint_name=0x55d5868988bd "main", stage=MESA_SHADER_FRAGMENT, spec_info=0x0) at ../src/intel/vulkan/anv_pipeline.c:221 #10 0x00007f78c1e1be62 in anv_pipeline_compile_graphics (pipeline=0x55d586f92c80, cache=0x55d586f81410, info=0x55d586e3cb78) at ../src/intel/vulkan/anv_pipeline.c:979 #11 0x00007f78c1e1d6af in anv_pipeline_init (pipeline=0x55d586f92c80, device=0x55d586f80530, cache=0x55d586f81410, pCreateInfo=0x55d586e3cb78, alloc=0x55d586f80538) at ../src/intel/vulkan/anv_pipeline.c:1455 #12 0x00007f78c1ede5d6 in gen9_graphics_pipeline_create (_device=0x55d586f80530, cache=0x55d586f81410, pCreateInfo=0x55d586e3cb78, pAllocator=0x0, pPipeline=0x7fffa4f609b0) at ../src/intel/vulkan/genX_pipeline.c:1789 #13 0x00007f78c1edef91 in gen9_CreateGraphicsPipelines (_device=0x55d586f80530, pipelineCache=0x0, count=1, pCreateInfos=0x55d586e3cb78, pAllocator=0x0, pPipelines=0x7fffa4f609b0) at ../src/intel/vulkan/genX_pipeline.c:1999 #14 0x00007f78c0eff215 in DispatchCreateGraphicsPipelines(VkDevice_T*, VkPipelineCache_T*, unsigned int, VkGraphicsPipelineCreateInfo const*, VkAllocationCallbacks const*, VkPipeline_T**) () from /home/den/repository/vulkansdk-linux-x86_64-1.1.108.0/1.1.108.0/x86_64/lib/libVkLayer_khronos_validation.so #15 0x00007f78c0ea42c3 in vulkan_layer_chassis::CreateGraphicsPipelines(VkDevice_T*, VkPipelineCache_T*, unsigned int, VkGraphicsPipelineCreateInfo const*, VkAllocationCallbacks const*, VkPipeline_T**) () from /home/den/repository/vulkansdk-linux-x86_64-1.1.108.0/1.1.108.0/x86_64/lib/libVkLayer_khronos_validation.so #16 0x000055d586769a3f in amber::vulkan::Device::::operator()(VkDevice, VkPipelineCache, uint32_t, const VkGraphicsPipelineCreateInfo *, const VkAllocationCallbacks *, VkPipeline *) const (__closure=0x55d586ebf5c8, device=0x55d586f80530, pipelineCache=0x0, createInfoCount=1, pCreateInfos=0x7fffa4f60860, pAllocator=0x0, pPipelines=0x7fffa4f609b0) at ./vk-wrappers.inc:1016 #17 0x000055d586783a95 in std::_Function_handler >::_M_invoke(const std::_Any_data &, VkDevice_T *&&, VkPipelineCache_T *&&, unsigned int &&, const VkGraphicsPipelineCreateInfo *&&, const VkAllocationCallbacks *&&, VkPipeline_T **&&) (__functor=..., __args#0=@0x7fffa4f60530: 0x55d586f80530, __args#1=@0x7fffa4f60528: 0x0, __args#2=@0x7fffa4f60524: 1, __args#3=@0x7fffa4f60518: 0x7fffa4f60860, __args#4=@0x7fffa4f60510: 0x0, __args#5=@0x7fffa4f60580: 0x7fffa4f609b0) at /usr/include/c++/8.3.0/bits/std_function.h:282 #18 0x000055d58675067f in std::function::operator()(VkDevice_T*, VkPipelineCache_T*, unsigned int, VkGraphicsPipelineCreateInfo const*, VkAllocationCallbacks const*, VkPipeline_T**) const (this=0x55d586ebf5c8, __args#0=0x55d586f80530, __args#1=0x0, __args#2=1, __args#3=0x7fffa4f60860, __args#4=0x0, __args#5=0x7fffa4f609b0) at /usr/include/c++/8.3.0/bits/std_function.h:687 #19 0x000055d58674e19a in amber::vulkan::GraphicsPipeline::CreateVkGraphicsPipeline (this=0x55d586f8c090, pipeline_data=0x7fffa4f60b80, topology=VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP, vertex_buffer=0x55d586f8a380, pipeline_layout=@0x7fffa4f609a8: 0xd, pipeline=0x7fffa4f609b0) at ../../src/vulkan/graphics_pipeline.cc:672 #20 0x000055d58674eec5 in amber::vulkan::GraphicsPipeline::Draw (this=0x55d586f8c090, command=0x7fffa4f60b60, vertex_buffer=0x55d586f8a380) at ../../src/vulkan/graphics_pipeline.cc:830 #21 0x000055d586741c09 in amber::vulkan::EngineVulkan::DoDrawRect (this=0x55d586ebec60, command=0x55d586b4eb50) at ../../src/vulkan/engine_vulkan.cc:417 #22 0x000055d5861eb204 in amber::Executor::ExecuteCommand (this=0x7fffa4f60ed7, engine=0x55d586ebec60, cmd=0x55d586b4eb50) at ../../src/executor.cc:124 #23 0x000055d5861eacbe in amber::Executor::Execute (this=0x7fffa4f60ed7, engine=0x55d586ebec60, script=0x55d586b4dbd0, delegate=0x7fffa4f61130, shader_map=std::map with 0 elements, executionType=amber::ExecutionType::kExecute) at ../../src/executor.cc:77 #24 0x000055d5861c08d1 in amber::Amber::ExecuteWithShaderData (this=0x7fffa4f61086, recipe=0x55d586b4db90, opts=0x7fffa4f61310, shader_data=std::map with 0 elements) at ../../src/amber.cc:174 #25 0x000055d5861c0756 in amber::Amber::Execute (this=0x7fffa4f61086, recipe=0x55d586b4db90, opts=0x7fffa4f61310) at ../../src/amber.cc:157 #26 0x000055d5861aaaf7 in main (argc=2, argv=0x7fffa4f61758) at ../../samples/amber.cc:410