Bug 676352

Summary: [abrt] claws-mail-3.7.8-2.fc14: activate_learn_button / g_type_check_instance_cast: Process /usr/bin/claws-mail was killed by signal 11 (SIGSEGV)
Product: [Fedora] Fedora Reporter: Lars Schotte <gustik>
Component: claws-mailAssignee: Andreas Bierfert <andreas.bierfert>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 14CC: andreas.bierfert, bugs.michael, tomspur
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:9a242ad8fbea3d4ab598c7278053e75b7af65881
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-11 10:29:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
File: backtrace none

Description Lars Schotte 2011-02-09 15:47:05 UTC
abrt version: 1.1.14
architecture: i686
Attached file: backtrace
cmdline: claws-mail
component: claws-mail
crash_function: g_type_check_instance_cast
executable: /usr/bin/claws-mail
kernel: 2.6.35.10-74.fc14.i686
package: claws-mail-3.7.8-2.fc14
rating: 4
reason: Process /usr/bin/claws-mail was killed by signal 11 (SIGSEGV)
release: Fedora release 14 (Laughlin)
time: 1295986991
uid: 500

How to reproduce
-----
1. i dont know any more
2.
3.

Comment 1 Lars Schotte 2011-02-09 15:47:10 UTC
Created attachment 477844 [details]
File: backtrace

Comment 2 Michael Schwendt 2011-02-09 17:38:37 UTC
> How to reproduce
> -----
> 1. i dont know any more

So, it happened only once and never again? Or you didn't even try? And the spam-report plugin works most of the time? Please give a little bit more background.

The backtrace ends somewhere related to using the "Spam" button on the toolbar:

| #1  0x082148bb in activate_learn_button (toolbar=0x92ddc10, type=LEARN_HAM,
| style=<value optimized out>) at toolbar.c:933
| No locals.
| #2  0x082131b5 in toolbar_learn_cb (widget=0xa22c2d8 [GtkMenuToolButton],
| data=0xa318770) at toolbar.c:1233
|        toolbar_item = 0xa318770
|        mainwin = <value optimized out>
|        msgview = <value optimized out>

Comment 3 Michael Schwendt 2011-02-13 11:46:50 UTC
src/toolbar.c:

    930                 gtk_widget_show(toolbar->learn_spam_icon);
    931         } else {
    932                 gtk_tool_button_set_icon_widget(
->  933                         GTK_TOOL_BUTTON(toolbar->learn_spam_btn),
    934                         toolbar->learn_ham_icon);
    935                 gtk_tool_button_set_label(
    936                         GTK_TOOL_BUTTON(toolbar->learn_spam_btn),
    937                         _("Ham"));
    938 #ifndef GENERIC_UMPC

This is where it toggles the bogofilter "Learn as Ham/Spam" button between "Ham" and "Spam" and vice versa depending on the message that is selected.

Line 933 is where it crashed inside glib2 (gtype.c), because the button pointer passed to it wasn't anything sane it could work with. Most likely it pointed to corrupted data structures which glib2 could not handle gracefully.