Ticket #11 (defect)
Opened 2 years ago
Last modified 2 years ago
some crashes when trying to use tny-send-queue
Status: closed (fixed)
| Reported by: | anonymous | Assigned to: | pvanhoof |
|---|---|---|---|
| Priority: | major | Milestone: | Modest 1.0 |
| Component: | libtinymail-camel | Version: | 1.0 |
| Keywords: | Cc: | ||
I am trying to use my tny-camel-send-queue subclass (which only overrides the get_sentbox and get_outbox methods), but I am seeing some crashes. Here are three stack traces; the one in the middle during 'online' state; when in online state, we seem to get that stacktrace every time; but in offline mode there are different possibilities (the other two traces, and prob. more).
Any hints?
** (modest:24756): WARNING **: modest_tny_send_queue_add
** (modest:24756): WARNING **: modest_tny_send_queue_get_outbox
[New Thread -1230865520 (LWP 24764)]
[New Thread -1275528304 (LWP 24765)]
[New Thread -1283921008 (LWP 24766)]
[New Thread -1292313712 (LWP 24767)]
[New Thread -1300706416 (LWP 24768)]
[Thread -1292313712 (LWP 24767) exited]
[Thread -1283921008 (LWP 24766) exited]
[Thread -1275528304 (LWP 24765) exited]
[Thread -1230865520 (LWP 24764) exited]
[Thread -1300706416 (LWP 24768) exited]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1230739760 (LWP 24756)]
0xb701ec03 in strlen () from /lib/tls/i686/cmov/libc.so.6
(gdb) bt
#0 0xb701ec03 in strlen () from /lib/tls/i686/cmov/libc.so.6
#1 0xb6ff1092 in vfprintf () from /lib/tls/i686/cmov/libc.so.6
#2 0xb700f81c in vasprintf () from /lib/tls/i686/cmov/libc.so.6
#3 0xb6ecee87 in g_vasprintf () from /usr/lib/libglib-2.0.so.0
#4 0xb6ec0e66 in g_strdup_vprintf () from /usr/lib/libglib-2.0.so.0
#5 0xb6eae35c in g_logv () from /usr/lib/libglib-2.0.so.0
#6 0xb6eae5a9 in g_log () from /usr/lib/libglib-2.0.so.0
#7 0xb7bcc2bb in camel_object_cast (o=0x80e1b50, ctype=0x8083808)
at camel-object.c:984
#8 0xb61d52e3 in camel_local_summary_encode_x_evolution (cls=0x80e1b50,
info=0x82b14c8) at camel-local-summary.c:174
#9 0xb61d5906 in local_summary_add (cls=0x80e1b50, msg=0x82a9778, info=0x0,
ci=0x827a548, ex=0xbf91d614) at camel-local-summary.c:463
#10 0xb61e07c0 in maildir_summary_add (cls=0x80e1b50, msg=0x82a9778, info=0x0,
changes=0x827a548, ex=0xbf91d614) at camel-maildir-summary.c:256
#11 0xb61d5449 in camel_local_summary_add (cls=0x80e1b50, msg=0x82a9778,
info=0x0, ci=0x827a548, ex=0xbf91d614) at camel-local-summary.c:303
#12 0xb61de648 in maildir_append_message (folder=0x80a2b80, message=0x82a9778,
info=0x0, appended_uid=0x0, ex=0xbf91d614) at camel-maildir-folder.c:172
#13 0xb7c16a62 in camel_folder_append_message (folder=0x80a2b80,
message=0x82a9778, info=0x0, appended_uid=0x0, ex=0xbf91d614)
at camel-folder.c:652
#14 0xb7c5c3de in tny_camel_folder_add_msg_default (self=0x8189320,
msg=0x82a4070, err=0x0) at tny-camel-folder.c:375
#15 0xb7c5c1cc in tny_camel_folder_add_msg (self=0x8189320, msg=0x82a4070,
err=0x0) at tny-camel-folder.c:346
#16 0xb799f400 in tny_folder_add_msg (self=0x8189320, msg=0x82a4070, err=0x0)
at tny-folder.c:272
#17 0xb7c68385 in tny_camel_send_queue_add_default (self=0x82b1488,
msg=0x82a4070) at tny-camel-send-queue.c:284
#18 0xb7c6823a in tny_camel_send_queue_add (self=0x82b1488, msg=0x82a4070)
at tny-camel-send-queue.c:261
#19 0xb79a2a2c in tny_send_queue_add (self=0x82b1488, msg=0x82a4070)
at tny-send-queue.c:97
#20 0x08057979 in modest_mail_operation_send_new_mail (self=0x8299c60,
transport_account=0x8084108,
from=0x82c57b0 "Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>",
to=0x82a6720 "djcb@djcbsoftware.nl", cc=0x814a278 "", bcc=0x82a29b8 "",
subject=0x82a2b80 "foo1123", body=0x82c5798 "\t23lsdkjf;dlkj",
attachments_list=0x0) at modest-mail-operation.c:284
#21 0x0805da24 in _modest_ui_actions_on_send (widget=0x828a878,
edit_window=0x829c808) at modest-ui.c:1125
#22 0xb6f249c9 in g_cclosure_marshal_VOID__VOID ()
from /usr/lib/libgobject-2.0.so.0
#23 0xb6f1762b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#24 0xb6f280f3 in ?? () from /usr/lib/libgobject-2.0.so.0
#25 0x08285440 in ?? ()
#26 0x00000000 in ?? ()
(online)
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1230727472 (LWP 24788)]
0xb7bcf289 in camel_object_cast (o=0x80e1b50, ctype=0x8083808)
at camel-object.c:984
984 g_warning("Object %p (class '%s') doesn't have '%s' in its hierarchy", o, o->klass->name, ctype->name);
(gdb) Quit
(gdb)
(gdb) bt
#0 0xb7bcf289 in camel_object_cast (o=0x80e1b50, ctype=0x8083808)
at camel-object.c:984
#1 0xb7c111c7 in camel_folder_summary_next_uid_string (s=0x80e1b50)
at camel-folder-summary.c:659
#2 0xb61d9036 in message_info_new_from_header (s=0x80e1b50, h=0x82ad3f8)
at camel-local-summary.c:649
#3 0xb61e382a in message_info_new_from_header (s=0x80e1b50, h=0x82ad3f8)
at camel-maildir-summary.c:274
#4 0xb7c140c1 in message_info_new_from_message (s=0x80e1b50, msg=0x82b4490)
at camel-folder-summary.c:1907
#5 0xb7c12588 in camel_folder_summary_info_new_from_message (s=0x80e1b50,
msg=0x82b4490) at camel-folder-summary.c:1315
#6 0xb7c12232 in camel_folder_summary_add_from_message (s=0x80e1b50,
msg=0x82b4490) at camel-folder-summary.c:1179
#7 0xb61d885e in local_summary_add (cls=0x80e1b50, msg=0x82b4490, info=0x0,
ci=0x827a508, ex=0xbfa630d4) at camel-local-summary.c:429
#8 0xb61e37c0 in maildir_summary_add (cls=0x80e1b50, msg=0x82b4490, info=0x0,
changes=0x827a508, ex=0xbfa630d4) at camel-maildir-summary.c:256
#9 0xb61d8449 in camel_local_summary_add (cls=0x80e1b50, msg=0x82b4490,
info=0x0, ci=0x827a508, ex=0xbfa630d4) at camel-local-summary.c:303
#10 0xb61e1648 in maildir_append_message (folder=0x80a2b80, message=0x82b4490,
info=0x0, appended_uid=0x0, ex=0xbfa630d4) at camel-maildir-folder.c:172
#11 0xb7c19a62 in camel_folder_append_message (folder=0x80a2b80,
message=0x82b4490, info=0x0, appended_uid=0x0, ex=0xbfa630d4)
at camel-folder.c:652
#12 0xb7c5f3de in tny_camel_folder_add_msg_default (self=0x8189520,
msg=0x82af880, err=0x0) at tny-camel-folder.c:375
#13 0xb7c5f1cc in tny_camel_folder_add_msg (self=0x8189520, msg=0x82af880,
err=0x0) at tny-camel-folder.c:346
#14 0xb79a2400 in tny_folder_add_msg (self=0x8189520, msg=0x82af880, err=0x0)
at tny-folder.c:272
#15 0xb7c6b385 in tny_camel_send_queue_add_default (self=0x828bf58,
msg=0x82af880) at tny-camel-send-queue.c:284
#16 0xb7c6b23a in tny_camel_send_queue_add (self=0x828bf58, msg=0x82af880)
at tny-camel-send-queue.c:261
#17 0xb79a5a2c in tny_send_queue_add (self=0x828bf58, msg=0x82af880)
at tny-send-queue.c:97
#18 0x08057979 in modest_mail_operation_send_new_mail (self=0x81a8200,
transport_account=0x8084108,
from=0x82c75e8 "Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>",
to=0x82c75c0 "djcb@djcbsoftware.nl", cc=0x814a290 "", bcc=0x82a56f0 "",
subject=0x82a5e50 "abc", body=0x82a9af8 "hello world",
attachments_list=0x0) at modest-mail-operation.c:284
#19 0x0805da24 in _modest_ui_actions_on_send (widget=0x828a620,
edit_window=0x829f820) at modest-ui.c:1125
#20 0xb6f279c9 in g_cclosure_marshal_VOID__VOID ()
from /usr/lib/libgobject-2.0.so.0
#21 0xb6f1a62b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#22 0xb6f2b0f3 in ?? () from /usr/lib/libgobject-2.0.so.0
#23 0x08285238 in ?? ()
#24 0x00000000 in ?? ()
(modest:24801): camel-lite-CRITICAL **: camel_object_ref: assertion `CAMEL_IS_OBJECT(o)' failed
(modest:24801): camel-lite-CRITICAL **: camel_object_ref: assertion `CAMEL_IS_OBJECT(o)' failed
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1230235952 (LWP 24801)]
0x0827dd19 in ?? ()
(gdb) bt
#0 0x0827dd19 in ?? ()
#1 0x00000063 in ?? ()
#2 0x2f656d6f in ?? ()
#3 0xb7c2a8df in camel_index_delete_name (idx=0x826bec0,
name=0x8385108 "1170772659.24801_3.mindcrime") at camel-index.c:213
#4 0xb7c8a640 in camel_folder_summary_info_new_from_message (s=0x80e1b50,
msg=0x83626e0) at camel-folder-summary.c:1333
#5 0xb7c8a232 in camel_folder_summary_add_from_message (s=0x80e1b50,
msg=0x83626e0) at camel-folder-summary.c:1179
#6 0xb625085e in local_summary_add (cls=0x80e1b50, msg=0x83626e0, info=0x0,
ci=0x827a7b8, ex=0xbfd69a64) at camel-local-summary.c:429
#7 0xb625b7c0 in maildir_summary_add (cls=0x80e1b50, msg=0x83626e0, info=0x0,
changes=0x827a7b8, ex=0xbfd69a64) at camel-maildir-summary.c:256
#8 0xb6250449 in camel_local_summary_add (cls=0x80e1b50, msg=0x83626e0,
info=0x0, ci=0x827a7b8, ex=0xbfd69a64) at camel-local-summary.c:303
#9 0xb6259648 in maildir_append_message (folder=0x80a2b80, message=0x83626e0,
info=0x0, appended_uid=0x0, ex=0xbfd69a64) at camel-maildir-folder.c:172
#10 0xb7c91a62 in camel_folder_append_message (folder=0x80a2b80,
message=0x83626e0, info=0x0, appended_uid=0x0, ex=0xbfd69a64)
at camel-folder.c:652
#11 0xb7cd73de in tny_camel_folder_add_msg_default (self=0x8188f80,
msg=0x8357288, err=0x0) at tny-camel-folder.c:375
#12 0xb7cd71cc in tny_camel_folder_add_msg (self=0x8188f80, msg=0x8357288,
err=0x0) at tny-camel-folder.c:346
#13 0xb7a1a400 in tny_folder_add_msg (self=0x8188f80, msg=0x8357288, err=0x0)
at tny-folder.c:272
#14 0xb7ce3385 in tny_camel_send_queue_add_default (self=0x829de50,
msg=0x8357288) at tny-camel-send-queue.c:284
#15 0xb7ce323a in tny_camel_send_queue_add (self=0x829de50, msg=0x8357288)
at tny-camel-send-queue.c:261
#16 0xb7a1da2c in tny_send_queue_add (self=0x829de50, msg=0x8357288)
at tny-send-queue.c:97
#17 0x08057979 in modest_mail_operation_send_new_mail (self=0x8361ac0,
transport_account=0x8084108,
from=0x8376d68 "Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>",
to=0x8363f50 "djcb@djcbsoftware.nl", cc=0x8146d90 "", bcc=0x8353c90 "",
subject=0x8353e58 "123456", body=0x83463c0 "hello world",
attachments_list=0x0) at modest-mail-operation.c:284
#18 0x0805da24 in _modest_ui_actions_on_send (widget=0x8287348,
edit_window=0x834d038) at modest-ui.c:1125
#19 0xb6f9f9c9 in g_cclosure_marshal_VOID__VOID ()
from /usr/lib/libgobject-2.0.so.0
#20 0xb6f9262b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#21 0xb6fa30f3 in ?? () from /usr/lib/libgobject-2.0.so.0
#22 0x08345778 in ?? ()
#23 0x00000000 in ?? ()
Attachments
Change History
02/09/07 12:31:24: Modified by anonymous
- version set to 1.0.
- milestone set to Modest 1.0.
02/09/07 22:34:47: Modified by pvanhoof
- status changed from new to closed.
- resolution set to fixed.

All these should be fixed if you use the TNY_CAMEL_FOLDER_GET_PRIVATE(tfol)->dont_fkill = TRUE magic flag. This is a flag that stops the killing of the CamelFolder? instance. Don't *just* turn it on, it would make tinymail consume much more memory (Evolution amounts).
For the maildir folders of queues, though, I don't see a big problem with that.