Bug 494765 - kdiff3 crashes when saving merged file located on sftp:// uri
Summary: kdiff3 crashes when saving merged file located on sftp:// uri
Status: RESOLVED FIXED
Alias: None
Product: kdiff3
Classification: Applications
Component: application (other bugs)
Version First Reported In: 1.10.0
Platform: Debian stable Linux
: NOR crash
Target Milestone: ---
Assignee: michael
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-14 19:03 UTC by Grzegorz Wozniak
Modified: 2024-12-22 21:47 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In: 1.12.0
Sentry Crash Report:


Attachments
krash file - debian bookworm (3.17 KB, text/vnd.kde.kcrash-report)
2024-10-14 19:03 UTC, Grzegorz Wozniak
Details
screen - debian trixie (193.44 KB, image/png)
2024-10-14 19:05 UTC, Grzegorz Wozniak
Details
kubuntu krash file (3.39 KB, text/vnd.kde.kcrash-report)
2024-10-14 21:43 UTC, Grzegorz Wozniak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Grzegorz Wozniak 2024-10-14 19:03:16 UTC
Created attachment 174819 [details]
krash file - debian bookworm

SUMMARY
I used to compare remote directories (specially sftp) and merge changes from one system to another using krusader and sysnchronize folders option then run kdiff3 by double click, compare, merge and save.
It was working perfectly in kde4 then I changed  position at work and stopped using this feature, but recalled it last time and kdiff3 crashed not once but  started crashing over and over again during pressing save button.
I did tests on debian bookworm with 1.10.0-1(1.9.70 64bit) version of kdiff3  and debian trixie with 1.11.4 (1.11.4 64bit).
STEPS TO REPRODUCE
1. generate ssh key pair and append public keys to ~/.ssh/authorized_keys - I was using public key auth during tests and regular work when catched the bug 
2. create two files eg. /tmp/1.txt and /tmp/2.txt with some content to compare
3. run kdiff3 sftp://localhost/tmp/1.txt sftp://localhost/tmp/2.txt
4. in merge menu choose merge then merge files and try to save with save button
5. app should crash - on debian bookworm it launches kde report app so crash is immediate, on trixie error window with "Out of memery" text appears after click on OK app is crashing but drkonqi is not starting intead systemd-coredump is taking care of dump.


SOFTWARE/OS VERSIONS
Operating System: Debian GNU/Linux 12
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.6.13+bpo-amd64 (64-bit)
Graphics Platform: offscreen
Processors: 16 × 11th Gen Intel® Core™ i7-11850H @ 2.50GHz
Memory: 31.1 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics

ADDITIONAL INFORMATION
attaching kcrash file from debian bookworm and screen from debian trixie.
Comment 1 Grzegorz Wozniak 2024-10-14 19:05:40 UTC
Created attachment 174820 [details]
screen - debian trixie
Comment 2 Grzegorz Wozniak 2024-10-14 19:13:17 UTC
And console log from debian trixie:
gwozniak@gamingpc:~$ kdiff3 sftp://gwozniak@127.0.0.1/tmp/zzz/1/rtpengine.conf.dpkg-dist sftp://gwozniak@127.0.0.1/tmp/zzz/2/rtpengine.conf.dpkg-dist
Qt: Session management error: None of the authentication protocols specified are supported
org.kde.kdiff3: Loading A:  "sftp://gwozniak@127.0.0.1/tmp/zzz/1/rtpengine.conf.dpkg-dist"
org.kde.kdiff3: Loading B:  "sftp://gwozniak@127.0.0.1/tmp/zzz/2/rtpengine.conf.dpkg-dist"
org.kde.kdiff3: Diff: A <-> B
org.kde.kdiff3: Linediff: A <-> B
org.kde.kdiff3: Enter: calcDiff3LineListUsingAB
org.kde.kdiff3: Leave: calcDiff3LineListUsingAB
QSocketNotifier: Invalid socket 8 and type 'Read', disabling...
QSocketNotifier: Invalid socket 313 and type 'Read', disabling...
QSocketNotifier: Invalid socket 314 and type 'Read', disabling...
Unable to start Dr. Konqi
Re-raising signal for core dump handling.
org.kde.kdiff3: Loading A:  "sftp://gwozniak@127.0.0.1/tmp/zzz/1/rtpengine.conf.dpkg-dist"
org.kde.kdiff3: Loading B:  "sftp://gwozniak@127.0.0.1/tmp/zzz/2/rtpengine.conf.dpkg-dist"
org.kde.kdiff3: Diff: A <-> B
org.kde.kdiff3: Linediff: A <-> B
org.kde.kdiff3: Enter: calcDiff3LineListUsingAB
org.kde.kdiff3: Leave: calcDiff3LineListUsingAB

20 -- exe=/usr/bin/kdiff3
13 -- platform=xcb
11 -- display=:0
15 -- appname=kdiff3
17 -- apppath=/usr/bin
10 -- signal=11
12 -- pid=1563233
27 -- appversion=1.11.4 (64 bit)
19 -- programname=KDiff3
31 -- bugaddress=submit@bugs.kde.org
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = kdiff3 path = /usr/bin pid = 1563233
KCrash: Arguments: /usr/bin/kdiff3 sftp://gwozniak@127.0.0.1/tmp/zzz/1/rtpengine.conf.dpkg-dist sftp://gwozniak@127.0.0.1/tmp/zzz/2/rtpengine.conf.dpkg-dist 
KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi
Qt: Session management error: None of the authentication protocols specified are supported
[1]   Segmentation fault      (core dumped) kdiff3 sftp://gwozniak@127.0.0.1/tmp/zzz/1/rtpengine.conf.dpkg-dist sftp://gwozniak@127.0.0.1/tmp/zzz/2/rtpengine.conf.dpkg-dist

[2]+  Stopped                 kdiff3 sftp://gwozniak@127.0.0.1/tmp/zzz/1/rtpengine.conf.dpkg-dist sftp://gwozniak@127.0.0.1/tmp/zzz/2/rtpengine.conf.dpkg-dist
QSocketNotifier: Invalid socket 8 and type 'Read', disabling...
QSocketNotifier: Invalid socket 313 and type 'Read', disabling...
QSocketNotifier: Invalid socket 314 and type 'Read', disabling...
Unable to start Dr. Konqi
Re-raising signal for core dump handling.
Comment 3 Grzegorz Wozniak 2024-10-14 21:42:24 UTC
Just downloaded latest kubuntu 24.04.1 iso and tested scenario in VM -> crash similar to debian trixie with "out of memory" error window, attaching krash file from there.
Comment 4 Grzegorz Wozniak 2024-10-14 21:43:58 UTC
Created attachment 174823 [details]
kubuntu krash file
Comment 5 michael 2024-12-22 21:47:45 UTC
This should be fixed in 1.12.0. Undefining NDEBUG while building will remove the errant assert from older versions.