Bug 409939

Summary: App crash when writing c++17 style "for loop" iterating over elements of a std::unordered_map using structured binding declaration
Product: [Applications] kdevelop Reporter: FHedin <devel>
Component: Code completionAssignee: kdevelop-bugs-null
Status: RESOLVED WORKSFORME    
Severity: crash    
Priority: NOR    
Version First Reported In: 5.3.3   
Target Milestone: ---   
Platform: Appimage   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Desktop capture of the bug

Description FHedin 2019-07-18 09:50:15 UTC
Created attachment 121602 [details]
Desktop capture of the bug

SUMMARY

Observed in 5.3.3 and 5.3.2

When writing code for iterating over an unordered_map using the following syntax : 

                             for(const auto& [key,val] : map)
                             {}

the software crashes (not always) usually when typing the "] : map" section of the line

STEPS TO REPRODUCE
1. Interactively try to write something like "for(const auto& [key,val] : map)" in a file ; in my case it was in a header file part of a c++ project with the parser set to std=c++1z.

An attached video illustrates the problem.

OBSERVED RESULT

App may crash, on reload the file is usually properly recovered ; seems to come from the code completion feature, but not 100  sure.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Linux (x86_64) release 4.15.0-54-generic
KDE Frameworks Version: KDE Frameworks 5.54.0
Qt Version: Qt 5.9.8 (built against 5.9.8)

ADDITIONAL INFORMATION

See the attached video.
Comment 1 Justin Zobel 2022-09-23 02:22:50 UTC
Thank you for reporting this crash in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the crash with a recent software version?

If you can reproduce the issue, please change the status to "CONFIRMED" when replying. Thank you!
Comment 2 FHedin 2022-09-24 08:06:47 UTC
(In reply to Justin Zobel from comment #1)
> Thank you for reporting this crash in KDE software. As it has been a while
> since this issue was reported, can we please ask you to see if you can
> reproduce the crash with a recent software version?
> 
> If you can reproduce the issue, please change the status to "CONFIRMED" when
> replying. Thank you!

Hi,

sorry I stopped using Kdevelop at some point.

Best,
FH
Comment 3 Bug Janitor Service 2022-10-09 04:51:50 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2022-10-24 05:00:22 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!