Re: gmime type warnings on startup, and more




On 12/03/04 08:27:02, Peter Bloomfield wrote:
On 12/03/2004 04:12:23 AM, Kacper Wysocki wrote:
Hi guys,

having built balsa from source, I keep getting loads of these warnings on startup:

(balsa:20916): gmime-WARNING **: Invalid or incomplete type: : defaulting to application/octet-stream

[...]
The warning is unconditionally coded into g_mime_content_type_new(),
so you cannot suppress it without patching GMime and reinstalling from source. In your case, it seems to result from calling g_mime_content_type_new(type, subtype) with type either NULL or empty, and subtype NULL. I'm guessing that each offending message has a malformed Content-type header--perhaps you could hand-edit them.

I would if I knew which ones were affected...

Balsa calls that function only with fixed, non-NULL and non-empty strings, so the warnings are not raised directly by the way Balsa uses GMime. Balsa does use g_mime_content_type_new_from_string(), which presumably uses g_mime_content_type_new() internally. Perhaps Balsa could check the string before passing it to GMime--could you run Balsa with the --g-fatal-warnings command-line option to trigger a stack trace? We might be able to figure out how to handle it.

(abbreviated) stack trace attached. It's ineed g_mime_content_type_new_from_string() that calls g_mime_content_type_new(), eliciting the warning.

If balsa could either offer to rewrite messages missing the content- type, or silently ignore them, that would probably be the better solution: sadly missing content-type in messages is a very common occurance.

I also often get the following while retreiving messages (possibly in the filtering stage): ** (balsa:28801): CRITICAL **: file mailbox.c: line 1692 (libbalsa_mailbox_messages_move): assertion `msgnos->len > 0' failed

however, I couldn't get a trace: enabling --g-fatal-warnings and running under gdb, the mail checker thread would just block forever, while balsa kept on going.. maybe a non-threaded build would help with that.

-Kacper
[just zeroes above here]
#39 0xa735a504 in g_free () from /usr/lib/libglib-2.0.so.0
#40 0xa735cb94 in g_log () from /usr/lib/libglib-2.0.so.0
#41 0xa7bbfbb5 in g_mime_content_type_new () from /usr/lib/libgmime-2.0.so.2
#42 0xa7bbfcfd in g_mime_content_type_new_from_string ()
   from /usr/lib/libgmime-2.0.so.2
#43 0xa7bd7e76 in g_mime_parser_eos () from /usr/lib/libgmime-2.0.so.2
#44 0xa7bd84f7 in g_mime_parser_eos () from /usr/lib/libgmime-2.0.so.2
#45 0xa7bd86b8 in g_mime_parser_eos () from /usr/lib/libgmime-2.0.so.2
#46 0xa7bd8913 in g_mime_parser_eos () from /usr/lib/libgmime-2.0.so.2
#47 0xa7bd8b2a in g_mime_parser_eos () from /usr/lib/libgmime-2.0.so.2
#48 0xa7bd8dff in g_mime_parser_construct_part ()
   from /usr/lib/libgmime-2.0.so.2
#49 0x080f2c6e in parse_mailbox (mbox=0x828ccb8) at mailbox_mbox.c:363
#50 0x080f31ea in libbalsa_mailbox_mbox_open (mailbox=0x828ccb8, 
    err=0xa6ccaabc) at mailbox_mbox.c:496
#51 0x080e076b in libbalsa_mailbox_open (mailbox=0x828ccb8, err=0xa6ccaabc)
    at mailbox.c:491
#52 0x08075bf8 in balsa_index_load_mailbox_node (index=0x83787c0, 
    mbnode=0x828cda0, err=0xa6ccaabc) at balsa-index.c:996
#53 0x0809d4ac in real_open_mbnode (info=0x8378ab0) at main-window.c:2191
#54 0xa71119b4 in start_thread () from /lib/tls/libpthread.so.0
#55 0x00000000 in ?? ()

Attachment: pgpexoytrw1gO.pgp
Description: PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]