Bug 477827

Summary: Kdevelop crashes on valgrind launch
Product: [Applications] kdevelop Reporter: Eugene Shalygin <eugene.shalygin+bugzilla.kde>
Component: generalAssignee: kdevelop-bugs-null
Status: REPORTED ---    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Eugene Shalygin 2023-12-01 10:28:27 UTC
Application: kdevelop (5.13.240180 (24.01.80))

Qt Version: 5.15.11
Frameworks Version: 5.112.0
Operating System: Linux 6.6.2-gentoo x86_64
Windowing System: Wayland
Distribution: "Gentoo Linux"
DrKonqi: 5.27.9 [KCrashBackend]

-- Information about the crash:
Launching the memcheck session make KDevelop crash

The crash can be reproduced every time.

-- Backtrace:
Application: KDevelop (kdevelop), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f123d5fd410 in typeinfo for KJobTrackerInterface () at /usr/lib64/libKF5CoreAddons.so.5
#5  0x00007f123c2c7b34 in  () at /usr/lib64/libQt5Core.so.5
#6  0x00007f123d5a0490 in KJob::finished(KJob*, KJob::QPrivateSignal) () at /usr/lib64/libKF5CoreAddons.so.5
#7  0x00007f123d5a0e4f in KJob::~KJob() () at /usr/lib64/libKF5CoreAddons.so.5
#8  0x00007f11d53ab67d in  () at /usr/lib64/qt5/plugins/kdevplatform/513/kdevvalgrind.so
#9  0x00007f123c2bf5b2 in QObjectPrivate::deleteChildren() () at /usr/lib64/libQt5Core.so.5
#10 0x00007f123c2c596b in QObject::~QObject() () at /usr/lib64/libQt5Core.so.5
#11 0x00007f123dcef639 in KDevelop::ExecuteCompositeJob::~ExecuteCompositeJob() () at /usr/lib64/libKDevPlatformUtil.so.513
#12 0x00007f123c2bf7a7 in QObject::event(QEvent*) () at /usr/lib64/libQt5Core.so.5
#13 0x00007f123cf6345e in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#14 0x00007f123c293e68 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib64/libQt5Core.so.5
#15 0x00007f123c2974e3 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib64/libQt5Core.so.5
#16 0x00007f123c2e6a73 in  () at /usr/lib64/libQt5Core.so.5
#17 0x00007f1238281e82 in  () at /usr/lib64/libglib-2.0.so.0
#18 0x00007f1238285087 in  () at /usr/lib64/libglib-2.0.so.0
#19 0x00007f12382856ac in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#20 0x00007f123c2e6566 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#21 0x00007f123c29288b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#22 0x00007f123c29aded in QCoreApplication::exec() () at /usr/lib64/libQt5Core.so.5
#23 0x000056407d28c66f in  ()
#24 0x00007f123c5e0eea in  () at /usr/lib64/libc.so.6
#25 0x00007f123c5e0fa5 in __libc_start_main () at /usr/lib64/libc.so.6
#26 0x000056407d28d241 in  ()
[Inferior 1 (process 185899) detached]

Reported using DrKonqi
Comment 1 Eugene Shalygin 2023-12-01 10:55:10 UTC
Running valgrind manually with the save executable results in:

==190644== Memcheck, a memory error detector
==190644== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==190644== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
==190644== Command: ./xxxxx
==190644== 

valgrind:  Fatal error at startup: a function redirection
valgrind:  which is mandatory for this platform-tool combination
valgrind:  cannot be set up.  Details of the redirection are:
valgrind:  
valgrind:  A must-be-redirected function
valgrind:  whose name matches the pattern:      strlen
valgrind:  in an object with soname matching:   ld-linux-x86-64.so.2
valgrind:  was not found whilst processing
valgrind:  symbols from the object with soname: ld-linux-x86-64.so.2
valgrind:  
valgrind:  Possible fixes: (1, short term): install glibc's debuginfo
valgrind:  package on this machine.  (2, longer term): ask the packagers
valgrind:  for your Linux distribution to please in future ship a non-
valgrind:  stripped ld.so (or whatever the dynamic linker .so is called)
valgrind:  that exports the above-named function using the standard
valgrind:  calling conventions for this platform.  The package you need
valgrind:  to install for fix (1) is called
valgrind:  
valgrind:    On Debian, Ubuntu:                 libc6-dbg
valgrind:    On SuSE, openSuSE, Fedora, RHEL:   glibc-debuginfo
valgrind:  
valgrind:  Note that if you are debugging a 32 bit process on a
valgrind:  64 bit system, you will need a corresponding 32 bit debuginfo
valgrind:  package (e.g. libc6-dbg:i386).
valgrind:  
valgrind:  Cannot continue -- exiting now.  Sorry.