Bug 2663 - sigsegv segmentation fault while filtering new emails (plugin/perl_plugin)
Summary: sigsegv segmentation fault while filtering new emails (plugin/perl_plugin)
Status: RESOLVED FIXED
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: Plugins (show other bugs)
Version: 3.8.0
Hardware: PC Linux
: P3 normal
Assignee: users
URL:
: 2455 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-05-17 08:31 UTC by Adam
Modified: 2012-08-18 18:48 UTC (History)
1 user (show)

See Also:


Attachments
tempfolder/processing/ messages on which claws-mail hangs (257.27 KB, application/x-compressed-tar)
2012-05-17 10:49 UTC, Adam
no flags Details
gdb backtrace of a crash in Claws-Mail with the Perl Plugin activated (29.06 KB, text/plain)
2012-05-17 11:21 UTC, Shlomi Fish
no flags Details

Description Adam 2012-05-17 08:31:01 UTC
Claws-mail crash while filtering after receive new mails from pop3 account. It might be just because of specific message because it works ok before today.
After turning off 'Allow filtering using plugins on receiving' in account edit window claws-mail works fine without crash again.

Information and backtrace from gdb:
[...]
procmsg.c:1927:Setting flags for message 42 in folder processing
    message/rfc822 (offset:0 length:7274 encoding: 6)
        multipart/mixed (offset:3562 length:3712 encoding: 6)
            multipart/alternative (offset:3681 length:3250 encoding: 6)
                text/plain (offset:3814 length:1274 encoding: 3)
                text/html (offset:5221 length:1666 encoding: 3)
            text/plain (offset:7086 length:155 encoding: 0)
procmsg.c:1927:Setting flags for message 43 in folder processing
    message/rfc822 (offset:0 length:192449 encoding: 6)
        multipart/alternative (offset:1663 length:190786 encoding: 0)
            text/plain (offset:1909 length:21696 encoding: 3)
            text/html (offset:23849 length:168551 encoding: 3)
procmsg.c:1927:Setting flags for message 44 in folder processing
    message/rfc822 (offset:0 length:3724 encoding: 6)
        text/plain (offset:2942 length:782 encoding: 0)
procmsg.c:1927:Setting flags for message 45 in folder processing
    message/rfc822 (offset:0 length:4594 encoding: 6)
        text/plain (offset:3824 length:770 encoding: 3)
procmsg.c:1927:Setting flags for message 46 in folder processing
    message/rfc822 (offset:0 length:5424 encoding: 6)
        text/plain (offset:5109 length:315 encoding: 0)
procmsg.c:1927:Setting flags for message 47 in folder processing


Program received signal SIGSEGV, Segmentation fault.
0x018f56dc in Perl_pp_entersub () from /usr/lib/libperl.so.5.10

(gdb) thread apply all bt

Thread 1 (Thread 0xb7fd5780 (LWP 2333)):
#0  0x018f56dc in Perl_pp_entersub () from /usr/lib/libperl.so.5.10
#1  0x018f38d8 in Perl_runops_standard () from /usr/lib/libperl.so.5.10
#2  0x01894ba2 in Perl_call_sv () from /usr/lib/libperl.so.5.10
#3  0x018970b4 in Perl_call_pv () from /usr/lib/libperl.so.5.10
#4  0x01897183 in Perl_call_argv () from /usr/lib/libperl.so.5.10
#5  0x0184c528 in ?? () from /usr/lib/claws-mail/plugins/perl_plugin.so
#6  0x0184d040 in ?? () from /usr/lib/claws-mail/plugins/perl_plugin.so
#7  0x08239e42 in hooks_marshal (hook=0x1552, data=0xbfffe808) at hooks.c:107
#8  0x00828256 in g_hook_list_marshal () from /lib/libglib-2.0.so.0
#9  0x08239f59 in hooks_invoke (
    hooklist_name=0x82e4890 "mail_filtering_hooklist", source=0xbffff068)
    at hooks.c:125
#10 0x081e71ab in procmsg_msginfo_filter (list=0x8c10998, ac=0x860b200, 
    filtered=0xbffff10c, unfiltered=0xbffff108, do_filter=1) at procmsg.c:2223
#11 procmsg_msglist_filter (list=0x8c10998, ac=0x860b200, filtered=0xbffff10c, 
    unfiltered=0xbffff108, do_filter=1) at procmsg.c:2299
#12 0x0812fa23 in inc_start (inc_dialog=0x8ea65f0) at inc.c:687
#13 0x08130abe in inc_all_account_mail (mainwin=0x8452700, autocheck=1, 
    notify=0) at inc.c:387
#14 0x08143033 in defer_check_all (data=0x1) at main.c:366
#15 0x00835d5c in ?? () from /lib/libglib-2.0.so.0
#16 0x008355e5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#17 0x008392d8 in ?? () from /lib/libglib-2.0.so.0
#18 0x00839817 in g_main_loop_run () from /lib/libglib-2.0.so.0
#19 0x002a23d9 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#20 0x08146acd in main (argc=1, argv=0xbffff4a4) at main.c:1653
Comment 1 Holger Berndt 2012-05-17 09:59:07 UTC
Is it reproducible? Is it with all messages, or just with specific ones? Can you provide a sample message that shows the problem?
Comment 2 Adam 2012-05-17 10:49:35 UTC
Created attachment 1112 [details]
tempfolder/processing/ messages on which claws-mail hangs

Yes it is reproducible. I loaded perl_plugin.so again and turned on 'Allow filtering using plugins on receiving'. I have copied back tempfolder/processing folder and claws-mail crash again.

I am attaching targzipped my tempfolder/processing folder.
Comment 3 Shlomi Fish 2012-05-17 11:21:35 UTC
Created attachment 1113 [details]
gdb backtrace of a crash in Claws-Mail with the Perl Plugin activated

This is a crash I got. I didn't have the debugging symbols for the claws-mail plugins, but I have them now. It is working fine after I disabled the Perl plugin. I'm on x86-64 Mageia Linux 2.
Comment 4 Holger Berndt 2012-08-18 18:43:40 UTC
Looks like a message with 133 entries in the References header smashed Perl's return stack. Fixed in version 0.9.19cvs4 of the plugin.

Thanks a lot for the test data.
Comment 5 Holger Berndt 2012-08-18 18:48:55 UTC
*** Bug 2455 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.