<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - SIGSEGV in xkb_context_ref from /usr/lib/libxkbcommon.so.0"
href="https://bugs.freedesktop.org/show_bug.cgi?id=94075#c7">Comment # 7</a>
on <a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - SIGSEGV in xkb_context_ref from /usr/lib/libxkbcommon.so.0"
href="https://bugs.freedesktop.org/show_bug.cgi?id=94075">bug 94075</a>
from <span class="vcard"><a class="email" href="mailto:robert.folland@me.com" title="Robert Folland <robert.folland@me.com>"> <span class="fn">Robert Folland</span></a>
</span></b>
<pre>And here is output from valgrind. I could not get it to crash with valgrind
with a debug version of libxkbcommon. Only with sdl2 and wayland debug
versions.
Init 41
==446== Invalid read of size 4
==446== at 0x6FE9CD3: xkb_context_ref (in /usr/lib/libxkbcommon.so.0.0.0)
==446== by 0x6FEBEB8: ??? (in /usr/lib/libxkbcommon.so.0.0.0)
==446== by 0x6FEB7FB: xkb_keymap_new_from_buffer (in
/usr/lib/libxkbcommon.so.0.0.0)
==446== by 0x4EF7A4D: keyboard_handle_keymap (SDL_waylandevents.c:269)
==446== by 0x69C21EF: ffi_call_unix64 (in /usr/lib/libffi.so.6.0.4)
==446== by 0x69C1C57: ffi_call (in /usr/lib/libffi.so.6.0.4)
==446== by 0x67B5E3D: wl_closure_invoke (connection.c:949)
==446== by 0x67B2BDF: dispatch_event.isra.4 (wayland-client.c:1274)
==446== by 0x67B3DB3: dispatch_queue (wayland-client.c:1420)
==446== by 0x67B3DB3: wl_display_dispatch_queue_pending
(wayland-client.c:1662)
==446== by 0x67B40CE: wl_display_roundtrip_queue (wayland-client.c:1085)
==446== by 0x4EF8A9F: Wayland_VideoInit (SDL_waylandvideo.c:302)
==446== by 0x4EE3ED5: SDL_VideoInit_REAL (SDL_video.c:513)
==446== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==446==
==446==
==446== Process terminating with default action of signal 11 (SIGSEGV): dumping
core
==446== Access not within mapped region at address 0x0
==446== at 0x6FE9CD3: xkb_context_ref (in /usr/lib/libxkbcommon.so.0.0.0)
==446== by 0x6FEBEB8: ??? (in /usr/lib/libxkbcommon.so.0.0.0)
==446== by 0x6FEB7FB: xkb_keymap_new_from_buffer (in
/usr/lib/libxkbcommon.so.0.0.0)
==446== by 0x4EF7A4D: keyboard_handle_keymap (SDL_waylandevents.c:269)
==446== by 0x69C21EF: ffi_call_unix64 (in /usr/lib/libffi.so.6.0.4)
==446== by 0x69C1C57: ffi_call (in /usr/lib/libffi.so.6.0.4)
==446== by 0x67B5E3D: wl_closure_invoke (connection.c:949)
==446== by 0x67B2BDF: dispatch_event.isra.4 (wayland-client.c:1274)
==446== by 0x67B3DB3: dispatch_queue (wayland-client.c:1420)
==446== by 0x67B3DB3: wl_display_dispatch_queue_pending
(wayland-client.c:1662)
==446== by 0x67B40CE: wl_display_roundtrip_queue (wayland-client.c:1085)
==446== by 0x4EF8A9F: Wayland_VideoInit (SDL_waylandvideo.c:302)
==446== by 0x4EE3ED5: SDL_VideoInit_REAL (SDL_video.c:513)
==446== If you believe this happened as a result of a stack
==446== overflow in your program's main thread (unlikely but
==446== possible), you can try to increase the size of the
==446== main thread stack using the --main-stacksize= flag.
==446== The main thread stack size used in this run was 8388608.
==446==
==446== HEAP SUMMARY:
==446== in use at exit: 104,282 bytes in 103 blocks
==446== total heap usage: 66,126 allocs, 66,023 frees, 8,770,031 bytes
allocated
==446==
==446== 1,424 bytes in 1 blocks are definitely lost in loss record 38 of 42
==446== at 0x4C2C947: calloc (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==446== by 0x6FEBE9D: ??? (in /usr/lib/libxkbcommon.so.0.0.0)
==446== by 0x6FEB7FB: xkb_keymap_new_from_buffer (in
/usr/lib/libxkbcommon.so.0.0.0)
==446== by 0x4EF7A4D: keyboard_handle_keymap (SDL_waylandevents.c:269)
==446== by 0x69C21EF: ffi_call_unix64 (in /usr/lib/libffi.so.6.0.4)
==446== by 0x69C1C57: ffi_call (in /usr/lib/libffi.so.6.0.4)
==446== by 0x67B5E3D: wl_closure_invoke (connection.c:949)
==446== by 0x67B2BDF: dispatch_event.isra.4 (wayland-client.c:1274)
==446== by 0x67B3DB3: dispatch_queue (wayland-client.c:1420)
==446== by 0x67B3DB3: wl_display_dispatch_queue_pending
(wayland-client.c:1662)
==446== by 0x67B40CE: wl_display_roundtrip_queue (wayland-client.c:1085)
==446== by 0x4EF8A9F: Wayland_VideoInit (SDL_waylandvideo.c:302)
==446== by 0x4EE3ED5: SDL_VideoInit_REAL (SDL_video.c:513)
==446==
==446== LEAK SUMMARY:
==446== definitely lost: 1,424 bytes in 1 blocks
==446== indirectly lost: 0 bytes in 0 blocks
==446== possibly lost: 0 bytes in 0 blocks
==446== still reachable: 102,858 bytes in 102 blocks
==446== suppressed: 0 bytes in 0 blocks
==446== Reachable blocks (those to which a pointer was found) are not shown.
==446== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==446==
==446== For counts of detected and suppressed errors, rerun with: -v
==446== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
Segmentation fault (core dumped)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>