GNOME Bugzilla – Bug 135210
Pan crashes when 40tude posted binaries don't include text
Last modified: 2004-12-22 21:47:04 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)):
+ Trace 44492
frik@callisto cache $ Script done on Mon Feb 23 15:45:08 2004 END~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*** This bug has been marked as a duplicate of 125051 ***