Bug 241 - We need to add versioning to plugins (Was: Segfault when selecting a mail with an attachment)
: We need to add versioning to plugins (Was: Segfault when selecting a mail wit...
Status: CLOSED FIXED
: Sylpheed-Claws (GTK1)
Plugins
: 0.9.0
: PC Linux
: P3 normal
Assigned To:
:
:
:
  Show dependency treegraph
 
Reported: 2003-07-18 16:20 by
Modified: 2003-07-22 22:15 (History)


Attachments


Note

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


Description From 2003-07-18 16:20:07
This is mainly done so that the bug report that i already made on the list
doesn't get lost :)

switching from 0.8.11claws-141 to 0.9.0claws93: When i click on a mail with an
attachment in the summaryview, S-C segfaults.
Problem still occurs with a clean cvs checkout as of 0.9.3claws22

configure options are:

./autogen.sh --enable-openssl --enable-gpgme
--prefix=/usr/local/sylpheed-claws-cvs --enable-aspell
--enable-dillo-viewer-plugin --enable-image-viewer-plugin

Box is 1.5 GHz SMP 512 Mo SCSI running 2.6.0-test1-mm1 kernel on a Debian Sid
distro fully dist-upgraded.

Full backtrace below.

Thanks,

Philippe

procmime.c:301:fpos: 3981975
procmime.c:305:partinfo->size: 417546
procmime.c:256:prev_fpos: 3981975
procmime.c:273:content-type: image/jpeg
procmime.c:298:boundary: --Multipart_Wed__25_Jun_2003_13:52:05_+0200_086afb60--

procmime.c:301:fpos: 4419394
procmime.c:305:partinfo->size: 437364

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 29279)]
0x404994fd in vfprintf () from /lib/libc.so.6
(gdb) bt full
#0  0x404994fd in vfprintf () from /lib/libc.so.6
No symbol table info available.
#1  0x404b6cba in vsnprintf () from /lib/libc.so.6
No symbol table info available.
#2  0x4021be25 in g_vsnprintf () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#3  0x08145b24 in debug_print_real (format=0x8174a03 "%s\n") at utils.c:3246
        buf =
"\000imeview.c:510:\000\025\000\000\025\000\0008)\022@\025\000\000\025\233\000\0008\002\032@@G\e@@G\e@X|
u\034@\030\022@$2\036\bX.u\210\026op\004s\000@K\005\bf5@|
u\034@\030\022@F~\026@lO\032\b\024\001@\000\000\000\000TD\000q\000@\231kF@;\006\b$#\bLp\000@&\000\000\000I\024@\v\000\000\000\000\000\000\r\000kF@
\eF@ \223E@(g5@\026\000\000\0008A\037\b\024\001@"...
#4  0x0808741f in get_viewer_for_content_type (mimeview=0x82479d8,
content_type=0x67616d69 <Address 0x67616d69 out of bounds>) at mimeview.c:510
        curfactory = (MimeViewerFactory *) 0x40025728
        i = 0
        cur = <value optimized out>
        factory = (MimeViewerFactory *) 0x0
        viewer = (MimeViewer *) 0x40025728
#5  0x08087480 in get_viewer_for_mimeinfo (mimeview=0x82479d8,
partinfo=0x67616d00) at mimeview.c:548
        content_type = (gchar *) 0xe8128e0 "text/plain"
        viewer = (MimeViewer *) 0x0
#6  0x080874c2 in mimeview_show_part (mimeview=0x82479d8, partinfo=0xe80f130) at
mimeview.c:559
        viewer = (MimeViewer *) 0xe80f130
#7  0x08087708 in mimeview_selected (ctree=0x8248e80, node=0xe80f130, column=-1,
mimeview=0x82479d8) at mimeview.c:650
        partinfo = (MimeInfo *) 0xe80f130
#8  0x40139410 in gtk_marshal_NONE__POINTER_INT () from /usr/lib/libgtk-1.2.so.0
No symbol table info available.
#9  0x40168a9e in gtk_signal_remove_emission_hook () from /usr/lib/libgtk-1.2.so.0
No symbol table info available.
#10 0x40167f1c in gtk_signal_set_funcs () from /usr/lib/libgtk-1.2.so.0
No symbol table info available.
#11 0x40165ea8 in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0
No symbol table info available.
#12 0x40103304 in gtk_ctree_select () from /usr/lib/libgtk-1.2.so.0
No symbol table info available.
#13 0x08086f19 in mimeview_show_message (mimeview=0x82479d8, mimeinfo=0xe80edd8,
file=0x81f41b0 "/home/test/SylpheedMail/inbox/38034") at mimeview.c:341
---Type <return> to continue, or q <return> to quit---
        ctree = (GtkCTree *) 0x8248e80
        node = (GtkCTreeNode *) 0xe80763c
        fp = (FILE *) 0xe80763c
#14 0x080812d8 in messageview_show (messageview=0x823c740, msginfo=0x823e8f0,
all_headers=0) at messageview.c:707
        file = (gchar *) 0x81f41b0 "/home/test/SylpheedMail/inbox/38034"
        mimeinfo = (MimeInfo *) 0xe80edd8
#15 0x08079b2e in summary_display_msg_full (summaryview=0x822c910,
row=0xe79bb18, new_window=136562496, all_headers=0) at summaryview.c:2496
        msgview = (MessageView *) 0x823c740
        ctree = (GtkCTree *) 0x81a49c0
        msginfo = (MsgInfo *) 0x8a26568
        filename = <value optimized out>
#16 0x0807998d in summary_display_msg (summaryview=0x822c910, row=0xe79bb18) at
summaryview.c:2428
No locals.
#17 0x40139410 in gtk_marshal_NONE__POINTER_INT () from /usr/lib/libgtk-1.2.so.0
No symbol table info available.
#18 0x40168a9e in gtk_signal_remove_emission_hook () from /usr/lib/libgtk-1.2.so.0
No symbol table info available.
#19 0x40167f1c in gtk_signal_set_funcs () from /usr/lib/libgtk-1.2.so.0
No symbol table info available.
#20 0x4016620f in gtk_signal_emit_by_name () from /usr/lib/libgtk-1.2.so.0
No symbol table info available.
#21 0x081246f0 in select_row (sctree=0x81a49c0, row=6534, col=6,
state=242858776) at gtksctree.c:249
        node = (GtkCTreeNode *) 0xe79bb18
        range = 0
        additive = 0
#22 0x08124af3 in gtk_sctree_button_press (widget=0x81a49c0, event=0x82b3340) at
gtksctree.c:315
        sctree = (GtkSCTree *) 0x81a49c0
        clist = (GtkCList *) 0x81a49c0
        on_row = 1
        row = 6534
        col = 6
        retval = 0
#23 0x401391c9 in gtk_marshal_BOOL__POINTER () from /usr/lib/libgtk-1.2.so.0
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#24 0x40167d77 in gtk_signal_set_funcs () from /usr/lib/libgtk-1.2.so.0
No symbol table info available.
#25 0x40165ea8 in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0
No symbol table info available.
#26 0x4019ba5a in gtk_widget_event () from /usr/lib/libgtk-1.2.so.0
No symbol table info available.
#27 0x4013905c in gtk_propagate_event () from /usr/lib/libgtk-1.2.so.0
No symbol table info available.
#28 0x4013817d in gtk_main_do_event () from /usr/lib/libgtk-1.2.so.0
No symbol table info available.
#29 0x401e0e20 in gdk_wm_protocols_filter () from /usr/lib/libgdk-1.2.so.0
No symbol table info available.
(gdb) quit
------- Comment #1 From 2003-07-18 16:49:26 -------
--> me 
 
Additional notes / findings: For some reason variables in plugins are  
not properly set or are trashed later on. May have something to do 
with bleeding edge stuff of OP. 
I've been writing patches that should hopefully reduce the problem  
to its probable cause. 
------- Comment #2 From 2003-07-18 20:01:23 -------
cause found: plugin of older claws version was loaded. 
(Subject + component changed) 
------- Comment #3 From 2003-07-18 23:15:50 -------
in cvs