Bug 425 - sylpheed 0.9.8claws42 crashes on some messages.
: sylpheed 0.9.8claws42 crashes on some messages.
Status: RESOLVED FIXED
: Sylpheed-Claws (GTK1)
User Interface/Message View
: 0.9.9
: PC Linux
: P3 critical
Assigned To:
:
:
:
  Show dependency treegraph
 
Reported: 2004-01-23 19:44 by
Modified: 2004-01-24 06:52 (History)


Attachments


Note

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


Description From 2004-01-23 19:44:50
Bug In sylpheed 0.9.8claws42 (I could not get any newer version from CVS)

When I try to read this message in internal viewer (that is usually under list 
of messages) sylpheed crashes.
Sylpheed 0.9.8claws26 hasn't this bug.

Original message path: /home/darkk/Mail/tim_car@omskmail.ru/inbox/44
Message:
------8(------8(------8(------8(------8(------8(------8(------8(------
Return-Path: <twb@alpha.rb.xcalibre.co.uk>
Received: from alpha.rb.xcalibre.co.uk (alpha.rb.xcalibre.co.uk [217.8.240.10])
        by omskmail.ru (8.12.5/8.12.5) with ESMTP id i0NELcY9034320
        for <tim_car@omskmail.ru>; Fri, 23 Jan 2004 17:21:39 +0300 (MSK)
        (envelope-from twb@alpha.rb.xcalibre.co.uk)
Received: from twb by alpha.rb.xcalibre.co.uk with local (Exim 3.22 #13)
        id 1Ak2Bl-00074k-00
        for tim_car@omskmail.ru; Fri, 23 Jan 2004 14:21:37 +0000
From: noreply@thewildbeast.co.uk
To: tim_car@omskmail.ru
Subject: [Bug 424] crash in configurator...
X-Bugzilla-Reason: Reporter
Message-Id: <E1Ak2Bl-00074k-00@alpha.rb.xcalibre.co.uk>
Sender: <twb@alpha.rb.xcalibre.co.uk>
Date: Fri, 23 Jan 2004 14:21:37 +0000

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

           Summary: crash in configurator...
           Product: Sylpheed-Claws
           Version: CVS
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P3
         Component: User Interface
        AssignedTo: sylpheed-claws-users@lists.sourceforge.net
        ReportedBy: tim_car@omskmail.ru


Way to reproduce bug:
1. Start sylpheed.
2. Open "configuration/other preferences" menu
3. Open "Message view/External programs" submenu... while opening it crashes.


Configured with: ./configure --prefix=/usr --infodir=/usr/share/info 
--mandir=/usr/share/man --enable-shared --disable-static --disable-rpath 
--disable-nls --disable-ipv6 --disable-trayicon-plugin 
--enable-image-viewer-plugin --enable-gdk-pixbuf --enable-imlib 
--enable-crash-dialog

Sylpheed version 0.9.8claws42  (0.9.8claws26 has same bug)
GTK+ version 1.2.10
Features: gdk-pixbuf
Operating system: Linux 2.4.20-wolk4.0s (i686)
C Library: GNU libc 2.2.5
--
(no debugging symbols found)...[New Thread 1024 (LWP 4740)]
0x4cc3cd99 in wait4 () from /lib/libc.so.6
#0  0x4cc3cd99 in wait4 () from /lib/libc.so.6
#1  0x4ccba30c in __DTOR_END__ () from /lib/libc.so.6
#2  0x4c919ed6 in waitpid () from /lib/libpthread.so.0
#3  0x0809bc3f in crash_main ()
#4  0x4c91770b in pthread_sighandler () from /lib/libpthread.so.0
#5  <signal handler called>
#6  0x4cc08bc1 in strlen () from /lib/libc.so.6
#7  0x4c9a9f31 in gtk_entry_set_text (entry=0x829f858, text=0x0) at gtkentry.c:
447
#8  0x08103d5f in prefs_ext_prog_create_widget ()
#9  0x08152cf5 in pluginwindow_create ()
#10 0x4c9d01f7 in gtk_marshal_NONE__POINTER_INT (object=0xfffffe00, 
    func=0x8152bc0 <pluginwindow_create+2320>, func_data=0xfffffe00, args=0x0) 
at gtkmarshal.c:325
#11 0x4c9f6625 in gtk_handlers_run (handlers=0x82828b8, signal=0xbfad0d50, 
object=0x8285148, 
    params=0xbfad0dc0, after=0) at gtksignal.c:1912
#12 0x4c9f5c40 in gtk_signal_real_emit (object=0x8285148, signal_id=82, 
params=0xbfad0dc0)
    at gtksignal.c:1477
#13 0x4c9f4359 in gtk_signal_emit (object=0xfffffe00, signal_id=82) at 
gtksignal.c:552
#14 0x4c99dc99 in real_select_row (clist=0x52, row=-512, column=-512, 
event=0x828c670)
    at gtkctree.c:3297
#15 0x4c9d01ae in gtk_marshal_NONE__INT_INT_POINTER (object=0xfffffe00, 
    func=0x4c99dc20 <real_select_row>, func_data=0xfffffe00, args=0x0) at 
gtkmarshal.c:300
#16 0x4c9f5b55 in gtk_signal_real_emit (object=0x52, signal_id=3215789504, 
params=0xbfad1160)
    at gtksignal.c:1440
#17 0x4c9f4359 in gtk_signal_emit (object=0xfffffe00, signal_id=61) at 
gtksignal.c:552
#18 0x4c98a54d in gtk_clist_button_press (widget=0x3d, event=0x828c670) at 
gtkclist.c:5066
#19 0x4c999082 in gtk_ctree_button_press (widget=0x8285148, event=0x828c670) at 
gtkctree.c:821
#20 0x4c9cfe16 in gtk_marshal_BOOL__POINTER (object=0xfffffe00, 
    func=0x4c999030 <gtk_ctree_button_press>, func_data=0xfffffe00, args=0x0) at 
gtkmarshal.c:28
#21 0x4c9f5c85 in gtk_signal_real_emit (object=0x8285148, signal_id=4, 
params=0xbfad1570)
    at gtksignal.c:1492
#22 0x4c9f4359 in gtk_signal_emit (object=0xfffffe00, signal_id=20) at 
gtksignal.c:552
#23 0x4ca22f0a in gtk_widget_event (widget=0x14, event=0xbfad1570) at gtkwidget.
c:2864
#24 0x4c9cfc97 in gtk_propagate_event (widget=0x8285148, event=0x828c670) at 
gtkmain.c:1392
#25 0x4c9cecc6 in gtk_main_do_event (event=0x828c670) at gtkmain.c:818
#26 0x4ca563d3 in gdk_event_dispatch (source_data=0x0, current_time=0xbfad1930, 
user_data=0x0)
    at gdkevents.c:2139
#27 0x4ca7f70e in g_main_dispatch (dispatch_time=0xbfad1930) at gmain.c:656
#28 0x4ca7fbc0 in g_main_iterate (block=1, dispatch=1) at gmain.c:877
#29 0x4ca7fdea in g_main_run (loop=0x82898a8) at gmain.c:935
#30 0x4c9ce7cf in gtk_main () at gtkmain.c:524
#31 0x080d0efb in main ()
#32 0x4cb9f4d2 in __libc_start_main () from /lib/libc.so.6

-- 
Configure bugmail: http://www.thewildbeast.co.
uk/sylpheed-claws/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.
------8(------8(------8(------8(------8(------8(------8(------8(------

Back-trace log:
------8(------8(------8(------8(------8(------8(------8(------8(------
[Switching to Thread 1024 (LWP 8852)]
g_strchug (string=0x0) at gstrfuncs.c:1314
1314    gstrfuncs.c: No such file or directory.
        in gstrfuncs.c
(gdb) bt 
#0  g_strchug (string=0x0) at gstrfuncs.c:1314
#1  0x0811b8c3 in procmime_parse_message_rfc822 (mimeinfo=0x828b520)
    at procmime.c:984
#2  0x0811c410 in procmime_scan_file_with_offset (
    filename=0x828b598 "oTIoTI", offset=784) at procmime.c:1312
#3  0x0811c516 in procmime_scan_queue_file (
    filename=0xb0b43c64 "h(\b(\b\200g1Ih(\b(\b\230<(\b\002")
    at procmime.c:1348
#4  0x08119f90 in procmime_scan_message (msginfo=0x828b430) at procmime.c:201
#5  0x080dd09c in messageview_show (messageview=0x8242ca8, msginfo=0x828b430, 
    all_headers=0) at messageview.c:675
#6  0x08129983 in summary_display_msg_full (summaryview=0x8232ba0, 
    row=0x8245520, new_window=0, all_headers=0) at summaryview.c:2490
#7  0x08129798 in summary_display_msg (summaryview=0x0, row=0x0)
    at summaryview.c:2448
#8  0x4925f1f7 in gtk_marshal_NONE__POINTER_INT (object=0x0, 
    func=0x812f230 <summary_selected>, func_data=0x0, args=0x491b19e0)
    at gtkmarshal.c:325
#9  0x49285625 in gtk_handlers_run (handlers=0x822d468, signal=0xb0b45eb0, 
    object=0x81d9f78, params=0xb0b45f30, after=0) at gtksignal.c:1912
#10 0x49284c40 in gtk_signal_real_emit (object=0x81d9f78, signal_id=82, 
    params=0xb0b45f30) at gtksignal.c:1477
#11 0x49283504 in gtk_signal_emit_by_name (object=0x81d9f78, 
    name=0x816a937 "tree_select_row") at gtksignal.c:618
#12 0x0813e5fe in select_row (sctree=0x81d9f78, row=0, col=-1, state=136598816)
    at gtksctree.c:249
#13 0x0813f579 in gtk_sctree_select (sctree=0x81d9f78, node=0x0)
    at gtksctree.c:554
#14 0x08126d50 in summary_show (summaryview=0x81d9f78, item=0x8292ff0)
    at summaryview.c:1164
#15 0x080b80db in folderview_selected (ctree=0x8229d70, row=0x828baa0, 
    column=-1, folderview=0x8228358) at folderview.c:1716
#16 0x4925f1f7 in gtk_marshal_NONE__POINTER_INT (object=0x0, 
    func=0x80b7ef0 <folderview_selected>, func_data=0x0, args=0x491b19e0)
    at gtkmarshal.c:325
#17 0x49285625 in gtk_handlers_run (handlers=0x8229d70, signal=0xb0b46360, 
    object=0x8229d70, params=0xb0b463d0, after=0) at gtksignal.c:1912
#18 0x49284c40 in gtk_signal_real_emit (object=0x8229d70, signal_id=82, 
    params=0xb0b463d0) at gtksignal.c:1477
#19 0x49283359 in gtk_signal_emit (object=0x0, signal_id=82) at gtksignal.c:552
#20 0x4922e7e2 in gtk_ctree_select (ctree=0x491b19e0, node=0x52)
    at gtkctree.c:4544
#21 0x4922d139 in real_unselect_all (clist=0xb0b463d0) at gtkctree.c:3480
#22 0x49216074 in gtk_clist_unselect_all (clist=0x0) at gtkclist.c:3511
#23 0x0813e6cb in select_row (sctree=0x8229d70, row=21, col=0, state=0)
    at gtksctree.c:233
#24 0x0813ea82 in gtk_sctree_button_press (widget=0x8229d70, event=0x828c730)
    at gtksctree.c:315
#25 0x4925ee16 in gtk_marshal_BOOL__POINTER (object=0x0, 
    func=0x813e7b0 <gtk_sctree_button_press>, func_data=0x0, args=0x491b19e0)
    at gtkmarshal.c:28
#26 0x49284c85 in gtk_signal_real_emit (object=0x8229d70, signal_id=136890160, 
    params=0xb0b46820) at gtksignal.c:1492
#27 0x49283359 in gtk_signal_emit (object=0x0, signal_id=20) at gtksignal.c:552
#28 0x492b1f0a in gtk_widget_event (widget=0x14, event=0xb0b46820)
    at gtkwidget.c:2864
#29 0x4925ec97 in gtk_propagate_event (widget=0x8229d70, event=0x828c730)
    at gtkmain.c:1392
#30 0x4925dcc6 in gtk_main_do_event (event=0x828c730) at gtkmain.c:818
#31 0x492e53d3 in gdk_event_dispatch (source_data=0x0, 
    current_time=0xb0b46be0, user_data=0x0) at gdkevents.c:2139
#32 0x4930e70e in g_main_dispatch (dispatch_time=0xb0b46be0) at gmain.c:656
#33 0x4930ebc0 in g_main_iterate (block=1, dispatch=1) at gmain.c:877
#34 0x4930edea in g_main_run (loop=0x8289968) at gmain.c:935
#35 0x4925d7cf in gtk_main () at gtkmain.c:524
#36 0x080d0efb in main (argc=1, argv=0xb0b46ce4) at main.c:357
#37 0x4942e4d2 in __libc_start_main () from /lib/libc.so.6
------8(------8(------8(------8(------8(------8(------8(------8(------
------- Comment #1 From 2004-01-23 23:17:02 -------
Leon, can you add the offending message as an attachment to this report? 
Thanks. 
 
------- Comment #2 From 2004-01-23 23:25:03 -------
Got the message too, but it doesn't crash here. 
 
Sorry for not having a usual diff, because SF CVS is broken, but can you look 
at procmsg.c, function procmime_parse_message_rfc822(), around line 955. This 
function has the following line: 
 
 
	g_strstrip(hentry[5].body); 
 
Can you change this into: 
 
        if (hentry[5].body != NULL) 
                g_strstrip(hentry[5].body); 
 
see if that helps. 
 
(I have no clue why there's no MIME-Version header in the message. 
 
Thanks. 
 
------- Comment #3 From 2004-01-24 06:52:44 -------
Thank you, patch helped.

And I could not attach file as bugzilla says that "No File Specified"...

And about MIME-Version header.... Maybe bugzilla bug :) 
But anyway I see no reasons for it to exist in every message.