Bug 482109 - Crash opening CorsixTH
Summary: Crash opening CorsixTH
Status: RESOLVED DUPLICATE of bug 438249
Alias: None
Product: kdevelop
Classification: Applications
Component: All build tools (show other bugs)
Version: 5.12.230805
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-01 03:41 UTC by Stephen Baker
Modified: 2024-03-01 11:19 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
backtrace for all threads (188.50 KB, text/plain)
2024-03-01 03:41 UTC, Stephen Baker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Baker 2024-03-01 03:41:13 UTC
Created attachment 166227 [details]
backtrace for all threads

SUMMARY
kdevelop crashes when opening CorsixTH. It happens every time, but does not happen with other cmake projects.

STEPS TO REPRODUCE
1. git clone git@github.com:CorsixTH/CorsixTH.git
2. git checkout 2ff725815dab3adbc060130fcf7ef971efba96e0 # current master
3. ensure dependencies are installed: sdl2, sdl2_mixer, catch2, doxygen, ffmpeg, wxwidgets, lua, freetype
4. open kdevelop
5. click open/import project
6. select the CMakeList.txt file from CorsixTH root directory
7. click Finish
8. under "Extra arguments" add "-DBUILD_ANIMVIEW=ON" # it does not crash without this option
9. click OK

OBSERVED RESULT
kdevelop begins to open the project, then at some % (varies) it crashes.

EXPECTED RESULT
project should be opened


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.12

ADDITIONAL INFORMATION
I use wayland
-DBUILD_ANIMVIEW pulls in wxwidgets, that's the most distinguishing feature of that option; but I can't say it's the cause of the crash.
Comment 1 Igor Kushnir 2024-03-01 11:19:03 UTC
The relevant part of the backtrace is:
Thread 32 (Thread 0x7bfedfe006c0 (LWP 58196)):
#0  0x00007bff81b190bf in __GI___poll (fds=fds@entry=0x7bfedfdf9290, nfds=nfds@entry=1, timeout=timeout@entry=1000) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007bff83c3cbca in poll (__timeout=1000, __nfds=1, __fds=0x7bfedfdf9290) at /usr/include/bits/poll2.h:39
#2  pollDrKonqiSocket (sockfd=3, pid=<optimized out>) at /usr/src/debug/kcrash5/kcrash-5.115.0/src/kcrash.cpp:863
#3  KCrash::startProcess (argv=argv@entry=0x7bfedfdf93d8, waitAndExit=waitAndExit@entry=true, argc=<optimized out>) at /usr/src/debug/kcrash5/kcrash-5.115.0/src/kcrash.cpp:725
#4  0x00007bff83c3d82c in KCrash::defaultCrashHandler (sig=11) at /usr/src/debug/kcrash5/kcrash-5.115.0/src/kcrash.cpp:621
#5  0x00007bff81a5a770 in <signal handler called> () at /usr/lib/libc.so.6
#6  __memcpy_avx512_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:265
#7  0x00007bfed2c3fc76 in llvm::APInt::APInt () at /usr/include/llvm/ADT/APInt.h:157
#8  llvm::APSInt::APSInt () at /usr/include/llvm/ADT/APSInt.h:23
#9  clang::Expr::EvaluateKnownConstInt(clang::ASTContext const&, llvm::SmallVectorImpl<std::pair<clang::SourceLocation, clang::PartialDiagnostic> >*) const [clone .constprop.0] () at /usr/src/debug/clang/clang-16.0.6.src/lib/AST/ExprConstant.cpp:15478
#10 0x00007bfed1cef9e3 in clang::FieldDecl::getBitWidthValue () at /usr/src/debug/clang/clang-16.0.6.src/lib/AST/Decl.cpp:4317
#11 0x00007bff3cd8e6ff in (anonymous namespace)::Visitor::setDeclData<(CXCursorKind)1>(CXCursor, KDevelop::ClassMemberDeclaration*) const [clone .isra.0] (cursor=..., decl=decl@entry=0x7bfe1b5de780, this=<optimized out>) at /usr/src/debug/kdevelop/kdevelop-23.08.5/plugins/clang/duchain/builder.cpp:1157

This part indicates that the bug is a duplicate. You can find a KDevelop workaround and the libclang fix in comments under the original bug report.

*** This bug has been marked as a duplicate of bug 438249 ***