Bug 491620 - Kdevelop5 crashes when opening U-Boot source
Summary: Kdevelop5 crashes when opening U-Boot source
Status: REPORTED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2024-08-12 13:57 UTC by Sergey Temerkhanov
Modified: 2024-08-16 12:30 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Temerkhanov 2024-08-12 13:57:04 UTC
Application: kdevelop (5.12.230805 (23.08.5))

Qt Version: 5.15.12
Frameworks Version: 5.115.0
Operating System: Linux 6.4.0-150600.23.17-default x86_64
Windowing System: X11
Distribution: "openSUSE Leap 15.6"
DrKonqi: 5.27.11 [KCrashBackend]

-- Information about the crash:
Kdevelop5 crashes when opening U-Boot source tree subdirectory "net"

The reporter is unsure if this crash is reproducible.

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

[KCrash Handler]
#4  ClangParseJob::ClangParseJob (this=<optimized out>, url=..., languageSupport=<optimized out>) at /usr/src/debug/kdevelop5-23.08.5-bp156.1.3.x86_64/plugins/clang/clangparsejob.cpp:184
#5  0x00007fd75e3341d5 in non-virtual thunk to ClangSupport::createParseJob(KDevelop::IndexedString const&) () at /usr/src/debug/kdevelop5-23.08.5-bp156.1.3.x86_64/plugins/clang/clangsupport.h:44
#6  0x00007fd777a8ed8e in KDevelop::BackgroundParserPrivate::createParseJob (this=this@entry=0x55b1c9701ed0, url=..., parsePlan=...) at /usr/src/debug/kdevelop5-23.08.5-bp156.1.3.x86_64/kdevplatform/language/backgroundparser/backgroundparser.cpp:380
#7  0x00007fd777a91c3e in KDevelop::BackgroundParserPrivate::parseDocumentsInternal (this=this@entry=0x55b1c9701ed0) at /usr/src/debug/kdevelop5-23.08.5-bp156.1.3.x86_64/kdevplatform/language/backgroundparser/backgroundparser.cpp:320
#8  0x00007fd777a8c84f in KDevelop::BackgroundParser::parseDocuments (this=<optimized out>) at /usr/src/debug/kdevelop5-23.08.5-bp156.1.3.x86_64/kdevplatform/language/backgroundparser/backgroundparser.cpp:705
#9  0x00007fd77a11522b in QtPrivate::QSlotObjectBase::call (a=0x7ffe31c8f940, r=0x55b1c95c02a0, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#10 doActivate<false> (sender=0x55b1c9701ef0, signal_index=3, argv=0x7ffe31c8f940) at kernel/qobject.cpp:3925
#11 0x00007fd77a10e5f2 in QMetaObject::activate (sender=sender@entry=0x55b1c9701ef0, m=m@entry=0x7fd77a3ac980 <QTimer::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffe31c8f940) at kernel/qobject.cpp:3985
#12 0x00007fd77a119d77 in QTimer::timeout (this=this@entry=0x55b1c9701ef0, _t1=...) at .moc/moc_qtimer.cpp:205
#13 0x00007fd77a11a0d8 in QTimer::timerEvent (this=0x55b1c9701ef0, e=<optimized out>) at kernel/qtimer.cpp:259
#14 0x00007fd77a10bb73 in QObject::event (this=0x55b1c9701ef0, e=0x7ffe31c8fc80) at kernel/qobject.cpp:1369
#15 0x00007fd77af9f87c in QApplicationPrivate::notify_helper (this=this@entry=0x55b1c8fa40a0, receiver=receiver@entry=0x55b1c9701ef0, e=e@entry=0x7ffe31c8fc80) at kernel/qapplication.cpp:3640
#16 0x00007fd77afa663f in QApplication::notify (this=<optimized out>, receiver=0x55b1c9701ef0, e=0x7ffe31c8fc80) at kernel/qapplication.cpp:3164
#17 0x00007fd77a0d7d53 in QCoreApplication::notifyInternal2 (receiver=0x55b1c9701ef0, event=0x7ffe31c8fc80) at kernel/qcoreapplication.cpp:1064
#18 0x00007fd77a139609 in QTimerInfoList::activateTimers (this=0x55b1c9087d40) at kernel/qtimerinfo_unix.cpp:643
#19 0x00007fd77a139dd1 in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:183
#20 0x00007fd775ba5fac in ?? () from /usr/lib64/libglib-2.0.so.0
#21 0x00007fd775ba7bd0 in ?? () from /usr/lib64/libglib-2.0.so.0
#22 0x00007fd775ba81cc in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#23 0x00007fd77a13a17c in QEventDispatcherGlib::processEvents (this=0x55b1c9088850, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#24 0x00007fd77a0d65ba in QEventLoop::exec (this=this@entry=0x7ffe31c8fed0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:235
#25 0x00007fd77a0dfdf7 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1375
#26 0x000055b1c6ff9441 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kdevelop5-23.08.5-bp156.1.3.x86_64/app/main.cpp:841
[Inferior 1 (process 20810) detached]

Reported using DrKonqi
Comment 1 Igor Kushnir 2024-08-16 12:30:46 UTC
The crash is at this line https://invent.kde.org/kdevelop/kdevelop/-/blob/release/23.08/plugins/clang/clangparsejob.cpp#L184 :
    projectPaths.append(bsm->buildDirectory(project->projectItem()));
Probably the buildSystemManager is null. What project manager do you use for this project?

> Kdevelop5 crashes when opening U-Boot source tree subdirectory "net"
Do you mean opening a project with this "net" subdirectory as the root directory?