segfault when downloading with wget (busybox)

Bug #1090457 reported by Antonio Terceiro
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Linaro OpenEmbedded
Fix Released
Low
Andrew McDermott

Bug Description

When trying to download from wget http://releases.linaro.org/12.11/components/toolchain/
binaries/gcc-linaro-aarch64-linux-gnu-4.7-2012.11-1-20121127_linux.tar.bz2 from the 12.11 OE minimal image, I get this:

--------------------8<--------------------8<--------------------8<--------------------8<--------------------8<--------------------8<--------------------8<
root@genericarmv8:~# wget http://releases.linaro.org/12.11/components/toolchain/
binaries/gcc-linaro-aarch64-linux-gnu-4.7-2012.11-1-20121127_linux.tar.bz2
Connecting to releases.linaro.org (91.189.95.16:80)
gcc-linaro-aarch64-l 0% | | 112k 0:09:27 ETA[ 596.830574] wget[591]: unhandled level 3 translation fault (11) at 0x7fa32f0000, esr 0x92000007
[ 596.830646] pgd = ffffffc87fe0e000
[ 596.830702] [7fa32f0000] *pgd=00000008ffd6d003, *pmd=00000008ffd8b003, *pte=0000000000000000
[ 596.830845]
[ 596.830896] Pid: 591, comm: wget
[ 596.830972] CPU: 0 Not tainted (3.6.0-1-linaro-vexpress64 #1~ci+121125151101)
[ 596.831045] PC is at 0x7fa33b0f40
[ 596.831103] LR is at 0x7fa33b0d28
[ 596.831171] pc : [<0000007fa33b0f40>] lr : [<0000007fa33b0d28>] pstate: 20000000
[ 596.831238] sp : 0000007fe6fd4510
[ 596.831293] x29: 0000007fe6fd4510 x28: 0000000000000000
[ 596.831409] x27: 000000000ea29060 x26: 000000000ea26098
[ 596.831524] x25: 000000000ea28fb0 x24: 0000007fa349b000
[ 596.831640] x23: 0000000000001000 x22: 0000000000001000
[ 596.831756] x21: 0000007fa32ef087 x20: 000000000ea26098
[ 596.831872] x19: 000000000ea26098 x18: 0000007fe6fd4280
[ 596.831989] x17: 0000007fa3398d28 x16: 00000000004917e8
[ 596.832104] x15: 0000000000000000 x14: 0000000000002710
[ 596.832220] x13: ffffffffffffffff x12: ffffffffffffffff
[ 596.832337] x11: 000000007fffffff x10: 0000000000000000
[ 596.832451] x9 : 0000000000000000 x8 : 0000000000000000
[ 596.832564] x7 : 0000000000000000 x6 : 0000000000000000
[ 596.832679] x5 : 0000007fa32effe8 x4 : 0000000000000008
[ 596.832793] x3 : 0000000000000038 x2 : 0000000000000014
[ 596.832906] x1 : 0000000000000000 x0 : 000000000ea26ff0
[ 596.833014]
Segmentation fault
root@genericarmv8:~# wget --version
wget: unrecognized option '--version'
BusyBox v1.20.2 (2012-11-24 18:49:59 UTC) multi-call binary.

Usage: wget [-c|--continue] [-s|--spider] [-q|--quiet] [-O|--output-document FILE]
 [--header 'header: value'] [-Y|--proxy on/off] [-P DIR]
 [--no-check-certificate] [-U|--user-agent AGENT] [-T SEC] URL...

root@genericarmv8:~#
--------------------8<--------------------8<--------------------8<--------------------8<--------------------8<--------------------8<--------------------8<

12.11 OE pre-built image (minimal) on Foundation_v8 simulator. Happens all the time with the same command line.
Downloading the Linaro homepage, OTOH, does not trigger this.

--------------------8<--------------------8<--------------------8<--------------------8<--------------------8<--------------------8<--------------------8<
root@genericarmv8:~# wget http://www.linaro.org/
Connecting to www.linaro.org (50.56.81.148:80)
index.html 100% |*******************************| 32156 0:00:00 ETA
root@genericarmv8:~#
--------------------8<--------------------8<--------------------8<--------------------8<--------------------8<--------------------8<--------------------8<

Please let me know is there is any other info I can provide to help debug this.

summary: - segfault in when downloading with wget (busybox)
+ segfault when downloading with wget (busybox)
Revision history for this message
Marcin Juszkiewicz (hrw) wrote :

Please retry with recent images.

Revision history for this message
Fathi Boudra (fboudra) wrote :

Marcin/Antonio, can you reproduce with latest release? Include Soumya to try as well.

Changed in linaro-oe:
assignee: nobody → Marcin Juszkiewicz (hrw)
milestone: none → 13.04
Revision history for this message
Soumya Basak (soumya-basak) wrote :
Revision history for this message
Soumya Basak (soumya-basak) wrote :

Hi, the same issue is reproduced with the latest release as well

OE_minimal builds: http://snapshots.linaro.org/openembedded/pre-built/vexpress64/274/vexpress64-openembedded_minimal-armv8_20130320-274.img.gz

Fathi Boudra (fboudra)
Changed in linaro-oe:
status: New → Confirmed
Revision history for this message
Antonio Terceiro (terceiro) wrote : Re: [Bug 1090457] Re: segfault when downloading with wget (busybox)

Hi Soumya - thanks for testing it! :-)

Revision history for this message
Marcin Juszkiewicz (hrw) wrote :

Booted minimal #286 image with fastmodel<>host networking setup. Fetched 156MB file using wget:

pp.git.tar.gzrmv8:/tmp# wget http://192.168.168.1/git2_github.com.openSUSE.libzypp.git.tar.gz
Connecting to 192.168.168.1 (192.168.168.1:80)
git2_github.com.open 100% |*******************************| 155M 0:00:00 ETA
root@genericarmv8:/tmp#

No segfault. Will try same with #274 image

Revision history for this message
Marcin Juszkiewicz (hrw) wrote :

OK, same on #274 image - no segfault.

Hard to debug when can not reproduce ;(

Revision history for this message
Antonio Terceiro (terceiro) wrote :

in my original comment when I posted the bug, the segfault happened for a given URL but not for another:

http://releases.linaro.org/12.11/components/toolchain/binaries/gcc-linaro-aarch64-linux-gnu-4.7-2012.11-1-20121127_linux.tar.bz2 -> segfault

http://www.linaro.org/ -> no segfault

maybe you are trying specifically URL's that don't cause this?

Revision history for this message
Marcin Juszkiewicz (hrw) wrote :

Maybe I do not want to reconfigure my host system to get forwarding setup for fastmodel?

Revision history for this message
Soumya Basak (soumya-basak) wrote :

with minimal image #286, can not fetch any file from my side.
root@genericarmv8:~# wget http://192.168.168.1/git2_github.com.openSUSE.libzypp.git.tar.gz

Connecting to 192.168.168.1 (192.168.168.1:80)
wget: can't connect to remote host (192.168.168.1): Connection refused
root@genericarmv8:~#

root@genericarmv8:~# wget http://www.linaro.org/
wget: bad address 'www.linaro.org'
root@genericarmv8:~#

Revision history for this message
Marcin Juszkiewicz (hrw) wrote :

Soumya: without configuration of models you will not get network.

Marcin Juszkiewicz (hrw)
Changed in linaro-oe:
status: Confirmed → Opinion
Revision history for this message
Marcin Juszkiewicz (hrw) wrote :

Bug appeared with full licensed fast model which is not a release target.

As there can be many things which can influence bug will stay open to check later.

Changed in linaro-oe:
importance: Undecided → Critical
importance: Critical → Low
status: Opinion → Incomplete
Revision history for this message
Antonio Terceiro (terceiro) wrote :

Actually note that when I reported the bug, it was on *Foundation* v8 model, not the full one.

Fathi Boudra (fboudra)
Changed in linaro-oe:
milestone: 13.04 → 13.05
Fathi Boudra (fboudra)
Changed in linaro-oe:
assignee: Marcin Juszkiewicz (hrw) → nobody
milestone: 13.05 → 13.06
Revision history for this message
Andrew McDermott (frobware) wrote :

I tried to reproduce this with a build from 10th May.

Running my model as:

/home/aim/linaro/Foundation_v8pkg/models/Linux64_GCC-4.1/Foundation_v8 --network-bridge=ARMaim --network bridged --image ~/Downloads/img-foundation.axf --block-device ~/Downloads/vexpress64-openembedded_minimal-armv8_20130510-325.img
img-foundation.axf

I was able to complete the following wget without any SEGV:

wget http://releases.linaro.org/12.11/components/toolchain/binaries/gcc-linaro-aarch64-linux-gnu-4.7-2012.11-1-20121127_linux.tar.bz2

The wget would quite often stall but it did complete.

Revision history for this message
Andrew McDermott (frobware) wrote :

My version of wget was also the same as in #11

root@genericarmv8:/tmp# wget
BusyBox v1.20.2 (2013-05-10 19:34:59 UTC) multi-call binary.

Revision history for this message
Fathi Boudra (fboudra) wrote :

Thanks Andrew. Closing.

Changed in linaro-oe:
assignee: nobody → Andrew McDermott (frobware)
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.