Bug 502282

Summary: segfault in Session restore
Product: [Applications] konqueror Reporter: Raphael Rosch <kdebugs>
Component: session restoreAssignee: Raphael Rosch <kdebugs>
Status: REPORTED ---    
Severity: crash    
Priority: NOR    
Version First Reported In: 24.02.2   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Raphael Rosch 2025-04-01 14:11:17 UTC
It seems some conditions (that I have not been able to track down) cause the session restore file to store corrupted data that when restoring the session causes a crash (with segfault) when opening a given view. This has happened to me a few times in the past, and if I remember correctly, just removing the `HistoryItemViewTX_XBuffer=` content allowed restoring the session, and refreshing the view (or going back in the history) repaired the next save of the file.

Last version where I had this problem is: konqueror-23.08.5-1, x86_64 on fc39.
  kf5-kio-core-libs version is 5.116.

I'm working on the session restore code, so I'm filing this bug to track this issue in case it continues after my changes are done.