After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 135210 - Pan crashes when 40tude posted binaries don't include text
Pan crashes when 40tude posted binaries don't include text
Status: RESOLVED DUPLICATE of bug 125051
Product: Pan
Classification: Other
Component: general
0.14.0
Other Linux
: Normal major
: ---
Assigned To: Charles Kerr
Pan QA Team
Depends on:
Blocks:
 
 
Reported: 2004-02-23 16:17 UTC by me
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description me 2004-02-23 16:17:15 UTC
Could only save some binaries from newsgroup user, opening or attempting  
to save other posts from same user would cause Pan to seg fault.  
Investigated the cache files of the user and discovered that they used  
the Windows NNTP client 40tude.  
  
Later discovered that binaries posted by the user that also had text in  
the posting worked fine. Discovered the bug was in the following   
  
Cache file contents (lines numbered by me)  
BEGIN~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
01 Path:news.theplanet.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net  
02 From: Some Guy <some@guy.invalid>  
03 Subject: A binary post with no text from 40tude for Windows client  
04 Newsgroups: alt.binaries.some.other  
05 User-Agent: 40tude_Dialog/2.0.10.1  
06 MIME-Version: 1.0  
07 Content-Type: multipart/mixed;  
boundary="--03C14C47605B9D67_message_boundary--"  
08 Message-ID: <17fjl0pcqc53v$.etwp82txzqmi$.dlg@40tude.net>  
09 Lines: 989  
10 Date: Sun, 22 Feb 2004 13:09:43 +0000  
11 NNTP-Posting-Host: 195.166.158.105  
12 X-Complaints-To: abuse@chewie.net.uk  
13 X-Trace: xxx.xxx.net 1075 195.1.1.1 (Sun, 22 Feb 2004 13:11:55 GMT)  
14 NNTP-Posting-Date: Sun, 22 Feb 2004 13:11:55 GMT  
15 Organization: Something or other  
16   
17 ----03C14C47605B9D67_message_boundary--  
18 Content-type: text/plain; charset="us-ascii"  
19 Content-Transfer-Encoding: 7bit  
20   
21 ----03C14C47605B9D67_message_boundary--  
22 Content-type: image/JPEG; name="bin.jpg"  
23 Content-Transfer-Encoding: Base64  
24 Content-Disposition: attachment; FileName="bin.jpg"  
25 Content-Description: Attached file: bin.jpg  
26   
27 /9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQY  
  
END~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  
Lines 17 through 20 should'nt be there as the message is empty. If you  
insert a line after line 20 with any random text, Pan does'nt crash.  
However the problem really is that 40tude shouldn't be adding lines 17  
through 20 for an empty message.  
  
I can also send you a runlog if required (4119 lines)  
  
Rafael Pelayo  
  
Backtrace   
BEGIN~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
frik@callisto cache $ uname -a  
Linux callisto 2.6.1-gentoo #2 Sun Jan 18 17:12:47 GMT 2004 i686 AMD  
Athlon(tm)   
Processor AuthenticAMD GNU/Linux  
frik@callisto cache $ gdb pan  
GNU gdb 6.0  
Copyright 2003 Free Software Foundation, Inc.  
GDB is free software, covered by the GNU General Public License, and you  
are  
welcome to change it and/or distribute copies of it under certain  
conditions.  
Type "show copying" to see the conditions.  
There is absolutely no warranty for GDB.  Type "show warranty" for  
details.  
This GDB was configured as "i686-pc-linux-gnu"...  
(no debugging symbols found)...Using host libthread_db library  
"/lib/libthread_d  
b.so.1".  
  
(gdb) handle SIGUSR1 nostop noprint  
Signal        Stop      Print   Pass to program Description  
SIGUSR1       No        No      Yes             User defined signal 1  
(gdb) handle SIG32 nostop noprint  
Signal        Stop      Print   Pass to program Description  
SIG32         No        No      Yes             Real-time event 32  
(gdb) run  
Starting program: /usr/bin/pan   
(no debugging symbols found)...(no debugging symbols found)...  
(no debugging symbols found)...(no debugging symbols found)...  
(no debugging symbols found)...(no debugging symbols found)...  
(no debugging symbols found)...(no debugging symbols found)...  
(no debugging symbols found)...(no debugging symbols found)...  
(no debugging symbols found)...(no debugging symbols found)...  
(no debugging symbols found)...(no debugging symbols found)...  
(no debugging symbols found)...(no debugging symbols found)...[Thread  
debugging   
using libthread_db enabled]  
[New Thread 16384 (LWP 1920)]  
  
(no debugging symbols found)...(no debugging symbols found)...  
(no debugging symbols found)...(no debugging symbols found)...  
(no debugging symbols found)...(no debugging symbols found)...  
(no debugging symbols found)...(no debugging symbols found)...[New Thread  
32769   
(LWP 1925)]  
[New Thread 16386 (LWP 1926)]  
[New Thread 32771 (LWP 1927)]  
[New Thread 49156 (LWP 1928)]  
[New Thread 65541 (LWP 1929)]  
[New Thread 81926 (LWP 1930)]  
[New Thread 98311 (LWP 1931)]  
[New Thread 114696 (LWP 1932)]  
[New Thread 131080 (LWP 1933)]  
[New Thread 147464 (LWP 1934)]  
  
Program received signal SIGSEGV, Segmentation fault.  
[Switching to Thread 16384 (LWP 1920)]  
0x4067f46c in memcpy () from /lib/libc.so.6  
(gdb) thread apply all bt  
  
Thread 8 (Thread 98311 (LWP 1931)):  
  • #0 nanosleep
    from /lib/libpthread.so.0
  • #1 ??
  • #2 __pthread_timedsuspend_new
    from /lib/libpthread.so.0
  • #3 pthread_cond_timedwait_relative
    from /lib/libpthread.so.0
  • #4 ??
  • #5 ??
  • #6 pthread_cond_destroy
    from /lib/libpthread.so.0
  • #0 __pthread_sigsuspend
    from /lib/libpthread.so.0
  • #1 __pthread_wait_for_restart_signal
    from /lib/libpthread.so.0
  • #2 pthread_cond_wait
    from /lib/libpthread.so.0
  • #3 __pthread_alt_lock
    from /lib/libpthread.so.0
  • #4 ??
  • #0 __pthread_sigsuspend
    from /lib/libpthread.so.0
  • #1 __pthread_wait_for_restart_signal
    from /lib/libpthread.so.0
  • #2 pthread_cond_wait
    from /lib/libpthread.so.0
  • #3 __pthread_alt_lock
    from /lib/libpthread.so.0
  • #4 ??
  • #0 __pthread_sigsuspend
    from /lib/libpthread.so.0
  • #1 __pthread_wait_for_restart_signal
    from /lib/libpthread.so.0
  • #2 pthread_cond_wait
    from /lib/libpthread.so.0
  • #3 __pthread_alt_lock
    from /lib/libpthread.so.0
  • #4 ??
  • #0 __pthread_sigsuspend
    from /lib/libpthread.so.0
  • #1 __pthread_wait_for_restart_signal
    from /lib/libpthread.so.0
  • #2 pthread_cond_wait
    from /lib/libpthread.so.0
  • #3 __pthread_alt_lock
    from /lib/libpthread.so.0
  • #4 ??
  • #0 __pthread_sigsuspend
    from /lib/libpthread.so.0
  • #1 __pthread_wait_for_restart_signal
    from /lib/libpthread.so.0
  • #2 pthread_cond_wait
    from /lib/libpthread.so.0
  • #3 ??
  • #0 poll
    from /lib/libc.so.6
  • #1 __pthread_manager
    from /lib/libpthread.so.0
  • #2 __pthread_manager_event
    from /lib/libpthread.so.0
  • #3 clone
    from /lib/libc.so.6
  • #0 memcpy
    from /lib/libc.so.6
  • #1 g_mime_stream_filter_get_type
  • #2 g_mime_stream_read
  • #3 g_mime_stream_buffer_gets
  • #4 pan_g_mime_message_get_charset
  • #5 pan_g_mime_message_get_charset
  • #6 text_massager_rot13_inplace
  • #7 text_massager_rot13_inplace
  • #8 pan_g_mime_parser_construct_message
  • #9 ??
  • #10 ??
  • #11 pan_g_mime_parser_construct_message
  • #12 ??
  • #13 ??
  • #14 ??
  • #15 ??
  • #16 __JCR_LIST__
    from /usr/lib/libglib-2.0.so.0
  • #17 ??
  • #18 g_hash_table_lookup
    from /usr/lib/libglib-2.0.so.0
frik@callisto cache $   
Script done on Mon Feb 23 15:45:08 2004  
END~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Comment 1 Christophe Lambin 2004-02-23 18:47:25 UTC

*** This bug has been marked as a duplicate of 125051 ***