Bug#929567: libgtk-3-0:amd64: Emacs constantly crashes on startup with "X protocol error: BadLength..."

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#929567: libgtk-3-0:amd64: Emacs constantly crashes on startup with "X protocol error: BadLength..."

Vincent Lefevre-10
Package: libgtk-3-0
Version: 3.24.5-1
Severity: grave
Tags: upstream
Justification: renders package unusable

When starting Emacs on a large file, I always get the following error.
This makes Emacs impossible to use.

X protocol error: BadLength (poly request too large or internal Xlib length error) on protocol request 139
When compiled with GTK, Emacs cannot recover from X disconnects.
This is a GTK bug: https://bugzilla.gnome.org/show_bug.cgi?id=85715
For details, see etc/PROBLEMS.
Fatal error 6: Aborted
Backtrace:
emacs[0x50a51e]
emacs[0x4f0a19]
emacs[0x50a5c3]
emacs[0x4c0b23]
emacs[0x4c4e89]
emacs[0x4c4f0b]
/usr/lib/x86_64-linux-gnu/libX11.so.6(_XError+0x11a)[0x7f7538bba11a]
/usr/lib/x86_64-linux-gnu/libX11.so.6(+0x43077)[0x7f7538bb7077]
/usr/lib/x86_64-linux-gnu/libX11.so.6(+0x4311d)[0x7f7538bb711d]
/usr/lib/x86_64-linux-gnu/libX11.so.6(_XEventsQueued+0x55)[0x7f7538bb7a55]
/usr/lib/x86_64-linux-gnu/libX11.so.6(XPending+0x57)[0x7f7538ba97b7]
/usr/lib/x86_64-linux-gnu/libgdk-3.so.0(+0x6a20d)[0x7f753947020d]
/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_prepare+0x1c9)[0x7f7538f2c669]
/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x4e06b)[0x7f7538f2d06b]
/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_pending+0x27)[0x7f7538f2d207]
/usr/lib/x86_64-linux-gnu/libgtk-3.so.0(gtk_events_pending+0xd)[0x7f753973cb9d]
emacs[0x4c14c7]
emacs[0x4f7819]
emacs[0x4f7eb5]
emacs[0x5c7ea7]
emacs[0x57c324]
emacs[0x5cabca]
emacs[0x5cae51]
emacs[0x5cb383]
emacs[0x57a373]
emacs[0x5b881f]
emacs[0x5bc713]
emacs[0x444954]
emacs[0x442a35]
emacs[0x44b5b0]
emacs[0x451148]
emacs[0x4647b1]
emacs[0x467efb]
emacs[0x563d9e]
emacs[0x432332]
emacs[0x454639]
emacs[0x4fa44f]
emacs[0x4fde79]
emacs[0x4ff564]
emacs[0x563d12]
emacs[0x4f0e54]
...

-- System Information:
Debian Release: 10.0
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-5-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=POSIX (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libgtk-3-0:amd64 depends on:
ii  adwaita-icon-theme   3.30.1-1
ii  hicolor-icon-theme   0.17-2
ii  libatk-bridge2.0-0   2.30.0-5
ii  libatk1.0-0          2.30.0-2
ii  libc6                2.28-10
ii  libcairo-gobject2    1.16.0-4
ii  libcairo2            1.16.0-4
ii  libcolord2           1.4.3-4
ii  libcups2             2.2.10-6
ii  libepoxy0            1.5.3-0.1
ii  libfontconfig1       2.13.1-2
ii  libfreetype6         2.9.1-3
ii  libgdk-pixbuf2.0-0   2.38.1+dfsg-1
ii  libglib2.0-0         2.58.3-1
ii  libgtk-3-common      3.24.5-1
ii  libharfbuzz0b        2.3.1-1
ii  libjson-glib-1.0-0   1.4.4-2
ii  libpango-1.0-0       1.42.4-6
ii  libpangocairo-1.0-0  1.42.4-6
ii  libpangoft2-1.0-0    1.42.4-6
ii  librest-0.7-0        0.8.1-1
ii  libsoup2.4-1         2.64.2-2
ii  libwayland-client0   1.16.0-1
ii  libwayland-cursor0   1.16.0-1
ii  libwayland-egl1      1.16.0-1
ii  libx11-6             2:1.6.7-1
ii  libxcomposite1       1:0.4.4-2
ii  libxcursor1          1:1.1.15-2
ii  libxdamage1          1:1.1.4-3+b3
ii  libxext6             2:1.3.3-1+b2
ii  libxfixes3           1:5.0.3-1
ii  libxi6               2:1.7.9-1
ii  libxinerama1         2:1.1.4-2
ii  libxkbcommon0        0.8.2-1
ii  libxml2              2.9.4+dfsg1-7+b3
ii  libxrandr2           2:1.5.1-1
ii  shared-mime-info     1.10-1

Versions of packages libgtk-3-0:amd64 recommends:
ii  libgtk-3-bin  3.24.5-1

Versions of packages libgtk-3-0:amd64 suggests:
ii  gvfs             1.38.1-3
ii  librsvg2-common  2.44.10-2.1

-- no debconf information

Reply | Threaded
Open this post in threaded view
|

Bug#929567: libgtk-3-0:amd64: Emacs constantly crashes on startup with "X protocol error: BadLength..."

Vincent Lefevre-10
Testcase:

$ printf '\u26D4\n' > test
$ emacs -Q test

It is U+26D4 NO ENTRY that triggers the crash.

--
Vincent Lefèvre <[hidden email]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Reply | Threaded
Open this post in threaded view
|

Bug#929567:

Vincent Lefevre-10
In reply to this post by Vincent Lefevre-10
On 2019-06-06 09:31:28 +0200, Andreas Henriksson wrote:

> On Wed, Jun 05, 2019 at 03:51:47PM +0000, J. Smith wrote:
> > See https://debbugs.gnu.org/30045 (fixed in Emacs 26.2).
>
> According to the merged upstream duplicates these should be the relevant
> fixes:
>
> http://git.savannah.gnu.org/cgit/emacs.git/commit/?h=emacs-26.2&id=408bf21a8c
> http://git.savannah.gnu.org/cgit/emacs.git/commit/?h=emacs-26.2&id=95b77b0451
> http://git.savannah.gnu.org/cgit/emacs.git/commit/?h=emacs-26.2&id=3deaac1bd9
>
> Hoping someone can test and verify that fixes the issue....
When using the first two (the third one is a cosmetic change),
rendering the character is slow, but Emacs no longer crashes.
I've attached the resulting patch.

--
Vincent Lefèvre <[hidden email]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

emacs26-color-font.patch (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Bug#929567: libgtk-3-0:amd64: Emacs constantly crashes on startup with "X protocol error: BadLength..."

Andreas Beckmann-4
In reply to this post by Vincent Lefevre-10
Followup-For: Bug #929567
Control: tag -1 pending

Hi Rob,

I've prepared another update for emacs and uploaded it to DELAYED/10.
I primarily want to get rid of all the transitional emacsXX* packages
now that buster has been released, but I also included this RC bugfix.

As usual, you can find the changes in my fork:
https://salsa.debian.org/anbe/deb-emacs.git


Andreas

emacs_26.1+1-3.3.dsc.diff (15K) Download Attachment