Bug 918629 - [abrt] claws-mail-3.9.0-1.fc18: ___fprintf_chk: Process /usr/bin/claws-mail was killed by signal 11 (SIGSEGV)
Summary: [abrt] claws-mail-3.9.0-1.fc18: ___fprintf_chk: Process /usr/bin/claws-mail w...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: claws-mail
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Andreas Bierfert
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:78b834194009731376db979d2e8...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-06 15:56 UTC by Randy Barlow
Modified: 2013-07-13 16:22 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-07-13 16:22:05 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (43.47 KB, text/plain)
2013-03-06 15:56 UTC, Randy Barlow
no flags Details
File: build_ids (9.13 KB, text/plain)
2013-03-06 15:56 UTC, Randy Barlow
no flags Details
File: cgroup (130 bytes, text/plain)
2013-03-06 15:56 UTC, Randy Barlow
no flags Details
File: core_backtrace (4.25 KB, text/plain)
2013-03-06 15:56 UTC, Randy Barlow
no flags Details
File: dso_list (22.76 KB, text/plain)
2013-03-06 15:56 UTC, Randy Barlow
no flags Details
File: environ (1.94 KB, text/plain)
2013-03-06 15:56 UTC, Randy Barlow
no flags Details
File: limits (1.29 KB, text/plain)
2013-03-06 15:56 UTC, Randy Barlow
no flags Details
File: maps (105.92 KB, text/plain)
2013-03-06 15:56 UTC, Randy Barlow
no flags Details
File: open_fds (1.98 KB, text/plain)
2013-03-06 15:56 UTC, Randy Barlow
no flags Details
File: proc_pid_status (950 bytes, text/plain)
2013-03-06 15:56 UTC, Randy Barlow
no flags Details
File: var_log_messages (2.49 KB, text/plain)
2013-03-06 15:56 UTC, Randy Barlow
no flags Details

Description Randy Barlow 2013-03-06 15:56:31 UTC
Description of problem:
I moved an e-mail from one IMAP folder to another on the same server.

Version-Release number of selected component:
claws-mail-3.9.0-1.fc18

Additional info:
backtrace_rating: 4
cmdline:        claws-mail
crash_function: ___fprintf_chk
executable:     /usr/bin/claws-mail
kernel:         3.8.1-201.fc18.x86_64
uid:            1000

Truncated backtrace:
Thread no. 1 (10 frames)
 #0 ___fprintf_chk at fprintf_chk.c:31
 #1 fprintf at /usr/include/bits/stdio2.h:97
 #2 newmail_hook at newmail.c:60
 #3 hooks_marshal at hooks.c:108
 #5 g_hook_list_marshal at ghook.c:676
 #6 hooks_invoke at hooks.c:126
 #7 do_copy_msgs at folder.c:3622
 #8 folder_item_move_msgs at folder.c:3675
 #9 procmsg_move_messages at procmsg.c:346
 #10 summary_execute_move at summaryview.c:5115

Potential duplicate: bug 710107

Comment 1 Randy Barlow 2013-03-06 15:56:34 UTC
Created attachment 706082 [details]
File: backtrace

Comment 2 Randy Barlow 2013-03-06 15:56:36 UTC
Created attachment 706083 [details]
File: build_ids

Comment 3 Randy Barlow 2013-03-06 15:56:37 UTC
Created attachment 706084 [details]
File: cgroup

Comment 4 Randy Barlow 2013-03-06 15:56:39 UTC
Created attachment 706085 [details]
File: core_backtrace

Comment 5 Randy Barlow 2013-03-06 15:56:41 UTC
Created attachment 706086 [details]
File: dso_list

Comment 6 Randy Barlow 2013-03-06 15:56:43 UTC
Created attachment 706087 [details]
File: environ

Comment 7 Randy Barlow 2013-03-06 15:56:45 UTC
Created attachment 706088 [details]
File: limits

Comment 8 Randy Barlow 2013-03-06 15:56:46 UTC
Created attachment 706089 [details]
File: maps

Comment 9 Randy Barlow 2013-03-06 15:56:48 UTC
Created attachment 706090 [details]
File: open_fds

Comment 10 Randy Barlow 2013-03-06 15:56:50 UTC
Created attachment 706091 [details]
File: proc_pid_status

Comment 11 Randy Barlow 2013-03-06 15:56:51 UTC
Created attachment 706092 [details]
File: var_log_messages

Comment 12 Michael Schwendt 2013-03-06 16:41:33 UTC
It crashed in the NewMail plugin due to a NULL file ptr given to fprintf:

#0  ___fprintf_chk (fp=0x0, ...

And indeed, it's a duplicate of bug 710107 but there are no steps on how to reproduce it yet.

If you start Claws Mail in a terminal, do you get any warning/error/messages from the NewMail plugin?

Comment 13 Randy Barlow 2013-03-06 17:00:38 UTC
When I try to enable the NewMail plugin, I do get a popup box that says:

The following error occurred while loading newmail.so :
No such file or directory

Also, when I start Claws, I get a different popup that says:

The following plugin failed to load. Check the Plugins configuration for more information:
NewMail

Terminal output looks like this:

$ claws-mail 
Newmail plugin unloaded

** (claws-mail:8454): WARNING **: plugin loading error: No such file or directory


** (claws-mail:8454): WARNING **: Trying to register gtype 'GtkCMUnit' as enum when in fact it is of type 'gint'
sys:1: Warning: g_variant_unref: assertion `value->ref_count > 0' failed

Comment 14 Michael Schwendt 2013-03-06 17:25:40 UTC
Puzzling. According to the backtrace it _was_ loaded,

   0x00007fee27338d40  0x00007fee27339248  Yes         /usr/lib64/claws-mail/plugins/newmail.so

and it had registered itself via the mail_postfiltering_hooklist, too:

   #2  newmail_hook (source=0x1b7dd80, data=<optimized out>) at newmail.c:60

The plugin file is located in /usr/lib64/claws-mail/plugins, which is the default location the "Plugins" dialog opens:

   $ rpm -ql claws-mail-plugins-newmail|grep lib
   /usr/lib64/claws-mail/plugins/newmail.so


> $ claws-mail 
> Newmail plugin unloaded

That's odd, too. If enabled, it would say "Newmail plugin loaded" for the first time when starting Claws Mail, and it would print the log file name, too.

Could you attach the output of "grep -i newmail ~/.claws-mail/clawsrc"?

Comment 15 Michael Schwendt 2013-03-06 17:37:08 UTC
> ** (claws-mail:8454): WARNING **: plugin loading error: No such file or directory

That one is interesting, too. It has run into a problem in ~/.claws-mail/clawsrc in one of the [Plugins_Foo] sections (with "Foo" out of "Common", "GTK", "GTK2" and so on.

Comment 16 Randy Barlow 2013-03-06 19:13:34 UTC
Created attachment 706213 [details]
clawsrc

I re-enabled the NewMail plugin, and then looked at the clawrc file, and I noticed that it's in the Plugins_Common section.

Comment 17 Michael Schwendt 2013-03-06 19:35:04 UTC
One thing I've tried after lunch:

$ unset HOME
$ claws-mail 
Newmail plugin unloaded

** (claws-mail:7491): WARNING **: plugin loading error: No such file or directory


Additionally, the "Plugins" dialog then says:
| 
| Error: No such file or directory
| Plugin is not functional.

Trying to "Load" it nevertheless, I get an error dialog:

|The following error occurred while loading newmail.so :
| 
| No such file or directory


Why did I try "unset HOME"? Because newmail.c relies on getenv("HOME"), and during plugin init it would unload the plugin on error. Assumably, it failed to getenv HOME and subsequently generated a bad file name for the log file.
    (void)snprintf (name, 256, "%s/Mail/NewLog", getenv ("HOME"));

That doesn't explain the crash yet. Unless it could happen that it failed to unregister its hook method (although it _tries_ to do that during plugin unloading). Hmmm...

Comment 18 Randy Barlow 2013-03-06 19:46:45 UTC
I'm happy enough to just remove the newmail plugin from my system for now. Hopefully that will resolve the issue. Thanks for such prompt service, you definitely stand out from the crowd!

Comment 19 casper 2013-03-17 12:19:15 UTC
корявый модуль

backtrace_rating: 4
Package: claws-mail-3.9.0-1.fc18
Architecture: i686
OS Release: Fedora release 18 (Spherical Cow)

Comment 20 Michael Schwendt 2013-04-06 15:16:05 UTC
For the fprintf NULL ptr crash, upstream has committed an obvious safety-check only: http://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=2885#c9

Comment 21 Michael Schwendt 2013-07-13 16:22:05 UTC
The remaining part is in bug 896696.


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