Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 33879

Summary: wget doesn't work when adress is specified as IP (works with domain-adress)
Product: Gentoo Linux Reporter: Marcin Kryczek (RETIRED) <mkay>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Marcin Kryczek (RETIRED) gentoo-dev 2003-11-19 17:10:56 UTC
wget from 1.9.* series doesn't download files when the adress is specified as 
IP. It just prints 'Aborted' without even try to connect. 
example:
<aye@CogES>~: wget http://127.0.0.1
--16:25:00--  http://127.0.0.1/
           => `index.html'
Aborted

but works with domain:
<aye@CogES>~: wget http://localhost
--16:25:36--  http://localhost/
           => `index.html'
Resolving localhost... 127.0.0.1
Connecting to localhost[127.0.0.1]:80... failed: Connection refused.

i've talked with people on irc and i know that i'm not alone with this problem, 
but noone could help


Reproducible: Always
Steps to Reproduce:




i've done:
<aye@CogES>~: strace wget http://127.0.0.1 > ip.log 2>&1
<aye@CogES>~: strace wget http://localhost > domena.log 2>&1

and here are diffrences:
<aye@CogES>~: diff ip.log domena.log 
1c1
< execve("/usr/bin/wget", ["wget", "http://127.0.0.1"], [/* 42 vars */]) = 0
---
> execve("/usr/bin/wget", ["wget", "http://localhost"], [/* 42 vars */]) = 0
78,79c78,79
< getpid()                                = 3051
< getpid()                                = 3051
---
> getpid()                                = 3053
> getpid()                                = 3053
82c82
< read(3, "P\t\275f\337\330C\36\342m\234\217p\227\321W\32\311\317"..., 32) = 32
---
> read(3, "\276\244\241\324I\346\265\365\314\365\375\214\265i{vk\253"..., 32) = 
32
84,85c84,85
< getpid()                                = 3051
< getpid()                                = 3051
---
> getpid()                                = 3053
> getpid()                                = 3053
87,89c87,89
< getpid()                                = 3051
< time(NULL)                              = 1069254156
< getpid()                                = 3051
---
> getpid()                                = 3053
> time(NULL)                              = 1069254166
> getpid()                                = 3053
91c91
< time(NULL)                              = 1069254156
---
> time(NULL)                              = 1069254166
98c98
< write(2, "--16:02:36--  http://127.0.0.1/\n"..., 59--16:02:36--  http://127.0.
0.1/
---
> write(2, "--16:02:46--  http://localhost/\n"..., 59--16:02:46--  http:
//localhost/
101,105c101,153
< rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
< getpid()                          
< kill(3051, SIGABRT)                     = 0
< --- SIGABRT (Aborted) @ 0 (0) ---
< +++ killed by SIGABRT +++
---
> write(2, "Resolving localhost... ", 23Resolving localhost... ) = 23
      = 3051
[...cuted...] // the rest thing is about correct connecting to localhost

my emerge info:
<aye@CogES>~: emerge info
Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r8, 2.4.22-bk37)
=================================================================
System uname: 2.4.22-bk37 i686 AMD Athlon(tm) XP 1700+
Gentoo Base System version 1.4.3.12
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -Os -pipe -mmmx -m3dnow -msse -fomit-frame-pointer 
-ffast-math"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config 
/usr/kde/2/share/config /usr/kde/3/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -Os -pipe -mmmx -m3dnow -msse -fomit-frame-pointer 
-ffast-math"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache autoaddcvs sandbox"
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.
tu-clausthal.de/pub/linux/gentoo/ http://www.mirror.ac.uk/sites/www.ibiblio.
org/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://ftp.
uni-erlangen.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.
de/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.easynet.
nl/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.
inode.at/ ftp://ftp.rhnet.is/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/mnt/gentoo"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/my_ebuilds"
SYNC="rsync://rsync.gentoo.pl/gentoo-portage"
USE="x86 oss avi crypt cups encode foomaticdb gif jpeg libg++ mikmod motif mpeg 
ncurses nls pdflib png quicktime spell truetype xmms xv zlib gdbm berkdb slang 
readline arts tcltk java mysql postgres X sdl gpm tcpd pam libwww ssl perl 
python esd imlib oggvorbis opengl mozilla 3dnow acpi apache2 curl dvd fbcon 
flash javascript jikes lcms mbox memlimit mmx moznocompose moznoirc moznomail 
moznoxft nocardbus pda ppds samba sasl sse tiff v4l videos vim-with-x wmf xvid 
-apm -kde -gnome -mad -svga -xml2 -gtk -qt"
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2003-11-19 17:13:52 UTC
*** Bug 33881 has been marked as a duplicate of this bug. ***
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2003-11-19 17:14:05 UTC
*** Bug 33880 has been marked as a duplicate of this bug. ***
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2003-11-19 17:15:15 UTC

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