https://bugs.kde.org/show_bug.cgi?id=400499

--- Comment #17 from Matt Fagnani <matthew.fagn...@utoronto.ca> ---
Created attachment 117348
  --> https://bugs.kde.org/attachment.cgi?id=117348&action=edit
New crash information added by DrKonqi

ksysguard (5.14.4) using Qt 5.11.3

- What I was doing when the application crashed:

I closed ksysguard, and drkonqi appeared. This crash occurred with qt 5.11.3,
ksysguard 5.14.4, kf5 5.53 in Fedora 29. 

The use-after-free errors found by valgrind which I previously reported
occurred each time I closed ksysguard. I wrote a patch removing delete
KSGRD::SensorMgr; in the kdemain function at ksysguard.cpp:611 after the app
finishes. When I applied the patch, only the first invalid read use-after-free
at SensorAgent.cpp:186 was shown by valgrind. The crashes might be prevented
because the use-after-free errors didn't continue to the point where the
segmentation fault occurred at qstring.cpp:3153. The crash I'm reporting here
is from the Fedora ksysguard-5.14.4-1.fc29 package without the patch I wrote.
If anyone has ideas on how to prevent the first use-after-free error at
SensorAgent.cpp:186 or otherwise fix the crashes, please let me know.

-- Backtrace (Reduced):
#8  0xb5cf5a22 in operator==(QString const&, QString const&) (s1=..., s2=...)
at tools/qstring.cpp:3153
#9  0xb68e6edf in QLabel::setText(QString const&) (this=0xd05260, text=...) at
widgets/qlabel.cpp:287
#10 0xb7f4749c in TopLevel::answerReceived(int, QList<QByteArray> const&)
(this=0xc71a80, id=1, answerList=...) at
/usr/src/debug/ksysguard-5.14.4-1.fc29.i386/gui/ksysguard.cpp:450
#11 0xb759f925 in KSGRD::SensorAgent::processAnswer(char const*, int)
(this=0xc86f20, buf=0xea0420 "100.000000\nksysguardd> 327360\nksysguardd>
111360\nksysguardd> 0\nksysguardd> 0\nksysguardd>
/dev/mapper/fedora-root\t30832636\t26958848\t2284540\t93\t/\n/dev/mapper/fedora-home\t84853216\t80074544\t974528\t99\t/hom"...,
buflen=583) at
/usr/src/debug/libksysguard-5.14.4-1.fc29.i386/ksgrd/SensorAgent.cpp:91
#12 0xb75a6e8e in KSGRD::SensorShellAgent::msgRcvd() (this=0xc86f20) at
/usr/include/qt5/QtCore/qarraydata.h:206

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to