Bug 748384 - [abrt] claws-mail-3.7.9-5.fc14: mimeview_start_drag: Process /usr/bin/claws-mail was killed by signal 11 (SIGSEGV)
Summary: [abrt] claws-mail-3.7.9-5.fc14: mimeview_start_drag: Process /usr/bin/claws-m...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: claws-mail
Version: 14
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Andreas Bierfert
QA Contact: Fedora Extras Quality Assurance
URL: http://www.thewildbeast.co.uk/claws-m...
Whiteboard: abrt_hash:fa3fdbee2cc7e30c9e5fa1186db...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-24 10:29 UTC by Pierre Ossman
Modified: 2011-12-26 19:17 UTC (History)
3 users (show)

Fixed In Version: claws-mail-plugins-3.7.10-12.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-26 19:17:36 UTC
Type: ---


Attachments (Terms of Use)
File: backtrace (26.72 KB, text/plain)
2011-10-24 10:29 UTC, Pierre Ossman
no flags Details

Description Pierre Ossman 2011-10-24 10:29:40 UTC
abrt version: 1.1.18
architecture: x86_64
Attached file: backtrace, 27359 bytes
cmdline: claws-mail
component: claws-mail
Attached file: coredump, 156774400 bytes
crash_function: mimeview_start_drag
executable: /usr/bin/claws-mail
kernel: 2.6.35.14-96.fc14.x86_64
package: claws-mail-3.7.9-5.fc14
rating: 4
reason: Process /usr/bin/claws-mail was killed by signal 11 (SIGSEGV)
release: Fedora release 14 (Laughlin)
time: 1319451729
uid: 210

How to reproduce
-----
1. Select a mail
2. Expand the mail structure arrow (on the right)
3. Delete the mail
4. Collapse the mail structure again

Doesn't seem to reproduce just by following those steps though.

Comment 1 Pierre Ossman 2011-10-24 10:29:44 UTC
Created attachment 529776 [details]
File: backtrace

Comment 2 Michael Schwendt 2011-10-24 11:17:17 UTC
> Doesn't seem to reproduce just by following those steps though.

Perhaps you could try harder to come up with a test-case?


> 2. Expand the mail structure arrow (on the right)
> 3. Delete the mail

So far so good. I don't understand the next step:

> 4. Collapse the mail structure again

If you've deleted a message in step 3, in the next step you would work on a different message.


>>> crash_function: mimeview_start_drag

> #0  mimeview_start_drag (widget=0x1a12700 [GtkSCTree], button=1,
> event=0x51f6910, mimeview=0x1c0fde0) at mimeview.c:1290
>        context = <value optimized out>
>        partinfo = 0x0

This looks like you used drag'n'drop on any part in the expanded MIME view list.

|  1289          partinfo = mimeview_get_selected_part(mimeview);
|  1290          if (partinfo->disposition == DISPOSITIONTYPE_INLINE) return;

The partinfo ptr for a selected part of the message was NULL here. One would need to find out when that could happen and if a damaged message could cause it.

Comment 3 Pierre Ossman 2011-10-24 11:24:57 UTC
(In reply to comment #2)
> > Doesn't seem to reproduce just by following those steps though.
> 
> Perhaps you could try harder to come up with a test-case?
> 

I'll give it another go, but claws is generally very stable so I'm not sure what I did to set it up for this crash.

> 
> > 2. Expand the mail structure arrow (on the right)
> > 3. Delete the mail
> 
> So far so good. I don't understand the next step:
> 
> > 4. Collapse the mail structure again
> 
> If you've deleted a message in step 3, in the next step you would work on a
> different message.
> 

It works on a "blank" message at this point.

> >>> crash_function: mimeview_start_drag
> 
> > #0  mimeview_start_drag (widget=0x1a12700 [GtkSCTree], button=1,
> > event=0x51f6910, mimeview=0x1c0fde0) at mimeview.c:1290
> >        context = <value optimized out>
> >        partinfo = 0x0
> 
> This looks like you used drag'n'drop on any part in the expanded MIME view
> list.
> 
> |  1289          partinfo = mimeview_get_selected_part(mimeview);
> |  1290          if (partinfo->disposition == DISPOSITIONTYPE_INLINE) return;
> 
> The partinfo ptr for a selected part of the message was NULL here. One would
> need to find out when that could happen and if a damaged message could cause
> it.

Hmm.. I opened the MIME view to do DnD, but that was a few messages before the crash. Could be related though.

Comment 4 Pierre Ossman 2011-10-24 11:38:13 UTC
Ah! Found a way!

1. Select a mail
2. Open MIME view
3. Drag something out of it (to nautilus in my case)
4. Delete the mail
5. Try to drag something out of the blank MIME view

Comment 5 Michael Schwendt 2011-10-24 13:26:02 UTC
Thank you very much! That's an odd scenario, but reproducible with Claws Mail 3.7.10, too:

http://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=2529

Comment 6 Michael Schwendt 2011-11-01 12:30:30 UTC
Upstream's fix is a simple NULL ptr check:
http://www.colino.net/claws-mail/getpatchset.php?ver=3.7.10cvs47

Comment 7 Michael Schwendt 2011-11-30 21:45:13 UTC
Fix committed to Rawhide git.

Comment 8 Fedora Update System 2011-12-12 22:59:28 UTC
claws-mail-3.7.10-7.fc16,claws-mail-plugins-3.7.10-10.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/claws-mail-3.7.10-7.fc16,claws-mail-plugins-3.7.10-10.fc16

Comment 9 Fedora Update System 2011-12-13 21:53:49 UTC
Package claws-mail-3.7.10-7.fc16, claws-mail-plugins-3.7.10-10.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing claws-mail-3.7.10-7.fc16 claws-mail-plugins-3.7.10-10.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-17063/claws-mail-3.7.10-7.fc16,claws-mail-plugins-3.7.10-10.fc16
then log in and leave karma (feedback).

Comment 10 Fedora Update System 2011-12-16 20:02:28 UTC
Package claws-mail-plugins-3.7.10-12.fc16, claws-mail-3.7.10-7.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing claws-mail-plugins-3.7.10-12.fc16 claws-mail-3.7.10-7.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-17063/claws-mail-3.7.10-7.fc16,claws-mail-plugins-3.7.10-12.fc16
then log in and leave karma (feedback).

Comment 11 Fedora Update System 2011-12-26 19:17:36 UTC
claws-mail-plugins-3.7.10-12.fc16, claws-mail-3.7.10-7.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.


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