Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 205356 - net-misc/wget-1.10.2 segfault with -r --delete-after and recursive HTTP redirection
Summary: net-misc/wget-1.10.2 segfault with -r --delete-after and recursive HTTP redir...
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High critical
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-11 19:20 UTC by Jaak Ristioja
Modified: 2008-06-06 00:44 UTC (History)
0 users

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 Jaak Ristioja 2008-01-11 19:20:46 UTC
The following wget command crashes:
  wget -r --delete-after http://localhost/haha.php

If the web server redirects /haha.php to itself (tested using HTTP 302), wget segfaults after the redirection following limit is exceeded. Resulting wget output (beginning omitted) and gdb backtrace.

--21:07:09--  http://localhost/haha.php
           => `localhost/haha.php'
Reusing existing connection to localhost:80.
HTTP request sent, awaiting response... 302 Found
Location: http://localhost/haha.php [following]
--21:07:09--  http://localhost/haha.php
           => `localhost/haha.php'
Reusing existing connection to localhost:80.
HTTP request sent, awaiting response... 302 Found
Location: http://localhost/haha.php [following]
20 redirections exceeded.
Removing (null).
unlink: Bad address

Program received signal SIGSEGV, Segmentation fault.
(gdb) thread apply all bt

Thread 1 (Thread 0x2ac9753d11c0 (LWP 3503)):
#0  0x000000000040e810 in hash_string ()
#1  0x000000000040e6fa in hash_table_get_pair ()
#2  0x0000000000405013 in register_delete_file ()
#3  0x000000000041c422 in retrieve_tree ()
#4  0x0000000000419968 in main ()
#5  0x00002ac974e93b74 in __libc_start_main () from /lib/libc.so.6
#6  0x0000000000403bd9 in _start ()

emerge --info:
Portage 2.1.3.19 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r5-worship x86_64)
=================================================================
System uname: 2.6.23-gentoo-r5-worship x86_64 AMD Athlon(tm) 64 Processor 3200+
Timestamp of tree: Fri, 11 Jan 2008 12:30:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=athlon64"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=athlon64"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms splitdebug strict unmerge-orphans userfetch usersandbox"
GENTOO_MIRRORS="http://ftp.linux.ee/pub/gentoo/distfiles/ http://trumpetti.atm.tut.fi/gentoo/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="en et en_GB en_US de"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/voip /usr/portage/local/layman/gnash-cvs /usr/portage/local/layman/x11 /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aac acl alsa amd64 arts bash-completion berkdb bitmap-fonts bzip2 cairo cjk cli cracklib crypt cups dbus directfb dri encode fbcon ffmpeg flac fortran gdbm gif gmp gpm gtk gtk2 hal hardened iconv imagemagick imlib ipv6 isdnlog jbig jpeg jpeg2k kde lcms midi mmx mng mp3 mpeg mudflap ncurses nptl nptlonly ogg opengl openmp pam pcre perl pic png pppd python quicktime readline reflection samba sdl session sndfile spl sse sse2 ssl svg tcpd theora threads tiff truetype truetype-fonts type1-fonts unicode vhosts vorbis x264 xinerama xml xorg xprint xscreensaver xv xvid zlib" ALSA_CARDS="via82xx virmidi" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias asis auth_basic auth_digest authn_anon authn_dbd authn_default authn_file authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config log_forensic logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en et en_GB en_US de" LIRC_DEVICES="irdeo" USERLAND="GNU" VIDEO_CARDS="ati radeon nv vesa fbdev vga"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 SpanKY gentoo-dev 2008-01-28 14:03:57 UTC
please retest with wget-1.11 and if it still fails, re-open with the new output
Comment 2 Jaak Ristioja 2008-01-28 18:43:27 UTC
Fixed in wget-1.11. Thanks.