Bug#946499: eog crashes with 'BadAlloc (insufficient resources for operation)' on large image

scott092707 at aol.com scott092707 at aol.com
Tue Dec 10 03:15:32 GMT 2019


Package: eog
Version: 3.34.1-1
Severity: important

Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Scott Jacobs <scott092707 at aol.com>
To: Debian Bug Tracking System <submit at bugs.debian.org>
Subject: eog crashes with 'BadAlloc (insufficient resources for operation)' on large image
Bcc: Scott Jacobs <scott092707 at aol.com>
Message-ID: <157594733072.4153.8536409629457292126.reportbug at ASUS-PRIME-B350M-A-CSM>
X-Mailer: reportbug 7.5.3
Date: Mon, 09 Dec 2019 22:08:50 -0500
X-Debbugs-Cc: scott092707 at aol.com

Dear Maintainer,

On trying to open a large image (identify reports "JPEG 44351x3013
44351x3013+0+0 8-bit sRGB 18.7524MiB 0.000u 0:00.000"), the window opens, and then
closes.  When run from the terminal, eog crashes with:

(eog:3197): Gdk-ERROR **: 21:21:44.635: The program 'eog' received an X Window
System error.
This probably reflects a bug in the program.
The error was 'BadAlloc (insufficient resources for operation)'.
  (Details: serial 1991 error_code 11 request_code 130 (MIT-SHM) minor_code 5)
..."

The rest of the eog error message suggested how best to run under the debugger,
so here is the text of the run:

================================================================
scott at ASUS-PRIME-B350M-A-CSM:~$ GDK_SYNCHRONIZE gdb --args eog
/data/scott/Photos/Unreviewed/20191015_Trip_Michaelsberg/Pan5/TKDD1446-54_RL.jpg
bash: GDK_SYNCHRONIZE: command not found
scott at ASUS-PRIME-B350M-A-CSM:~$ GDK_SYNCHRONIZE=1 gdb --args eog
/data/scott/Photos/Unreviewed/20191015_Trip_Michaelsberg/Pan5/TKDD1446-54_RL.jpg
GNU gdb (Debian 8.3.1-1) 8.3.1
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from eog...
Reading symbols from /usr/lib/debug/.build-
id/5f/7bc6fae2d0db1b144e2b30cdf905dd5e36c1b8.debug...
(gdb) break gdk_x_error()
Function "gdk_x_error()" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (gdk_x_error()) pending.
(gdb) run
Starting program: /usr/bin/eog
/data/scott/Photos/Unreviewed/20191015_Trip_Michaelsberg/Pan5/TKDD1446-54_RL.jpg
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff208d700 (LWP 3902)]
[New Thread 0x7ffff188c700 (LWP 3903)]
[New Thread 0x7ffff108b700 (LWP 3904)]
[New Thread 0x7fffe3fff700 (LWP 3905)]
[New Thread 0x7fffe37fe700 (LWP 3906)]
[New Thread 0x7fffe2ffd700 (LWP 3907)]
[Thread 0x7fffe2ffd700 (LWP 3907) exited]

(eog:3898): Gdk-ERROR **: 21:40:47.313: The program 'eog' received an X Window
System error.
This probably reflects a bug in the program.
The error was 'BadAlloc (insufficient resources for operation)'.
  (Details: serial 3687 error_code 11 request_code 130 (MIT-SHM) minor_code 5)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the GDK_SYNCHRONIZE environment
   variable to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

Thread 1 "eog" received signal SIGTRAP, Trace/breakpoint trap.
0x00007ffff7c3ddb5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
(gdb) backtrace
#0  0x00007ffff7c3ddb5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007ffff7c406bc in g_log_writer_default () from /lib/x86_64-linux-
gnu/libglib-2.0.so.0
#2  0x00007ffff7c3e9e7 in g_log_structured_array () from /lib/x86_64-linux-
gnu/libglib-2.0.so.0
#3  0x00007ffff7c3f400 in g_log_structured_standard () from /lib/x86_64-linux-
gnu/libglib-2.0.so.0
#4  0x00007ffff723060a in ?? () from /lib/x86_64-linux-gnu/libgdk-3.so.0
#5  0x00007ffff723d443 in ?? () from /lib/x86_64-linux-gnu/libgdk-3.so.0
#6  0x00007ffff641c14b in _XError () from /lib/x86_64-linux-gnu/libX11.so.6
#7  0x00007ffff6418f77 in ?? () from /lib/x86_64-linux-gnu/libX11.so.6
#8  0x00007ffff6419015 in ?? () from /lib/x86_64-linux-gnu/libX11.so.6
#9  0x00007ffff6419f6d in _XReply () from /lib/x86_64-linux-gnu/libX11.so.6
#10 0x00007ffff641581d in XSync () from /lib/x86_64-linux-gnu/libX11.so.6
#11 0x00007ffff64158bb in ?? () from /lib/x86_64-linux-gnu/libX11.so.6
#12 0x00007ffff641caaf in ?? () from /lib/x86_64-linux-gnu/libX11.so.6
#13 0x00007ffff53abe81 in XShmCreatePixmap () from /lib/x86_64-linux-
gnu/libXext.so.6
#14 0x00007ffff714fd73 in ?? () from /lib/x86_64-linux-gnu/libcairo.so.2
#15 0x00007ffff71509a1 in ?? () from /lib/x86_64-linux-gnu/libcairo.so.2
#16 0x00007ffff7150a2c in ?? () from /lib/x86_64-linux-gnu/libcairo.so.2
#17 0x00007ffff71244b3 in cairo_surface_create_similar_image () from
/lib/x86_64-linux-gnu/libcairo.so.2
#18 0x00007ffff71246a0 in cairo_surface_create_similar () from
/lib/x86_64-linux-gnu/libcairo.so.2
#19 0x00007ffff721da81 in gdk_window_create_similar_surface () from
/lib/x86_64-linux-gnu/libgdk-3.so.0
#20 0x00007ffff7f902db in create_surface_from_pixbuf (pixbuf=<optimized out>,
view=0x5555558d4620) at ../src/eog-scroll-view.c:1656
#21 update_pixbuf (view=view at entry=0x5555558d4620, pixbuf=<optimized out>) at
../src/eog-scroll-view.c:1656
#22 0x00007ffff7f92a13 in eog_scroll_view_set_image (view=0x5555558d4620,
image=0x7fffdc050ba0) at ../src/eog-scroll-view.c:1959
#23 0x00007ffff7fa4cc7 in eog_window_display_image (window=0x55555578de40,
image=0x7fffdc050ba0) at ../src/eog-window.c:994
#24 0x00007ffff7fa56a6 in eog_job_load_cb (job=0x555555620ed0, data=<optimized
out>) at ../src/eog-window.c:1431
#25 0x00007ffff7d20eb2 in g_closure_invoke () from /lib/x86_64-linux-
gnu/libgobject-2.0.so.0
#26 0x00007ffff7d344d4 in ?? () from /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#27 0x00007ffff7d3d18f in g_signal_emit_valist () from /lib/x86_64-linux-
gnu/libgobject-2.0.so.0
#28 0x00007ffff7d3d81f in g_signal_emit () from /lib/x86_64-linux-
gnu/libgobject-2.0.so.0
#29 0x00007ffff7f7e2b9 in notify_finished (job=0x555555620ed0) at ../src/eog-
jobs.c:158
#30 0x00007ffff7c37d7e in g_main_context_dispatch () from /lib/x86_64-linux-
gnu/libglib-2.0.so.0
#31 0x00007ffff7c38130 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007ffff7c381bf in g_main_context_iteration () from /lib/x86_64-linux-
gnu/libglib-2.0.so.0
#33 0x00007ffff7e41ced in g_application_run () from /lib/x86_64-linux-
gnu/libgio-2.0.so.0
#34 0x0000555555555331 in main (argc=<optimized out>, argv=<optimized out>) at
../src/main.c:133
(gdb)

================================================================



-- System Information:
Debian Release: bullseye/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'testing')
Architecture: amd64 (x86_64)

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

Versions of packages eog depends on:
ii  dconf-gsettings-backend [gsettings-backend]  0.34.0-1
ii  gir1.2-gtk-3.0                               3.24.12-1
ii  gir1.2-peas-1.0                              1.22.0-4
ii  gsettings-desktop-schemas                    3.34.0-2
ii  libc6                                        2.29-2
ii  libcairo2                                    1.16.0-4
ii  libexempi8                                   2.5.1-1
ii  libexif12                                    0.6.21-5.1
ii  libgdk-pixbuf2.0-0                           2.40.0+dfsg-1
ii  libgirepository-1.0-1                        1.62.0-2
ii  libglib2.0-0                                 2.62.2-2
ii  libgnome-desktop-3-18                        3.34.1-1
ii  libgtk-3-0                                   3.24.12-1
ii  libjpeg62-turbo                              1:1.5.2-2+b1
ii  liblcms2-2                                   2.9-3+b1
ii  libpeas-1.0-0                                1.22.0-4
ii  librsvg2-2                                   2.44.14-1
ii  libx11-6                                     2:1.6.8-1
ii  shared-mime-info                             1.10-1
ii  zlib1g                                       1:1.2.11.dfsg-1+b1

Versions of packages eog recommends:
ii  librsvg2-common  2.44.14-1
ii  yelp             3.34.0-1

Versions of packages eog suggests:
pn  eog-plugins  <none>

-- no debconf information



More information about the pkg-gnome-maintainers mailing list