[hoary] wget segment fault

Shixin Zeng shixinzeng at gmail.com
Fri Apr 1 16:48:50 UTC 2005


Since I update from warty, the problem was there. It bothered me again
when I try the command "apt-file update", I got the error saying wget
segment fault. Then I debuged wget try to get more info about where
the problem occurred. The output and the debug info are below:

HTTP request sent, awaiting response... HTTP/1.1 404 Not Found
Date: Fri, 01 Apr 2005 16:36:02 GMT

 2 Date: Fri, 01 Apr 2005 16:36:02 GMTServer: Apache/2.0.53 (Ubuntu)
mod_fastcgi/2.4.2 PHP/4.3.10-2ubuntu4

 3 Server: Apache/2.0.53 (Ubuntu) mod_fastcgi/2.4.2
PHP/4.3.10-2ubuntu4Content-Length: 241

 4 Content-Length: 241Keep-Alive: timeout=15, max=100

 5 Keep-Alive: timeout=15, max=100Connection: Keep-Alive

 6 Connection: Keep-AliveContent-Type: text/html; charset=iso-8859-1

 7 Content-Type: text/html; charset=iso-8859-1

sh: line 1:  9255 Segmentation fault      wget -N -P "/var/cache/apt"
-O "/var/cache/apt/archive.ubuntu.org.cn_ubuntu_dists_hoary-updates_Contents-i386.gz"
"http://archive.ubuntu.org.cn/ubuntu//dists/hoary-updates/Contents-i386.gz"
DEBUG output created by Wget 1.9.1 on linux-gnu.

debug info:

00:37:46 zsx:~>sudo gdb wget
GNU gdb 6.3-debian
Copyright 2004 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 "i386-linux"...(no debugging symbols found)
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".

(gdb) set args -N -P "/var/cache/apt" -O
"/var/cache/apt/archive.ubuntu.org.cn_ubuntu-cn_dists_ubuntu.org.cn_Contents-i386.gz"
"http://archive.ubuntu.org.cn/ubuntu-cn/dists/ubuntu.org.cn/Contents-i386.gz"
(gdb) r
Starting program: /usr/bin/wget -N -P "/var/cache/apt" -O
"/var/cache/apt/archive.ubuntu.org.cn_ubuntu-cn_dists_ubuntu.org.cn_Contents-i386.gz"
"http://archive.ubuntu.org.cn/ubuntu-cn/dists/ubuntu.org.cn/Contents-i386.gz"
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
DEBUG output created by Wget 1.9.1 on linux-gnu.

--00:39:04--  http://archive.ubuntu.org.cn/ubuntu-cn/dists/ubuntu.org.cn/Contents-i386.gz
           => `/var/cache/apt/archive.ubuntu.org.cn_ubuntu-cn_dists_ubuntu.org.cn_Contents-i386.gz'
Resolving archive.ubuntu.org.cn... (no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
211.148.131.7
Caching archive.ubuntu.org.cn => 211.148.131.7
Connecting to archive.ubuntu.org.cn[211.148.131.7]:80... connected.
Created socket 7.
Releasing 0x80a9580 (new refcount 1).
---request begin---
GET /ubuntu-cn/dists/ubuntu.org.cn/Contents-i386.gz HTTP/1.0
User-Agent: Wget/1.9.1
Host: archive.ubuntu.org.cn
Accept: */*
Connection: Keep-Alive

---request end---
HTTP request sent, awaiting response... HTTP/1.1 404 Not Found
Date: Fri, 01 Apr 2005 16:39:17 GMT

 2 Date: Fri, 01 Apr 2005 16:39:17 GMTServer: Apache/2.0.53 (Ubuntu)
mod_fastcgi/2.4.2 PHP/4.3.10-2ubuntu4

 3 Server: Apache/2.0.53 (Ubuntu) mod_fastcgi/2.4.2
PHP/4.3.10-2ubuntu4Content-Length: 244

 4 Content-Length: 244Keep-Alive: timeout=15, max=100

 5 Keep-Alive: timeout=15, max=100Connection: Keep-Alive

 6 Connection: Keep-AliveContent-Type: text/html; charset=iso-8859-1

 7 Content-Type: text/html; charset=iso-8859-1


Program received signal SIGSEGV, Segmentation fault.
0xb7dede44 in mallopt () from /lib/tls/i686/cmov/libc.so.6
(gdb) bt
#0  0xb7dede44 in mallopt () from /lib/tls/i686/cmov/libc.so.6
#1  0xb7dedd44 in mallopt () from /lib/tls/i686/cmov/libc.so.6
#2  0xb7decc83 in free () from /lib/tls/i686/cmov/libc.so.6
#3  0xb7de4691 in vasprintf () from /lib/tls/i686/cmov/libc.so.6
#4  0x080623e6 in ?? ()
#5  0xbfffdfbc in ?? ()
#6  0x080754e0 in _IO_stdin_used ()
#7  0xbfffe0b4 in ?? ()
#8  0xbfffe308 in ?? ()
#9  0xbffff764 in ?? ()
#10 0xb7ea8330 in timezone () from /lib/tls/i686/cmov/libc.so.6
#11 0xbfffdfc8 in ?? ()
#12 0x080a9800 in ?? ()
#13 0xb7ea0280 in _IO_2_1_stdout_ () from /lib/tls/i686/cmov/libc.so.6
#14 0xb7ea0280 in _IO_2_1_stdout_ () from /lib/tls/i686/cmov/libc.so.6
#15 0x00000080 in ?? ()
#16 0xbfffdfd0 in ?? ()
#17 0xbfffe000 in ?? ()
#18 0xb7ea0280 in _IO_2_1_stdout_ () from /lib/tls/i686/cmov/libc.so.6
#19 0x08077126 in _IO_stdin_used ()
#20 0x080a9bf0 in ?? ()
#21 0xbffff764 in ?? ()
#22 0x00000001 in ?? ()
---Type <return> to continue, or q <return> to quit---
#23 0xbfffdff8 in ?? ()
#24 0x080a9bf0 in ?? ()
#25 0xb7ea0280 in _IO_2_1_stdout_ () from /lib/tls/i686/cmov/libc.so.6
#26 0x00000001 in ?? ()
#27 0x00000080 in ?? ()
#28 0xbfffe000 in ?? ()
#29 0xbfff000a in ?? ()
#30 0xb7ea0280 in _IO_2_1_stdout_ () from /lib/tls/i686/cmov/libc.so.6
#31 0x08077126 in _IO_stdin_used ()
#32 0x080aa910 in ?? ()
#33 0x682f7478 in ?? ()
#34 0x00000001 in ?? ()
#35 0x61686320 in ?? ()
#36 0x080aa910 in ?? ()
#37 0xb7eaa980 in ?? ()
#38 0xffffffd8 in ?? ()
#39 0xb7eaa96c in ?? ()
#40 0xbffff4e0 in ?? ()
#41 0xbffff764 in ?? ()
#42 0xb7ea8330 in timezone () from /lib/tls/i686/cmov/libc.so.6
#43 0xbfffe058 in ?? ()
#44 0x080576e7 in ?? ()
#45 0x0809c7c0 in ?? ()
---Type <return> to continue, or q <return> to quit---
#46 0x080a9698 in ?? ()
#47 0xb7e42a23 in write () from /lib/tls/i686/cmov/libc.so.6
#48 0x4ea39870 in ?? ()
#49 0xbffff4e0 in ?? ()
#50 0xbfffe0a8 in ?? ()
#51 0x08062722 in ?? ()
#52 0xbfffe080 in ?? ()
#53 0x080754e0 in _IO_stdin_used ()
#54 0xbfffe0b4 in ?? ()
#55 0xb7eaa980 in ?? ()
#56 0x080a95e0 in ?? ()
#57 0x00000002 in ?? ()
#58 0x080576cf in ?? ()
#59 0x080a9658 in ?? ()
#60 0x00000000 in ?? ()
#61 0x00000000 in ?? ()
#62 0x00000000 in ?? ()
#63 0x08057155 in ?? ()
#64 0x080a95e0 in ?? ()
#65 0x0809c7c0 in ?? ()
#66 0xb7e5b918 in inet_addr () from /lib/tls/i686/cmov/libc.so.6
Previous frame inner to this frame (corrupt stack?)
(gdb)

-- 
Best regards

Shixin Zeng




More information about the ubuntu-users mailing list