<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO - vkUpdateDescriptorSets causes SIGSEGV"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=99796#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO - vkUpdateDescriptorSets causes SIGSEGV"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=99796">bug 99796</a>
              from <span class="vcard"><a class="email" href="mailto:miwait00@web.de" title="MW <miwait00@web.de>"> <span class="fn">MW</span></a>
</span></b>
        <pre>Thanks,

with the additional package 'libgl1-mesa-glx-dbg' I know get a lot more
information in gdb:


Thread 2 "java" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f67f4fee700 (LWP 19914)]
isl_gen7_buffer_fill_state_s (state=0x3000, info=0x7f67f4fed2a0) at
./genxml/gen7_pack.h:1274
1274    ./genxml/gen7_pack.h: Datei oder Verzeichnis nicht gefunden. (File not
found)

(gdb) backtrace
#0  isl_gen7_buffer_fill_state_s (state=0x3000, info=0x7f67f4fed2a0) at
./genxml/gen7_pack.h:1274
#1  0x00007f67cef7f348 in anv_fill_buffer_surface_state (device=0x7f67d4ff8000,
state=..., format=<optimized out>, offset=<optimized out>, 
    range=<optimized out>, stride=1) at
../../../../../src/intel/vulkan/anv_device.c:1966
#2  0x00007f67cef7ca72 in anv_UpdateDescriptorSets (_device=0x7f67d4ff8000,
descriptorWriteCount=<optimized out>, pDescriptorWrites=<optimized out>, 
    descriptorCopyCount=0, pDescriptorCopies=0x0) at
../../../../../src/intel/vulkan/anv_descriptor_set.c:673




I am using validation layers, they are working, since they already helped
me a few times - but on the desktop on nvidia.

Thats the reason I guess its something with mesa since it runs perfectly on
the desktop. But nonetheless thanks for giving me tips to check for.



Stepped through once:

(gdb) b anv_UpdateDescriptorSets
Haltepunkt 1 at 0x7fb5d05e8700: file
../../../../../src/intel/vulkan/anv_descriptor_set.c, line 573.
(gdb) continue
Continuing.
[Thread 0x7fb5a3bfe700 (LWP 25151) exited]
[Switching to Thread 0x7fb60f25d700 (LWP 25055)]

Thread 2 "java" hit Breakpoint 1, anv_UpdateDescriptorSets
(_device=0x7fb5d25f8000, descriptorWriteCount=1,
pDescriptorWrites=0x7fb6083a30e8, descriptorCopyCount=0, pDescriptorCopies=0x0)
    at ../../../../../src/intel/vulkan/anv_descriptor_set.c:573
573     ../../../../../src/intel/vulkan/anv_descriptor_set.c: Datei oder
Verzeichnis nicht gefunden.
(gdb) step
576     in ../../../../../src/intel/vulkan/anv_descriptor_set.c
(gdb) step
573     in ../../../../../src/intel/vulkan/anv_descriptor_set.c
(gdb) backtrace
#0  anv_UpdateDescriptorSets (_device=0x7fb5d25f8000, descriptorWriteCount=1,
pDescriptorWrites=0x7fb6083a30e8, descriptorCopyCount=0, pDescriptorCopies=0x0)
    at ../../../../../src/intel/vulkan/anv_descriptor_set.c:573
#1  0x00007fb5f87d9ca4 in ?? ()
#2  0x00007fb600000000 in ?? ()
#3  0x0000000000000000 in ?? ()
(gdb) step
576     in ../../../../../src/intel/vulkan/anv_descriptor_set.c
(gdb) step
582     in ../../../../../src/intel/vulkan/anv_descriptor_set.c
(gdb) step
578     in ../../../../../src/intel/vulkan/anv_descriptor_set.c
(gdb) step
580     in ../../../../../src/intel/vulkan/anv_descriptor_set.c
(gdb) step
578     in ../../../../../src/intel/vulkan/anv_descriptor_set.c
(gdb) step
582     in ../../../../../src/intel/vulkan/anv_descriptor_set.c
(gdb) step
583     in ../../../../../src/intel/vulkan/anv_descriptor_set.c
(gdb) step
581     in ../../../../../src/intel/vulkan/anv_descriptor_set.c
(gdb) step
583     in ../../../../../src/intel/vulkan/anv_descriptor_set.c
(gdb) step
587     in ../../../../../src/intel/vulkan/anv_descriptor_set.c
(gdb) step
649     in ../../../../../src/intel/vulkan/anv_descriptor_set.c
(gdb) step
655     in ../../../../../src/intel/vulkan/anv_descriptor_set.c
(gdb) step
649     in ../../../../../src/intel/vulkan/anv_descriptor_set.c
(gdb) step
655     in ../../../../../src/intel/vulkan/anv_descriptor_set.c
(gdb) step
656     in ../../../../../src/intel/vulkan/anv_descriptor_set.c
(gdb) step
651     in ../../../../../src/intel/vulkan/anv_descriptor_set.c
(gdb) step
656     in ../../../../../src/intel/vulkan/anv_descriptor_set.c
(gdb) step
651     in ../../../../../src/intel/vulkan/anv_descriptor_set.c
(gdb) step
656     in ../../../../../src/intel/vulkan/anv_descriptor_set.c
(gdb) step
651     in ../../../../../src/intel/vulkan/anv_descriptor_set.c
(gdb) step
656     in ../../../../../src/intel/vulkan/anv_descriptor_set.c
(gdb) step
659     in ../../../../../src/intel/vulkan/anv_descriptor_set.c
(gdb) step
anv_isl_format_for_descriptor_type (type=VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER) at
../../../../../src/intel/vulkan/anv_cmd_buffer.c:564
564     ../../../../../src/intel/vulkan/anv_cmd_buffer.c: Datei oder
Verzeichnis nicht gefunden.
(gdb) backtrace
#0  anv_isl_format_for_descriptor_type (type=VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER)
at ../../../../../src/intel/vulkan/anv_cmd_buffer.c:564
#1  0x00007fb5d05e8ad6 in anv_UpdateDescriptorSets (_device=0x7fb5d25f8000,
descriptorWriteCount=<optimized out>, pDescriptorWrites=<optimized out>,
descriptorCopyCount=0, 
    pDescriptorCopies=0x0) at
../../../../../src/intel/vulkan/anv_descriptor_set.c:659
#2  0x00007fb5f87d9ca4 in ?? ()
#3  0x00007fb600000000 in ?? ()
#4  0x0000000000000000 in ?? ()
(gdb) step
565     in ../../../../../src/intel/vulkan/anv_cmd_buffer.c
(gdb) step
564     in ../../../../../src/intel/vulkan/anv_cmd_buffer.c
(gdb) step
565     in ../../../../../src/intel/vulkan/anv_cmd_buffer.c
(gdb) step
568     in ../../../../../src/intel/vulkan/anv_cmd_buffer.c
(gdb) step
577     in ../../../../../src/intel/vulkan/anv_cmd_buffer.c
(gdb) step
anv_UpdateDescriptorSets (_device=0x7fb5d25f8000,
descriptorWriteCount=<optimized out>, pDescriptorWrites=<optimized out>,
descriptorCopyCount=0, pDescriptorCopies=0x0)
    at ../../../../../src/intel/vulkan/anv_descriptor_set.c:660
660     ../../../../../src/intel/vulkan/anv_descriptor_set.c: Datei oder
Verzeichnis nicht gefunden.
(gdb) backtrace
#0  anv_UpdateDescriptorSets (_device=0x7fb5d25f8000,
descriptorWriteCount=<optimized out>, pDescriptorWrites=<optimized out>,
descriptorCopyCount=0, pDescriptorCopies=0x0)
    at ../../../../../src/intel/vulkan/anv_descriptor_set.c:660
#1  0x00007fb5f87d9ca4 in ?? ()
#2  0x00007fb600000000 in ?? ()
#3  0x0000000000000000 in ?? ()
(gdb) step
661     in ../../../../../src/intel/vulkan/anv_descriptor_set.c
(gdb) step
658     in ../../../../../src/intel/vulkan/anv_descriptor_set.c
(gdb) step
660     in ../../../../../src/intel/vulkan/anv_descriptor_set.c
(gdb) step
661     in ../../../../../src/intel/vulkan/anv_descriptor_set.c
(gdb) step
660     in ../../../../../src/intel/vulkan/anv_descriptor_set.c
(gdb) step
661     in ../../../../../src/intel/vulkan/anv_descriptor_set.c
(gdb) step
667     in ../../../../../src/intel/vulkan/anv_descriptor_set.c
(gdb) step
661     in ../../../../../src/intel/vulkan/anv_descriptor_set.c
(gdb) step
667     in ../../../../../src/intel/vulkan/anv_descriptor_set.c
(gdb) backtrace
#0  anv_UpdateDescriptorSets (_device=0x7fb5d25f8000,
descriptorWriteCount=<optimized out>, pDescriptorWrites=<optimized out>,
descriptorCopyCount=0, pDescriptorCopies=0x0)
    at ../../../../../src/intel/vulkan/anv_descriptor_set.c:667
#1  0x00007fb5f87d9ca4 in ?? ()
#2  0x00007fb600000000 in ?? ()
#3  0x0000000000000000 in ?? ()
(gdb) step
668     in ../../../../../src/intel/vulkan/anv_descriptor_set.c
(gdb) step
667     in ../../../../../src/intel/vulkan/anv_descriptor_set.c
(gdb) step
671     in ../../../../../src/intel/vulkan/anv_descriptor_set.c
(gdb) step
673     in ../../../../../src/intel/vulkan/anv_descriptor_set.c
(gdb) step
649     in ../../../../../src/intel/vulkan/anv_descriptor_set.c
(gdb) stepi
673     in ../../../../../src/intel/vulkan/anv_descriptor_set.c
(gdb) step
anv_fill_buffer_surface_state (device=0x7fb5d25f8000, state=...,
format=ISL_FORMAT_R32G32B32A32_FLOAT, offset=0, range=8, stride=1) at
../../../../../src/intel/vulkan/anv_device.c:1966
1966    ../../../../../src/intel/vulkan/anv_device.c: Datei oder Verzeichnis
nicht gefunden.
(gdb) backtrace
#0  anv_fill_buffer_surface_state (device=0x7fb5d25f8000, state=...,
format=ISL_FORMAT_R32G32B32A32_FLOAT, offset=0, range=8, stride=1)
    at ../../../../../src/intel/vulkan/anv_device.c:1966
#1  0x00007fb5d05e8a72 in anv_UpdateDescriptorSets (_device=0x7fb5d25f8000,
descriptorWriteCount=<optimized out>, pDescriptorWrites=<optimized out>,
descriptorCopyCount=0, 
    pDescriptorCopies=0x0) at
../../../../../src/intel/vulkan/anv_descriptor_set.c:673
#2  0x00007fb5f87d9ca4 in ?? ()
#3  0x00007fb600000000 in ?? ()
#4  0x0000000000000000 in ?? ()
(gdb) step
1965    in ../../../../../src/intel/vulkan/anv_device.c
(gdb) step
1966    in ../../../../../src/intel/vulkan/anv_device.c
(gdb) step
1965    in ../../../../../src/intel/vulkan/anv_device.c
(gdb) step
1966    in ../../../../../src/intel/vulkan/anv_device.c
(gdb) step
1965    in ../../../../../src/intel/vulkan/anv_device.c
(gdb) step
1966    in ../../../../../src/intel/vulkan/anv_device.c
(gdb) step
isl_buffer_fill_state_s (dev=0x7fb5d25f80a0, state=0x3000, info=0x7fb60f25c2a0)
at ../../../../src/intel/isl/isl.c:1568
1568    ../../../../src/intel/isl/isl.c: Datei oder Verzeichnis nicht gefunden.
(gdb) step
1569    in ../../../../src/intel/isl/isl.c
(gdb) step
1568    in ../../../../src/intel/isl/isl.c
(gdb) step
1569    in ../../../../src/intel/isl/isl.c
(gdb) step
1589    in ../../../../src/intel/isl/isl.c
(gdb) step
1569    in ../../../../src/intel/isl/isl.c
(gdb) step
1579    in ../../../../src/intel/isl/isl.c
(gdb) step
1582    in ../../../../src/intel/isl/isl.c
(gdb) step
isl_gen7_buffer_fill_state_s (state=0x3000, info=0x7fb60f25c2a0) at
../../../../src/intel/isl/isl_surface_state.c:623
623     ../../../../src/intel/isl/isl_surface_state.c: Datei oder Verzeichnis
nicht gefunden.
(gdb) step
624     in ../../../../src/intel/isl/isl_surface_state.c
(gdb) step
658     in ../../../../src/intel/isl/isl_surface_state.c
(gdb) step
685     in ../../../../src/intel/isl/isl_surface_state.c
(gdb) step
623     in ../../../../src/intel/isl/isl_surface_state.c
(gdb) step
698     in ../../../../src/intel/isl/isl_surface_state.c
(gdb) step
658     in ../../../../src/intel/isl/isl_surface_state.c
(gdb) step
1259    ./genxml/gen7_pack.h: Datei oder Verzeichnis nicht gefunden.
(gdb) step
624     ../../../../src/intel/isl/isl_surface_state.c: Datei oder Verzeichnis
nicht gefunden.
(gdb) step
687     in ../../../../src/intel/isl/isl_surface_state.c
(gdb) step
1280    ./genxml/gen7_pack.h: Datei oder Verzeichnis nicht gefunden.
(gdb) step
1274    in ./genxml/gen7_pack.h
(gdb) step

Thread 2 "java" received signal SIGSEGV, Segmentation fault.
isl_gen7_buffer_fill_state_s (state=0x3000, info=0x7fb60f25c2a0) at
./genxml/gen7_pack.h:1274
1274    in ./genxml/gen7_pack.h
(gdb) backtrace
#0  isl_gen7_buffer_fill_state_s (state=0x3000, info=0x7fb60f25c2a0) at
./genxml/gen7_pack.h:1274
#1  0x00007fb5d05eb348 in anv_fill_buffer_surface_state (device=0x7fb5d25f8000,
state=..., format=<optimized out>, offset=<optimized out>, range=<optimized
out>, stride=1)
    at ../../../../../src/intel/vulkan/anv_device.c:1966
#2  0x00007fb5d05e8a72 in anv_UpdateDescriptorSets (_device=0x7fb5d25f8000,
descriptorWriteCount=<optimized out>, pDescriptorWrites=<optimized out>,
descriptorCopyCount=0, 
    pDescriptorCopies=0x0) at
../../../../../src/intel/vulkan/anv_descriptor_set.c:673
#3  0x00007fb5f87d9ca4 in ?? ()
#4  0x00007fb600000000 in ?? ()
#5  0x0000000000000000 in ?? ()



Interesting to debug another ones program with gdb and git web view xD</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>