Subject: Re: bug#56869: 29.0.50; segfault, "assertion 'GDK_IS_DEVICE (device)' failed"

From: Joe Corneli <[email-masked]>
Date: Tue, 16 Aug 2022 15:36:44 +0100

Po Lu writes:

> Joe Corneli <[email-masked]> writes:
>
>> joe@Proteus:~/emacs$ gdb src/emacs core.384524
>> ...
>> [Thread debugging using libthread_db enabled]
>> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
>> Core was generated by `/home/joe/emacs/src/emacs'.
>> Program terminated with signal SIGSEGV, Segmentation fault.
>> #0  gdk_x11_device_manager_xi2_translate_event (xevent=<optimised out>, event=<optimised out>, 
>>     display=<optimised out>, translator=<optimised out>) at ../../../../../gdk/x11/gdkdevicemanager-xi2.c:1794
>> 1794	../../../../../gdk/x11/gdkdevicemanager-xi2.c: No such file or directory.
>> [Current thread is 1 (Thread 0x7ffff2947040 (LWP 384524))]
>> (gdb) l
>> 1789	in ../../../../../gdk/x11/gdkdevicemanager-xi2.c
>
> Sigh, I guess you need the source packages as well.  Not sure what that
> would be on Debian.
>
> Thanks in advance.

In light of the previous, I think this is what’s needed.  Details will
be forthcoming with the next crash!

joe@Proteus:~$  sudo apt-get source libgtk-3-0
[sudo] password for joe: 
Reading package lists... Done
Picking 'gtk+3.0' as source package instead of 'libgtk-3-0'
NOTICE: 'gtk+3.0' packaging is maintained in the 'Git' version control system at:
https://salsa.debian.org/gnome-team/gtk3.git -b ubuntu/focal
Please use:
git clone https://salsa.debian.org/gnome-team/gtk3.git -b ubuntu/focal
to retrieve the latest (possibly unreleased) updates to the package.
Need to get 22.9 MB of source archives.
Get:1 http://gb.archive.ubuntu.com/ubuntu focal-updates/main gtk+3.0 3.24.20-0ubuntu1.1 (dsc) [3,686 B]
Get:2 http://gb.archive.ubuntu.com/ubuntu focal-updates/main gtk+3.0 3.24.20-0ubuntu1.1 (tar) [22.7 MB]
Get:3 http://gb.archive.ubuntu.com/ubuntu focal-updates/main gtk+3.0 3.24.20-0ubuntu1.1 (diff) [172 kB]
Fetched 22.9 MB in 4s (6,175 kB/s)
dpkg-source: info: extracting gtk+3.0 in gtk+3.0-3.24.20
dpkg-source: info: unpacking gtk+3.0_3.24.20.orig.tar.xz
dpkg-source: info: unpacking gtk+3.0_3.24.20-0ubuntu1.1.debian.tar.xz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: applying git_rendering_issues.patch
dpkg-source: info: applying git_newglib_symbols.patch
dpkg-source: info: applying updateiconcache-Sort-list-of-entries.patch
dpkg-source: info: applying gdk-Don-t-distribute-generated-files-in-tarballs.patch
dpkg-source: info: applying gtk-Really-don-t-distribute-built-files.patch
dpkg-source: info: applying demos-examples-tests-Don-t-distribute-built-files.patch
dpkg-source: info: applying 016_no_offscreen_widgets_grabbing.patch
dpkg-source: info: applying 017_no_offscreen_device_grabbing.patch
dpkg-source: info: applying 060_ignore-random-icons.patch
dpkg-source: info: applying reftest-known-fail.patch
dpkg-source: info: applying Disable-accessibility-dump-aka-a11ytests-test.patch
dpkg-source: info: applying 073_treeview_almost_fixed.patch
dpkg-source: info: applying bzg_gtkcellrenderer_grabbing_modifier.patch
dpkg-source: info: applying ubuntu_gtk_custom_menu_items.patch
dpkg-source: info: applying print-dialog-show-options-of-remote-dnssd-printers.patch
dpkg-source: info: applying uimanager-guard-against-nested-node-updates.patch
dpkg-source: info: applying x-canonical-accel.patch
dpkg-source: info: applying message-dialog-restore-traditional-look-on-unity.patch
dpkg-source: info: applying 0001-gtk-reftest-Force-icon-theme-to-Adwaita.patch
dpkg-source: info: applying 0001-calendar-always-emit-day-selected-once.patch
dpkg-source: info: applying 0001-gtkwindow-set-transparent-background-color.patch
dpkg-source: info: applying unity-border-radius.patch
dpkg-source: info: applying unity-headerbar-maximized-mode.patch
W: Download is performed unsandboxed as root, as file 'gtk+3.0_3.24.20-0ubuntu1.1.dsc' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
-- 
Dr Joseph A. Corneli (https://github.com/holtzermann17)

HYPERREAL ENTERPRISES LTD is a private company limited by shares, incorporated
25th, June 2019 as Company Number 634284 on the Register of Companies for
Scotland (https://beta.companieshouse.gov.uk/company/SC634284).