Bug 2112810

Summary: Pidgin crashes when trying to remove a channel: (pidgin) crashed in g_malloc0()
Product: [Fedora] Fedora Reporter: Jarek Prokop <jprokop>
Component: pidginAssignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 37CC: brian, jskarvad, stu
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pidgin-2.14.10-3.fc38 pidgin-2.14.10-3.fc37 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-12-12 23:31:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Coredump backtrace obtained by `bt f` none

Description Jarek Prokop 2022-08-01 08:10:52 UTC
Created attachment 1900478 [details]
Coredump backtrace obtained by `bt f`

Description of problem:
Pidgin crashes when I try to close a chat in the conversation window.

Version-Release number of selected component (if applicable):
pidgin-2.14.10-2.fc37.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Open Pidgin channels
2. Close any channel
3. observe the error/crash

Actual results:
Pidgin crashes

Expected results:
Pidgin lets me close any chat without crashes

Additional info:
backtrace from ABRT in journal:
```
pidgin killed by SIGTRAP
#1 [libglib-2.0.so.0] g_malloc0
#2 [libglib-2.0.so.0] g_hash_table_resize
#3 [libglib-2.0.so.0] g_hash_table_destroy
#4 [pidgin] gtk_imhtml_finalize
#5 [libgtk-x11-2.0.so.0] gtk_text_view_set_buffer
```

Not sure if relevant, but I am running it on Wayland using Sway WM NVR: sway-1.7-3.fc37.x86_64

Comment 1 Ben Cotton 2022-08-09 13:23:31 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 37 development cycle.
Changing version to 37.

Comment 2 Jarek Prokop 2022-12-10 12:15:28 UTC
This is a problem with using the default spellchk plugin, being connected to multiple channels and then disconnecting from one of them.

Upstream seems to have a fix, see:
Upstream ticket: https://issues.imfreedom.org/issue/PIDGIN-17702/
Upstream review: https://reviews.imfreedom.org/r/1951/diff/2/
Upstream commit: https://keep.imfreedom.org/pidgin/pidgin/rev/bf6049713e98

I have verified the fix for me using the upstream patch in copr: https://copr.fedorainfracloud.org/coprs/jackorp/pidgin_spellchk/ 

I made a PR with the fix: https://src.fedoraproject.org/rpms/pidgin/pull-request/4

Comment 3 Fedora Update System 2022-12-12 23:28:08 UTC
FEDORA-2022-5dcfa2a425 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2022-5dcfa2a425

Comment 4 Fedora Update System 2022-12-12 23:31:09 UTC
FEDORA-2022-5dcfa2a425 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 5 Fedora Update System 2022-12-13 00:36:36 UTC
FEDORA-2022-da20dfbcfb has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-da20dfbcfb

Comment 6 Fedora Update System 2022-12-14 02:09:06 UTC
FEDORA-2022-da20dfbcfb has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-da20dfbcfb`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-da20dfbcfb

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Michael Catanzaro 2022-12-19 17:52:57 UTC
*** Bug 2144929 has been marked as a duplicate of this bug. ***

Comment 8 Fedora Update System 2022-12-20 01:28:31 UTC
FEDORA-2022-da20dfbcfb has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.