>Synopsis: wget crash
>Category: user
>Environment:
System : OpenBSD 5.6
Details : OpenBSD 5.6-stable (GENERIC) #0: Sat Nov 1 23:51:30 CET
2014
[email protected]:/u/usr/src/sys/arch/i386/compile/GENERIC
Architecture: OpenBSD.i386
Machine : i386
GNU Wget 1.16 built on openbsd5.6.
+digest +https +ipv6 +iri +large-file +nls +ntlm +opie -psl +ssl/openssl
Wgetrc:
/etc/wgetrc (system)
Locale:
/usr/local/share/locale
Compile:
cc -DHAVE_CONFIG_H -DSYSTEM_WGETRC="/etc/wgetrc"
-DLOCALEDIR="/usr/local/share/locale" -I. -I../lib -I../lib
-I/usr/local/include -O2 -pipe
Link:
cc -O2 -pipe -L/usr/local/lib -lssl -lcrypto -lz -lidn -lpcre
/usr/local/lib/libiconv.so.6.0 /usr/local/lib/libintl.so.6.0
/usr/local/lib/libiconv.so.6.0 -lc -Wl,-rpath,/usr/local/lib
ftp-opie.o openssl.o http-ntlm.o ../lib/libgnu.a
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://www.gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Originally written by Hrvoje Niksic <[email protected]>.
Please send bug reports and questions to <[email protected]>.
>Description:
wget crash when using this command:
/usr/local/bin/wget --page-requisites http://rjbs.manxome.org/rubric/entry/2076
--2015-04-21 11:25:38-- http://rjbs.manxome.org/rubric/entry/2076
Resolving rjbs.manxome.org (rjbs.manxome.org)... 70.87.222.20
Connecting to rjbs.manxome.org (rjbs.manxome.org)|70.87.222.20|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ârjbs.manxome.org/rubric/entry/2076â
rjbs.manxome.org/rubric/entry/2076 [ <=>
] 7.90K --.-KB/s in 0.1s
2015-04-21 11:25:38 (73.2 KB/s) - ârjbs.manxome.org/rubric/entry/2076â
saved [8085]
Loading robots.txt; please ignore errors.
--2015-04-21 11:25:38-- http://rjbs.manxome.org/robots.txt
Reusing existing connection to rjbs.manxome.org:80.
HTTP request sent, awaiting response... 200 OK
Length: 88 [text/plain]
Saving to: ârjbs.manxome.org/robots.txtâ
rjbs.manxome.org/robots.txt
100%[=================================================================================>]
88 --.-KB/s in 0s
2015-04-21 11:25:38 (4.66 MB/s) - ârjbs.manxome.org/robots.txtâ saved
[88/88]
Conversion from âUTF-8â to âUTF-8â isn't supported
Segmentation fault (core dumped)
-------------------------
In GDB (with peda):
[----------------------------------registers-----------------------------------]
[29/4555]
EAX: 0x7f6bc880 ("http://rjbs.manxome.org/rubric/style/rubric.css")
EBX: 0x35108074 --> 0x20022f78
ECX: 0x228ea468 --> 0x0
EDX: 0x0
ESI: 0x0
EDI: 0x7f6bc880 ("http://rjbs.manxome.org/rubric/style/rubric.css")
EBP: 0xcfbc0788 --> 0xcfbc0848 --> 0xcfbc0938 --> 0xcfbc0ac8 --> 0xcfbc0b08 -->
0x0
ESP: 0xcfbc074c --> 0x15121060 --> 0xc74c085
EIP: 0x296b9d6
("8\nuT@B\212\b\204\311tL8\nuH@B\212\b\204\311t@8\nu<@B\212\b\204\311t48\nu0@B\212\b\204\311t(8\nu$@B\212\b\204\311t\034\070\nu\030@B\212\b\204\$
11t\020\070\nu\f@B\212\b\204\311t\004\070\nt\240\017\266")
EFLAGS: 0x210202 (carry parity adjust zero sign trap INTERRUPT direction
overflow)
[-------------------------------------code-------------------------------------]
0x296b9d0 <L2>: mov cl,BYTE PTR [eax]
0x296b9d2 <L2+2>: test cl,cl
0x296b9d4 <L2+4>: je 0x296ba2e <L3>
=> 0x296b9d6 <L2+6>: cmp BYTE PTR [edx],cl
0x296b9d8 <L2+8>: jne 0x296ba2e <L3>
0x296b9da <L2+10>: inc eax
0x296b9db <L2+11>: inc edx
0x296b9dc <L2+12>: mov cl,BYTE PTR [eax]
[------------------------------------stack-------------------------------------]
0000| 0xcfbc074c --> 0x15121060 --> 0xc74c085
0004| 0xcfbc0750 --> 0x7f6bc880
("http://rjbs.manxome.org/rubric/style/rubric.css")
0008| 0xcfbc0754 --> 0x0
0012| 0xcfbc0758 --> 0x7
0016| 0xcfbc075c --> 0x295bad2 --> 0x89e0558b
0020| 0xcfbc0760 --> 0x80
0024| 0xcfbc0764 --> 0x35100de0 ("UTF-8")
0028| 0xcfbc0768 --> 0x104d00
[------------------------------------------------------------------------------]
Legend: code, data, rodata, value
Stopped reason: SIGSEGV
L2 () at /u/usr/src/lib/libc/arch/i386/string/strcmp.S:26
26 cmpb %cl,(%edx) /* chars match??? */
>How-To-Repeat:
/usr/local/bin/wget --page-requisites http://rjbs.manxome.org/rubric/entry/2076
>Fix: