Bug 1534 - Segmentation fault when doing some draft saving and then throwing away
Summary: Segmentation fault when doing some draft saving and then throwing away
Status: RESOLVED FIXED
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: UI/Compose Window (show other bugs)
Version: other
Hardware: PC Linux
: P3 normal
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2008-02-28 09:37 UTC by Christian Faulhammer
Modified: 2008-02-28 18:13 UTC (History)
0 users

See Also:


Attachments

Description Christian Faulhammer 2008-02-28 09:37:21 UTC
Recipe:

* Fill in recipient
* Fill subject
* Write some text
* Press Ctrl-w, choose "Save draft"
* Press Ctrl-w again, choose "throw away" (or whatever it is called in English)
* See claws crash (in GDB only the mail window disappears, no interaction possible with main window)

Back trace:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7eaa6d0 (LWP 26892)]
0x4c438af0 in pthread_mutex_trylock () from /lib/libpthread.so.0
(gdb)
(gdb) bt
#0  0x4c438af0 in pthread_mutex_trylock () from /lib/libpthread.so.0
#1  0x4909723d in ?? () from /usr/lib/libgthread-2.0.so.0
#2  0xffe6e6e6 in ?? ()
#3  0x4c43842e in pthread_mutex_lock () from /lib/libpthread.so.0
#4  0x080b2cef in compose_close ()
#5  0x48fc08e6 in ?? () from /usr/lib/libglib-2.0.so.0
#6  0x08303048 in ?? ()
#7  0x4c43842e in pthread_mutex_lock () from /lib/libpthread.so.0
#8  0x48fc011f in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#9  0x48fc357f in ?? () from /usr/lib/libglib-2.0.so.0
#10 0x0833ba70 in ?? ()
#11 0x00000000 in ?? ()
Comment 1 Colin Leroy 2008-02-28 09:46:15 UTC
this is a race, isn't it? you have to press ctrl-w quickly the second time?
Comment 2 Christian Faulhammer 2008-02-28 09:51:21 UTC
(In reply to comment #1)
> this is a race, isn't it? you have to press ctrl-w quickly the second time?

 The mail windows needs to be still open...oh, I should tell this is an IMAP server so it takes some time to save.  SSL enable.  Other information?
Comment 3 users 2008-02-28 18:01:01 UTC
Changes related to this bug have been committed.
Please check latest CVS and update the bug accordingly.
You can also get the patch from:
http://www.colino.net/claws-mail/

2008-02-28 [colin]	3.3.1cvs5

	* src/compose.c
		Fix bug 1534, 'Segmentation fault when doing 
		some draft saving and then throwing away'
	* src/imap.c
		Fix bug 1533, 'Claws is unable to mark messages 
		as "read" in IMAP shared folders'
	* src/etpan/imap-thread.c
		Fix bug 1515, 'large messages crash claws when 
		syncing for offline mode'. This is rather a
		workaround, and mails > 64MB will still be
		problematic if there's less than 64MB available
		on the dataroot volume.
	* src/messageview.c
		MAEMO: Add information when fetching big messages

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