Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 151476 - net-nntp/pan-0.116 doesn't run
Summary: net-nntp/pan-0.116 doesn't run
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Other
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: http://bugzilla.gnome.org/show_bug.cg...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-15 10:02 UTC by António Godinho
Modified: 2006-11-03 12:36 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description António Godinho 2006-10-15 10:02:47 UTC
to@gandalf ~ $ pan &
[1] 5832
to@gandalf ~ $ pan: fptools.c:455: _FP_fgets: Assertion `*buf' failed.

[1]+  Aborted                 pan


to@gandalf ~ $ emerge --info
Portage 2.1.2_pre3-r2 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.5-r0, 2.6.18-gentoo i686)
=================================================================
System uname: 2.6.18-gentoo i686 Intel(R) Pentium(R) 4 CPU 2.66GHz
Gentoo Base System version 1.12.5
Last Sync: Sun, 15 Oct 2006 10:30:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.3.5-r3, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium4 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoclean autoconfig ccache distlocks fixpackages metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.rnl.ist.utl.pt/gentoo/ http://darkstar.ist.utl.pt/gentoo/ ftp://mirrors1.netvisao.pt/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 apache apache2 apm atm berkdb bitmap-fonts cli crypt dlloader dri eds elibc_glibc emboss encode foomaticdb fortran gd gif gpm gstreamer gtk2 imap input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog jpeg kernel_linux libg++ libwww mad mmx motif mpeg mysql ncurses nls nptl ogg opengl pam pcre perl png pppd python qt3 qt4 quicktime readline reflection sdl server session spell spl sqlite sse ssl tcpd threads truetype truetype-fonts type1-fonts udev userland_GNU video_cards_ati video_cards_fbdev video_cards_vesa xml xml2 xorg xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS


*  net-nntp/pan
      Latest version available: 0.116
      Latest version installed: 0.116
Comment 1 Rémi Cardona (RETIRED) gentoo-dev 2006-10-15 15:56:46 UTC
Can you rebuild and rerun pan in with debug info enabled using this guide : http://www.gentoo.org/proj/en/qa/backtraces.xml ? Attach the backtrace to this bug as well. That would help a lot :)

Thanks
Comment 2 António Godinho 2006-10-17 01:07:48 UTC
to@gandalf ~ $ gdb /usr/bin/pan
GNU gdb 6.5
Copyright (C) 2006 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"...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /usr/bin/pan 
[Thread debugging using libthread_db enabled]
[New Thread -1221855552 (LWP 18151)]
pan: fptools.c:455: _FP_fgets: Assertion `*buf' failed.

Program received signal SIGABRT, Aborted.
[Switching to Thread -1221855552 (LWP 18151)]
0xb7f17410 in __kernel_vsyscall ()
(gdb)
Comment 3 Rémi Cardona (RETIRED) gentoo-dev 2006-10-17 04:10:11 UTC
run the "bt" command inside gdb to print the backtrace once pan has segfaulted and attach it here.

Thanks
Comment 4 António Godinho 2006-10-17 09:03:43 UTC
Nothing new...

to@gandalf ~ $ gdb /usr/bin/pan
GNU gdb 6.5
Copyright (C) 2006 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"...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) bt
No stack.
(gdb) run
Starting program: /usr/bin/pan 
[Thread debugging using libthread_db enabled]
[New Thread -1221114176 (LWP 28259)]
pan: fptools.c:455: _FP_fgets: Assertion `*buf' failed.

Program received signal SIGABRT, Aborted.
[Switching to Thread -1221114176 (LWP 28259)]
0xb7fcc410 in __kernel_vsyscall ()
(gdb)
Comment 5 Rémi Cardona (RETIRED) gentoo-dev 2006-10-17 22:35:17 UTC
*sigh* please run pan using the "run" command, then run "bt" once it has crashed. Thanks
Comment 6 António Godinho 2006-10-18 12:45:43 UTC
to@gandalf ~ $ gdb /usr/bin/pan
GNU gdb 6.5
Copyright (C) 2006 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"...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /usr/bin/pan 
[Thread debugging using libthread_db enabled]
[New Thread -1221105984 (LWP 16716)]
pan: fptools.c:455: _FP_fgets: Assertion `*buf' failed.

Program received signal SIGABRT, Aborted.
[Switching to Thread -1221105984 (LWP 16716)]
0xb7fce402 in __kernel_vsyscall ()
(gdb) bt
#0  0xb7fce402 in __kernel_vsyscall ()
#1  0xb777eb9d in raise () from /lib/libc.so.6
#2  0xb77802e9 in abort () from /lib/libc.so.6
#3  0xb77785c3 in __assert_fail () from /lib/libc.so.6
#4  0x081ec478 in _FP_fgets (buf=0x8556dc0 "", n=4096, stream=0x855be60) at fptools.c:455
#5  0x081e5504 in ScanData (datei=0x855be60, fname=0x6 <Address 0x6 out of bounds>, errcode=0xbfbe437c, boundary=0x0, ismime=0, checkheaders=1, result=0x855bdc0)
    at uuscan.c:652
#6  0x081e7b9a in ScanPart (datei=0x855be60, fname=0x85502f4 "/home/to/.pan2/article-cache/44f714ab$0$24269$a729d347@news.telepac.pt.msg", errcode=0xbfbe437c)
    at uuscan.c:3154
#7  0x081d8984 in UULoadFileWithPartNo (filename=0x85502f4 "/home/to/.pan2/article-cache/44f714ab$0$24269$a729d347@news.telepac.pt.msg", 
    fileid=0x85502f4 "/home/to/.pan2/article-cache/44f714ab$0$24269$a729d347@news.telepac.pt.msg", delflag=0, partno=26) at uulib.c:732
#8  0x081725ce in pan::TaskArticle::on_finished (this=0x829f640) at /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/g++-v3/bits/basic_string.h:618
#9  0x08176caf in pan::TaskArticle::update_work (this=0x829f640) at task-article.cc:171
#10 0x08177ff4 in TaskArticle (this=0x829f640, server_rank=@0x0, group_server=@0xbfbe51a0, article=@0xbfbe4c80, cache=@0xbfbe51f4, read=@0x0, listener=0x0, 
    save_mode=pan::TaskArticle::NONE, save_path=@0xbfbe49d0) at task-article.cc:129
#11 0x0818eaaf in (anonymous namespace)::end_element (context=0x829fad0, element_name=0xbfbe49d0 "\224
Comment 7 António Godinho 2006-10-18 12:45:43 UTC
to@gandalf ~ $ gdb /usr/bin/pan
GNU gdb 6.5
Copyright (C) 2006 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"...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /usr/bin/pan 
[Thread debugging using libthread_db enabled]
[New Thread -1221105984 (LWP 16716)]
pan: fptools.c:455: _FP_fgets: Assertion `*buf' failed.

Program received signal SIGABRT, Aborted.
[Switching to Thread -1221105984 (LWP 16716)]
0xb7fce402 in __kernel_vsyscall ()
(gdb) bt
#0  0xb7fce402 in __kernel_vsyscall ()
#1  0xb777eb9d in raise () from /lib/libc.so.6
#2  0xb77802e9 in abort () from /lib/libc.so.6
#3  0xb77785c3 in __assert_fail () from /lib/libc.so.6
#4  0x081ec478 in _FP_fgets (buf=0x8556dc0 "", n=4096, stream=0x855be60) at fptools.c:455
#5  0x081e5504 in ScanData (datei=0x855be60, fname=0x6 <Address 0x6 out of bounds>, errcode=0xbfbe437c, boundary=0x0, ismime=0, checkheaders=1, result=0x855bdc0)
    at uuscan.c:652
#6  0x081e7b9a in ScanPart (datei=0x855be60, fname=0x85502f4 "/home/to/.pan2/article-cache/44f714ab$0$24269$a729d347@news.telepac.pt.msg", errcode=0xbfbe437c)
    at uuscan.c:3154
#7  0x081d8984 in UULoadFileWithPartNo (filename=0x85502f4 "/home/to/.pan2/article-cache/44f714ab$0$24269$a729d347@news.telepac.pt.msg", 
    fileid=0x85502f4 "/home/to/.pan2/article-cache/44f714ab$0$24269$a729d347@news.telepac.pt.msg", delflag=0, partno=26) at uulib.c:732
#8  0x081725ce in pan::TaskArticle::on_finished (this=0x829f640) at /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/g++-v3/bits/basic_string.h:618
#9  0x08176caf in pan::TaskArticle::update_work (this=0x829f640) at task-article.cc:171
#10 0x08177ff4 in TaskArticle (this=0x829f640, server_rank=@0x0, group_server=@0xbfbe51a0, article=@0xbfbe4c80, cache=@0xbfbe51f4, read=@0x0, listener=0x0, 
    save_mode=pan::TaskArticle::NONE, save_path=@0xbfbe49d0) at task-article.cc:129
#11 0x0818eaaf in (anonymous namespace)::end_element (context=0x829fad0, element_name=0xbfbe49d0 "\224ô)\bx½S\bøI¾¿3\t§·\f", user_data=0xbfbe4c60, error=0xbfbe4ad4)
    at ../../pan/general/quark.h:86
#12 0xb7a595ef in g_markup_parse_context_parse () from /usr/lib/libglib-2.0.so.0
#13 0x0818bd4f in pan::NZB::tasks_from_nzb_string (nzb=@0xbfbe4d80, save_path=@0x6, cache=@0x0, read=@0x0, ranks=@0x0, gs=@0x0, appendme=@0xbfbe4eb0) at nzb.cc:172
#14 0x08169315 in pan::DataImpl::load_tasks (this=0xbfbe51a0, setme=@0x0) at /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/g++-v3/bits/basic_string.h:538
#15 0x0819687d in Queue (this=0xbfbe5050, server_info=@0x0, archive=@0x0, socket_creator=0x0, online=true) at queue.cc:46
#16 0x080b130c in main (argc=1, argv=0xbfbe5544) at ../../pan/general/string-view.h:147
(gdb) 
Comment 8 António Godinho 2006-10-18 13:57:57 UTC
erased that file that had an error:
"/home/to/.pan2/article-cache/44f714ab$0$24269$a729d347@news.telepac.pt.msg"
and the program just run fine. The issue here it's why that made the program crach anyway...
Comment 9 Rémi Cardona (RETIRED) gentoo-dev 2006-10-20 11:14:25 UTC
I suggest you get in touch with the pan developers (bugzilla or mailing list) and that you explain the problem you've had with this file. If you do open a bug in their bugzilla (assuming they have one) please post the url here.

Thanks
Comment 10 John N. Laliberte (RETIRED) gentoo-dev 2006-11-03 12:36:12 UTC
we'll follow this upstream.