Bug 410946

Summary: Full Crash when Parsing std::apply by the background parser
Product: [Applications] kdevelop Reporter: dayspam
Component: All build toolsAssignee: kdevelop-bugs-null
Status: RESOLVED WORKSFORME    
Severity: critical CC: 6yearold
Priority: NOR    
Version First Reported In: 5.3.1   
Target Milestone: ---   
Platform: Debian stable   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: KDevelop Crash Report and the code snippet

Description dayspam 2019-08-15 16:01:08 UTC
Created attachment 122143 [details]
KDevelop Crash Report and the code snippet

SUMMARY
I was doing some refactoring, shifting towards compile time routines.
it started crashing when i entered this line:

std::apply([](auto&&... arg) {((Textures[frameID] = textureInterface.GetElement(arg)), ...);}, t);

the parser started in the background, and in the process, it killed the whole IDE.

STEPS TO REPRODUCE
1. Create a CMake C++17 Project
2. Paste the code included in the crash report
3. Wait for the background parser

OBSERVED RESULT
Crash

EXPECTED RESULT
No Crash

Application: kdevelop (5.3.1)

Qt Version: 5.11.3
Frameworks Version: 5.54.0
Operating System: Linux 4.19.0-5-amd64 x86_64
Distribution: Debian GNU/Linux 10 (buster)

The crash can be reproduced every time.
Comment 1 Gleb Popov 2022-09-30 06:05:06 UTC
Can't reproduce with KDevelop 22.08.1

Can you verify?