Bug#1051462: kdiff3: segfault when quitting the application

2023-09-12 Thread Ritesh Raj Sarraf
Package: kdiff3
Version: 1.10.5-1
Followup-For: Bug #1051462
X-Debbugs-Cc: r...@debian.org


Workaround is to disable "Word Wrap Diff Windows" under menu:

DiffView => Word Wrap Diff Windows

-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 
'testing-security'), (500, 'testing-debug'), (500, 'stable-updates'), (500, 
'stable-security'), (500, 'oldstable-updates'), (500, 'oldstable-security'), 
(500, 'oldoldstable'), (500, 'unstable'), (500, 'stable'), (500, 'oldstable'), 
(100, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.4.0-4-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=en_IN.UTF-8, LC_CTYPE=en_IN.UTF-8 (charmap=UTF-8), LANGUAGE=en_US
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages kdiff3 depends on:
ii  kio   5.107.0-1
ii  libc6 2.37-7
ii  libgcc-s1 13.2.0-3
ii  libkf5configcore5 5.107.0-1
ii  libkf5configwidgets5  5.107.0-2
ii  libkf5coreaddons5 5.107.0-1
ii  libkf5crash5  5.107.0-1
ii  libkf5i18n5   5.107.0-1+b1
ii  libkf5kiocore55.107.0-1
ii  libkf5kiowidgets5 5.107.0-1
ii  libkf5parts5  5.107.0-1
ii  libkf5widgetsaddons5  5.107.0-1
ii  libkf5xmlgui5 5.107.0-1+b1
ii  libqt5core5a  5.15.10+dfsg-3
ii  libqt5gui55.15.10+dfsg-3
ii  libqt5printsupport5   5.15.10+dfsg-3
ii  libqt5widgets55.15.10+dfsg-3
ii  libstdc++613.2.0-3

Versions of packages kdiff3 recommends:
ii  kdiff3-doc  1.10.5-1

kdiff3 suggests no packages.

-- no debconf information



Bug#1051462: kdiff3: segfault when quitting the application

2023-09-08 Thread Ritesh Raj Sarraf
Package: kdiff3
Version: 1.10.5-1.1
Followup-For: Bug #1051462
X-Debbugs-Cc: r...@debian.org

I did a rebuild of 1.10.5-1 on my local machine as well, and I got this
report from kcrash.


```
Application: kdiff3 (kdiff3), signal: Segmentation fault

   PID: 24865 (kdiff3)
   UID: 1000 (rrs)
   GID: 1000 (rrs)
Signal: 11 (SEGV)
 Timestamp: Fri 2023-09-08 16:20:16 IST (9s ago)
  Command Line: kdiff3
Executable: /usr/bin/kdiff3
 Control Group: 
/user.slice/user-1000.slice/user@1000.service/app.slice/app-org.kde.konsole-50ec912755ae4e4695ca5a6bb7e88c85.scope
  Unit: user@1000.service
 User Unit: app-org.kde.konsole-50ec912755ae4e4695ca5a6bb7e88c85.scope
 Slice: user-1000.slice
 Owner UID: 1000 (rrs)
   Boot ID: a756b371b728465a8a28838af2d1a4c7
Machine ID: c879ebc407d84ea997f9e5564dd7aab6
  Hostname: priyasi
   Storage: 
/var/lib/systemd/coredump/core.kdiff3.1000.a756b371b728465a8a28838af2d1a4c7.24865.169417021600.zst
 (present)
  Size on Disk: 4.6M
   Message: Process 24865 (kdiff3) of user 1000 dumped core.

Module libsystemd.so.0 from deb systemd-254.1-3.amd64
Module libudev.so.1 from deb systemd-254.1-3.amd64
Stack trace of thread 24865:
#0  0x7ff8f8ca80fc __pthread_kill_implementation (libc.so.6 
+ 0x8a0fc)
#1  0x7ff8f8c5a472 __GI_raise (libc.so.6 + 0x3c472)
#2  0x7ff8facb2b46 _ZN6KCrash19defaultCrashHandlerEi 
(libKF5Crash.so.5 + 0x5b46)
#3  0x7ff8f8c5a510 __restore_rt (libc.so.6 + 0x3c510)
#4  0x7ff8f787f7ea n/a (libwayland-client.so.0 + 0xb7ea)
#5  0x7ff8f787ad38 n/a (libwayland-client.so.0 + 0x6d38)
#6  0x7ff8f787b1c2 wl_proxy_marshal_array_flags 
(libwayland-client.so.0 + 0x71c2)
#7  0x7ff8f787b3cd wl_proxy_marshal_flags 
(libwayland-client.so.0 + 0x73cd)
#8  0x7ff8f78f3b5d 
_ZN15QtWaylandClient17QWaylandShmBufferD2Ev (libQt5WaylandClient.so.5 + 0x6db5d)
#9  0x7ff8f78f3bed 
_ZN15QtWaylandClient23QWaylandShmBackingStoreD1Ev (libQt5WaylandClient.so.5 + 
0x6dbed)
#10 0x7ff8f78f3c79 
_ZN15QtWaylandClient23QWaylandShmBackingStoreD0Ev (libQt5WaylandClient.so.5 + 
0x6dc79)
#11 0x7ff8f9b0da1b _ZN13QBackingStoreD1Ev (libQt5Gui.so.5 + 
0x30da1b)
#12 0x7ff8fa18ae3f _ZN14QWidgetPrivate16deleteTLSysExtraEv 
(libQt5Widgets.so.5 + 0x18ae3f)
#13 0x7ff8fa1993a0 _ZN7QWidget7destroyEbb 
(libQt5Widgets.so.5 + 0x1993a0)
#14 0x7ff8fa1a0772 _ZN7QWidgetD2Ev (libQt5Widgets.so.5 + 
0x1a0772)
#15 0x5561a831e199 
_ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv (kdiff3 + 
0x99)
#16 0x7ff8f8c5c955 __run_exit_handlers (libc.so.6 + 0x3e955)
#17 0x7ff8f8c5ca8a __GI_exit (libc.so.6 + 0x3ea8a)
#18 0x7ff8f8c456d1 __libc_start_call_main (libc.so.6 + 
0x276d1)
#19 0x7ff8f8c45785 __libc_start_main_impl (libc.so.6 + 
0x27785)
#20 0x5561a8265031 _start (kdiff3 + 0x58031)
ELF object binary architecture: AMD x86-64
[New LWP 24865]
This GDB supports auto-downloading debuginfo from the following URLs:
  
Enable debuginfod for this session? (y or [n]) [answered N; input not from 
terminal]
Debuginfod has been disabled.
To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `kdiff3'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  __pthread_kill_implementation (threadid=, 
signo=signo@entry=11, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
[KCrash Handler]
#5  0x7ff8f787f7ea in ?? () from 
/lib/x86_64-linux-gnu/libwayland-client.so.0
#6  0x7ff8f787ad38 in ?? () from 
/lib/x86_64-linux-gnu/libwayland-client.so.0
#7  0x7ff8f787b1c2 in wl_proxy_marshal_array_flags () from 
/lib/x86_64-linux-gnu/libwayland-client.so.0
#8  0x7ff8f787b3cd in wl_proxy_marshal_flags () from 
/lib/x86_64-linux-gnu/libwayland-client.so.0
#9  0x7ff8f78f3b5d in 
QtWaylandClient::QWaylandShmBuffer::~QWaylandShmBuffer() () from 
/lib/x86_64-linux-gnu/libQt5WaylandClient.so.5
#10 0x7ff8f78f3bed in 
QtWaylandClient::QWaylandShmBackingStore::~QWaylandShmBackingStore() () from 
/lib/x86_64-linux-gnu/libQt5WaylandClient.so.5
#11 0x7ff8f78f3c79 in 
QtWaylandClient::QWaylandShmBackingStore::~QWaylandShmBackingStore() () from 
/lib/x86_64-linux-gnu/libQt5WaylandClient.so.5
#12 0x7ff8f9b0da1b in QBackingStore::~QBackingStore() () from 
/lib/x86_64-linux-gnu/libQt5Gui.so.5
#13 0x7ff8fa18ae3f in QWidgetPrivate::deleteTLSysExtra() () from 
/lib/x86_64-lin

Bug#1051462: kdiff3: segfault when quitting the application

2023-09-08 Thread Ritesh Raj Sarraf
Package: kdiff3
Version: 1.10.5-1
Severity: important
X-Debbugs-Cc: r...@debian.org

Dear Maintainer,


kdiff3, version 1.10.5-1, keeps persistently crashing upon exit. I'm not
sure if the gathered trace is any useful but adding it here.


```
$ coredumpctl dump 22787
   PID: 22787 (kdiff3)
   UID: 1000 (rrs)
   GID: 1000 (rrs)
Signal: 11 (SEGV)
 Timestamp: Fri 2023-09-08 15:46:17 IST (1min 40s ago)
  Command Line: kdiff3
Executable: /usr/bin/kdiff3
 Control Group: 
/user.slice/user-1000.slice/user@1000.service/app.slice/app-org.kde.konsole-d4586fce1af2414a8aa867c1e9d69bd5.scope
  Unit: user@1000.service
 User Unit: app-org.kde.konsole-d4586fce1af2414a8aa867c1e9d69bd5.scope
 Slice: user-1000.slice
 Owner UID: 1000 (rrs)
   Boot ID: be103b493b054b3cbef500a2863a95dc
Machine ID: c879ebc407d84ea997f9e5564dd7aab6
  Hostname: priyasi
   Storage: 
/var/lib/systemd/coredump/core.kdiff3.1000.be103b493b054b3cbef500a2863a95dc.22787.169416817700.zst
 (present)
  Size on Disk: 5.3M
   Message: Process 22787 (kdiff3) of user 1000 dumped core.

Module libsystemd.so.0 from deb systemd-254.1-3.amd64
Module libudev.so.1 from deb systemd-254.1-3.amd64
Stack trace of thread 22787:
#0  0x7fac88ea80fc __pthread_kill_implementation (libc.so.6 
+ 0x8a0fc)
#1  0x7fac88e5a472 __GI_raise (libc.so.6 + 0x3c472)
#2  0x7fac8adf2b46 _ZN6KCrash19defaultCrashHandlerEi 
(libKF5Crash.so.5 + 0x5b46)
#3  0x7fac88e5a510 __restore_rt (libc.so.6 + 0x3c510)
#4  0x7fac879bf8ee n/a (libwayland-client.so.0 + 0xb8ee)
#5  0x7fac879bad58 n/a (libwayland-client.so.0 + 0x6d58)
#6  0x7fac879bb212 wl_proxy_marshal_array_flags 
(libwayland-client.so.0 + 0x7212)
#7  0x7fac879bb421 wl_proxy_marshal_flags 
(libwayland-client.so.0 + 0x7421)
#8  0x7fac87a33b5d 
_ZN15QtWaylandClient17QWaylandShmBufferD2Ev (libQt5WaylandClient.so.5 + 0x6db5d)
#9  0x7fac87a33bed 
_ZN15QtWaylandClient23QWaylandShmBackingStoreD1Ev (libQt5WaylandClient.so.5 + 
0x6dbed)
#10 0x7fac87a33c79 
_ZN15QtWaylandClient23QWaylandShmBackingStoreD0Ev (libQt5WaylandClient.so.5 + 
0x6dc79)
#11 0x7fac89d0da1b _ZN13QBackingStoreD1Ev (libQt5Gui.so.5 + 
0x30da1b)
#12 0x7fac8a38ae3f _ZN14QWidgetPrivate16deleteTLSysExtraEv 
(libQt5Widgets.so.5 + 0x18ae3f)
#13 0x7fac8a3993a0 _ZN7QWidget7destroyEbb 
(libQt5Widgets.so.5 + 0x1993a0)
#14 0x7fac8a3a0772 _ZN7QWidgetD2Ev (libQt5Widgets.so.5 + 
0x1a0772)
#15 0x5570679f6cf1 n/a (kdiff3 + 0x106cf1)
#16 0x7fac88e5c955 __run_exit_handlers (libc.so.6 + 0x3e955)
#17 0x7fac88e5ca8a __GI_exit (libc.so.6 + 0x3ea8a)
#18 0x7fac88e456d1 __libc_start_call_main (libc.so.6 + 
0x276d1)
#19 0x7fac88e45785 __libc_start_main_impl (libc.so.6 + 
0x27785)
#20 0x5570679435b1 n/a (kdiff3 + 0x535b1)
ELF object binary architecture: AMD x86-64
```


Reverting back to version 1.10.4-1 from snapshots.d.o is working
perfect. Thus I concluded that the issue is in particular with the
latest 1.10.5 version.



-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 
'testing-debug'), (500, 'stable-updates'), (500, 'stable-security'), (500, 
'oldstable-updates'), (500, 'oldstable-security'), (500, 'oldoldstable'), (500, 
'unstable'), (500, 'stable'), (500, 'oldstable'), (100, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.4.0-4-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=en_IN.UTF-8, LC_CTYPE=en_IN.UTF-8 (charmap=UTF-8), LANGUAGE=en_US
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages kdiff3 depends on:
ii  kio   5.107.0-1
ii  libc6 2.37-7
ii  libgcc-s1 13.2.0-3
ii  libkf5configcore5 5.107.0-1
ii  libkf5configwidgets5  5.107.0-2
ii  libkf5coreaddons5 5.107.0-1
ii  libkf5crash5  5.107.0-1
ii  libkf5i18n5   5.107.0-1+b1
ii  libkf5kiocore55.107.0-1
ii  libkf5kiowidgets5 5.107.0-1
ii  libkf5parts5  5.107.0-1
ii  libkf5widgetsaddons5  5.107.0-1
ii  libkf5xmlgui5 5.107.0-1+b1
ii  libqt5core5a  5.15.10+dfsg-3
ii  libqt5gui55.15.10+dfsg-3
ii  libqt5printsupport5   5.15.10+dfsg-3
ii  libqt5widgets55.15.10+dfsg-3
ii  libstdc++613.2.0-3

Versions of packages kdiff3 recommends:
ii  kdiff3-doc  1.10.5-1

kdiff3 suggests no packages.

-- no debconf information