Bug#948380: GIMP crash with floating point exception on image save.

2020-01-07 Thread Bernhard Übelacker
Dear Maintainer,
when comparing with a process while having debug symbols
installed, I guess the given backtrace would translate to
something like below.

Therefore I guess this crash is the same
as described in #929113.

Unfortunately I could not find a matching appearance of
function gimp_projection_chunk_render_iteration.

Additionally upstream has highly modified this file already.

Therefore, if this is reproducable, running with installed debug
symbol packages "gimp-dbgsym libglib2.0-0-dbgsym libgimp2.0-dbgsym" [1]
and an attached gdb, issuing at the crash the commands 'info reg'
and 'thread apply all bt full' could give some more insight.

Kind regards,
Bernhard



Submitter:  | 
Reconstructed:
[0x7f05c7726e27] libgimpbase-2.0.so.0(gimp_stack_trace_print+0x397) | 
0x7fc6d8ca8e27 in gimp_stack_trace_print () from /lib/libgimpbase-2.0.so.0
[0x56063cab94a0] gimp-2.10(+0xd14a0)| 
0x55b3604154a0 in gimp_eek () at errors.c:377
[0x56063cab98d8] gimp-2.10(+0xd18d8)| 
0x55b3604158d8 in gimp_fatal_error () at errors.c:234
[0x56063caba037] gimp-2.10(+0xd2037)| 
0x55b360416037 in gimp_sigfatal_handler (sig_num=8) at signals.c:165
[0x7f05c6a2e730] libpthread.so.0(+0x12730)  | 
[0x56063ce2b97f] gimp-2.10(+0x44397f)   | 
0x55b36078797f in gimp_projection_chunk_render_iteration () at 
gimpprojection.c:1416
[0x56063ce2bc28] gimp-2.10(+0x443c28)   | 
0x55b360787c28 in gimp_projection_chunk_render_callback () at 
gimpprojection.c:857
[0x7f05c6c12dd8] libglib-2.0.so.0(g_main_context_dispatch+0x158)| 
0x7fc6d8194dd8 in g_main_dispatch () at ../../../glib/gmain.c:3182
[0x7f05c6c131c8] libglib-2.0.so.0(+0x4e1c8) | 
0x7fc6d81951c8 in g_main_context_iterate () at ../../../glib/gmain.c:3920
[0x7f05c6c134c2] libglib-2.0.so.0(g_main_loop_run+0xb2) | 
0x7fc6d81954c2 in g_main_loop_run () at ../../../glib/gmain.c:4116
[0x56063cab8cb7] gimp-2.10(app_run+0x357)   | 
0x55b360414cb7 in app_run () at app.c:440
[0x56063cab85b5] gimp-2.10(main+0x395)  | 
0x55b3604145b5 in main () at main.c:524
[0x7f05c687d09b] libc.so.6(__libc_start_main+0xeb)  | 
0x7fc6d7dff09b in __libc_start_main () at ../csu/libc-start.c:308
[0x56063cab873a] gimp-2.10(_start+0x2a) | 
0x55b36041473a in _start ()



[1] https://wiki.debian.org/HowToGetABacktrace#Installing_the_debugging_symbols


# Buster/stable amd64 qemu VM 2020-01-08

apt update
apt dist-upgrade


apt install systemd-coredump xserver-xorg sddm openbox xterm binutils gdb gimp 
gimp-dbgsym libglib2.0-0-dbgsym libgimp2.0-dbgsym


gdb -q --pid $(pidof gimp-2.10

set width 0
set pagination off
set backtrace past-main





Submitter:  | 
Reconstructed:
[0x7f05c7726e27] libgimpbase-2.0.so.0(gimp_stack_trace_print+0x397) | 
0x7fc6d8ca8e27 in gimp_stack_trace_print () from /lib/libgimpbase-2.0.so.0
[0x56063cab94a0] gimp-2.10(+0xd14a0)| 
0x55b3604154a0 in gimp_eek () at errors.c:377
[0x56063cab98d8] gimp-2.10(+0xd18d8)| 
0x55b3604158d8 in gimp_fatal_error () at errors.c:234
[0x56063caba037] gimp-2.10(+0xd2037)| 
0x55b360416037 in gimp_sigfatal_handler (sig_num=8) at signals.c:165
[0x7f05c6a2e730] libpthread.so.0(+0x12730)  | 
[0x56063ce2b97f] gimp-2.10(+0x44397f)   | 
0x55b36078797f in gimp_projection_chunk_render_iteration () at 
gimpprojection.c:1416
[0x56063ce2bc28] gimp-2.10(+0x443c28)   | 
0x55b360787c28 in gimp_projection_chunk_render_callback () at 
gimpprojection.c:857
[0x7f05c6c12dd8] libglib-2.0.so.0(g_main_context_dispatch+0x158)| 
0x7fc6d8194dd8 in g_main_dispatch () at ../../../glib/gmain.c:3182
[0x7f05c6c131c8] libglib-2.0.so.0(+0x4e1c8) | 
0x7fc6d81951c8 in g_main_context_iterate () at ../../../glib/gmain.c:3920
[0x7f05c6c134c2] libglib-2.0.so.0(g_main_loop_run+0xb2) | 
0x7fc6d81954c2 in g_main_loop_run () at ../../../glib/gmain.c:4116
[0x56063cab8cb7] gimp-2.10(app_run+0x357)   | 
0x55b360414cb7 in app_run () at app.c:440
[0x56063cab85b5] gimp-2.10(main+0x395)  | 
0x55b3604145b5 in main () at main.c:524
[0x7f05c687d09b] libc.so.6(__libc_start_main+0xeb)  | 
0x7fc6d7dff09b in __libc_start_main () at ../csu/libc-start.c:308
[0x56063cab873a] gimp-2.10(_start+0x2a) | 
0x55b36041473a in _start ()




benutzer@debian:~$ addr2line --exe=/lib/x86_64-linux-gnu/libpthread.so.0 

Bug#948380: GIMP crash with floating point exception on image save.

2020-01-07 Thread Stephan Szyszkoski

Package: gimp
Version: 2.10.8-2

I am using Debian 10 (buster), kernel 4.19.0-6-amd64 x86_64 bits.
On saving a 1.0 GB drawing in GIMP 2.10.8-2, the program crashed with 
the following information:



```
GNU Image Manipulation Program version 2.10.8
git-describe: GIMP_2_10_6-294-ga967e8d2c2
C compiler:
    Using built-in specs.
    COLLECT_GCC=gcc
    COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper
    OFFLOAD_TARGET_NAMES=nvptx-none
    OFFLOAD_TARGET_DEFAULT=1
    Target: x86_64-linux-gnu
    Configured with: ../src/configure -v --with-pkgversion='Debian 
8.2.0-13' --with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs 
--enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ 
--prefix=/usr --with-gcc-major-version-only --program-suffix=-8 
--program-prefix=x86_64-linux-gnu- --enable-shared 
--enable-linker-build-id --libexecdir=/usr/lib 
--without-included-gettext --enable-threads=posix --libdir=/usr/lib 
--enable-nls --enable-clocale=gnu --enable-libstdcxx-debug 
--enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new 
--enable-gnu-unique-object --disable-vtable-verify --enable-libmpx 
--enable-plugin --enable-default-pie --with-system-zlib 
--with-target-system-zlib --enable-objc-gc=auto --enable-multiarch 
--disable-werror --with-arch-32=i686 --with-abi=m64 
--with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic 
--enable-offload-targets=nvptx-none --without-cuda-driver 
--enable-checking=release --build=x86_64-linux-gnu 
--host=x86_64-linux-gnu --target=x86_64-linux-gnu

    Thread model: posix
    gcc version 8.2.0 (Debian 8.2.0-13)

using GEGL version 0.4.12 (compiled against version 0.4.12)
using GLib version 2.58.3 (compiled against version 2.58.1)
using GdkPixbuf version 2.38.1 (compiled against version 2.38.0)
using GTK+ version 2.24.32 (compiled against version 2.24.32)
using Pango version 1.42.3 (compiled against version 1.42.3)
using Fontconfig version 2.13.1 (compiled against version 2.13.1)
using Cairo version 1.16.0 (compiled against version 1.16.0)

```
> fatal error: Floating point exception

Stack trace:
```
/lib/libgimpbase-2.0.so.0(gimp_stack_trace_print+0x397)[0x7f05c7726e27]
gimp-2.10(+0xd14a0)[0x56063cab94a0]
gimp-2.10(+0xd18d8)[0x56063cab98d8]
gimp-2.10(+0xd2037)[0x56063caba037]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12730)[0x7f05c6a2e730]
gimp-2.10(+0x44397f)[0x56063ce2b97f]
gimp-2.10(+0x443c28)[0x56063ce2bc28]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x158)[0x7f05c6c12dd8]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x4e1c8)[0x7f05c6c131c8]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_loop_run+0xb2)[0x7f05c6c134c2]
gimp-2.10(app_run+0x357)[0x56063cab8cb7]
gimp-2.10(main+0x395)[0x56063cab85b5]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xeb)[0x7f05c687d09b]
gimp-2.10(_start+0x2a)[0x56063cab873a]

```

System information is as follows (inxi -F)

System:    Host: upstairs Kernel: 4.19.0-6-amd64 x86_64 bits: 64 
Desktop: Budgie 10.5 Distro: Debian GNU/Linux 10 (buster)
Machine:   Type: Desktop Mobo: Gigabyte model: GA-870A-UD3 v: x.x 
serial:  BIOS: Award v: F2 date: 06/07/2010
CPU:   Topology: 6-Core model: AMD Phenom II X6 1075T bits: 64 type: 
MCP L2 cache: 3072 KiB
   Speed: 1607 MHz min/max: 800/3000 MHz Core speeds (MHz): 1: 
1607 2: 1607 3: 1126 4: 804 5: 804 6: 1607
Graphics:  Device-1: NVIDIA GM107 [GeForce GTX 750 Ti] driver: nouveau 
v: kernel
   Display: x11 server: X.Org 1.20.4 driver: nouveau 
resolution: 1680x1050~60Hz, 1680x1050~60Hz

   OpenGL: renderer: NV117 v: 4.3 Mesa 18.3.6
Audio: Device-1: Advanced Micro Devices [AMD/ATI] SBx00 Azalia 
driver: snd_hda_intel

   Device-2: NVIDIA driver: snd_hda_intel
   Sound Server: ALSA v: k4.19.0-6-amd64
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit 
Ethernet driver: r8169
   IF: enp6s0 state: up speed: 1000 Mbps duplex: full mac: 
1c:6f:65:4c:8c:8d

Drives:    Local Storage: total: 4.22 TiB used: 3.08 TiB (72.9%)
   ID-1: /dev/sda vendor: OCZ model: ARC100 size: 223.57 GiB
   ID-2: /dev/sdb vendor: Western Digital model: 
WD30EZRZ-00GXCB0 size: 2.73 TiB

   ID-3: /dev/sdc vendor: Samsung model: HD103SJ size: 931.51 GiB
   ID-4: /dev/sdd vendor: Western Digital model: 
WD2000JB-00KFA0 size: 186.31 GiB
   ID-5: /dev/sde vendor: Western Digital model: 
WD2000JB-00GVC0 size: 186.31 GiB
Partition: ID-1: / size: 45.59 GiB used: 14.11 GiB (31.0%) fs: ext4 dev: 
/dev/sda2
   ID-2: /home size: 564.68 GiB used: 491.52 GiB (87.0%) fs: 
ext4 dev: /dev/sdc8
   ID-3: swap-1 size: 7.81 GiB used: 1.19 GiB (15.2%) fs: swap 
dev: /dev/sdb3
   ID-4: swap-2 size: 12.01 GiB used: 32 KiB (0.0%) fs: swap 
dev: /dev/sdc6
   ID-5: swap-3 size: 3.90 GiB used: 0 KiB (0.0%) fs: swap dev: 
/dev/sdc7
   ID-6: swap-4 size: 6.86 GiB used: 0 KiB (0.0%) fs: swap dev: 
/dev/sde5
Sensors:   System Temperatures: cpu: 26.4 C mobo: N/A