Bug 475584

Summary: segfault in akonadi_html_to
Product: [KDE Neon] neon Reporter: Jaime Perea <jaime.perea>
Component: Packages User EditionAssignee: Neon Bugs <neon-bugs>
Status: RESOLVED FIXED    
Severity: crash CC: auxsvr, jr, jshand2013, neon-bugs, sitter
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: BT segfault in akonadi_html_to
bt akonadi_html_to_text (a new one)

Description Jaime Perea 2023-10-13 21:35:54 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. akonadictl start
2. kontact
3. 

OBSERVED RESULT
dmesg is sending a lot of messages such us this 

akonadi_html_to[93626]: segfault at 0 ip 00007fd1b18303d3 sp 00007ffd6c899750 error 4 in libQt5Gui.so.5.15.11[7fd1b16e2000+4e3000] likely on CPU 0 (core 0, socket 0)


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 5.27
(available in About System)
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.11

ADDITIONAL INFORMATION
Comment 1 Colin J Thomson 2023-10-21 11:22:06 UTC
Seeing this a lot on this Fedora box since KDE Gear 23.08.2 I can't seem to find what triggers it at the moment.
I have attached a BT but not sure if it is of any use,

Operating System: Fedora Linux 38
KDE Gear 23.08.2
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.111.0
Qt Version: 5.15.10
Kernel Version: 6.5.8-200.fc38.x86_64 (64-bit)
Graphics Platform: Wayland
Comment 2 Colin J Thomson 2023-10-21 11:23:11 UTC
Created attachment 162472 [details]
BT  segfault in akonadi_html_to
Comment 3 Jonathan Riddell 2023-10-23 15:27:06 UTC
This is working fine for me from a fresh ISO install and upgrade.  Does the problem still exist when upgraded?  It's probably an ABI change which required a rebuild of something that has also hit Fedora.
Comment 4 Jaime Perea 2023-10-23 17:01:16 UTC
I suppose it works as a filter, thus I tried to pass a simple html output from kate of a python script, 

akonadi_html_to_text < dresn.html 

it works well, but if I try with a complex html file, let's say an html export by firefox of www.kde.org, the program segfaults and in dmesg gives the following

[10108.261404] traps: akonadi_html_to[23408] general protection fault ip:7f0476f2ce7a sp:7ffec527ae18 error:0 in libQt5Gui.so.5.15.11[7f0476ce2000+4e3000]

Do you know which dbg package do I have to install in order to provide something more useful?

Thanks a lot
Comment 5 Colin J Thomson 2023-10-23 20:22:24 UTC
FYI I can trigger this now after reading @Jaime Perea's comment.
I have One Inbox set to "prefer html" one of my accounts. If I redirect an html email from another account to this Inbox the crash happens once the mail has been sent and then when the mail arrives. As mentioned previously this never happened with 23.08.1
Sadly still no useful BT yet.
Comment 6 Jaime Perea 2023-10-24 08:55:06 UTC
Created attachment 162535 [details]
bt akonadi_html_to_text (a new one)

I hope I did it correctly, it's a very long time since I was using gdb and generated a core... I'm old
Comment 7 Colin J Thomson 2023-10-24 19:12:57 UTC
After having 6 core-dumps in the space of an hour this evening. I decided to downgrade just "kf5-akonadi-search" after reading the full 23.08.2 change  logs again, and saw there was a commit to that package to fix a crash.

I have ran more of the same tests as mentioned in comment5  to try and reproduce it and so far I cannot reproduce the crash anymore on this Fedora38 box.
Comment 8 Colin J Thomson 2023-11-07 19:26:06 UTC
*** Bug 476650 has been marked as a duplicate of this bug. ***
Comment 9 Colin J Thomson 2023-11-07 19:41:35 UTC
I have not this core-dump for over a week since rebuilding akonadi-search from the release branch.
Comment 10 auxsvr 2023-11-10 09:29:35 UTC
This also crashes on latest Tumbleweed all the time.
Comment 11 Jaime Perea 2023-12-06 20:11:29 UTC
It no longer appears, at least  for me, with new updates
Comment 12 auxsvr 2023-12-06 20:16:20 UTC
Same here.