Skip to content

math/rand: test times out on arm when using soft float emulation #3740

@davecheney

Description

@davecheney
Reported by tjyang2001

What steps will reproduce the problem?

0. Obtain a Raspberry Pi
1. export GOARM=5
2. cd go/src;./all.bash

What is the expected output?

test completed

What do you see instead?

ok      log/syslog      0.353s
ok      math    0.991s
ok      math/big        5.878s
ok      math/cmplx      0.253s
panic: test timed out

goroutine 7 [running]:
testing.alarm()
        /usbpub/home/gobuild/go/src/pkg/testing/testing.go:436 +0x5c
created by time.goFunc
        /usbpub/home/gobuild/go/src/pkg/time/sleep.go:94 +0x5c

goroutine 1 [chan receive]:
testing.RunTests(0x10c00, 0x17a850, 0x6, 0x6, 0x31001, ...)
        /usbpub/home/gobuild/go/src/pkg/testing/testing.go:350 +0x784
testing.Main(0x10c00, 0x17a850, 0x6, 0x6, 0x17a790, ...)
        /usbpub/home/gobuild/go/src/pkg/testing/testing.go:285 +0x70
main.main()
        /tmp/go-build294647749/math/rand/_test/_testmain.go:63 +0x88

goroutine 2 [syscall]:
created by runtime.main
        /usbpub/home/gobuild/go/src/pkg/runtime/proc.c:221

goroutine 3 [timer goroutine (idle)]:
created by addtimer
        /usbpub/home/gobuild/go/src/pkg/runtime/ztime_linux_arm.c:72

goroutine 8 [runnable]:
testing.tRunner(0x10632f40, 0x17a874, 0x0)
        /usbpub/home/gobuild/go/src/pkg/testing/testing.go:256
created by testing.RunTests
        /usbpub/home/gobuild/go/src/pkg/testing/testing.go:349 +0x764
FAIL    math/rand       130.702s
ok      mime    0.130s
ok      mime/multipart  1.993s

Which compiler are you using (5g, 6g, 8g, gccgo)?

gobuild@raspberrypi:~/go/bin$ gcc -v
Using built-in specs.
Target: arm-linux-gnueabi
Configured with: ../src/configure -v --with-pkgversion='Debian 4.4.5-8'
--with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.4
--enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --disable-sjlj-exceptions
--enable-checking=release --build=arm-linux-gnueabi --host=arm-linux-gnueabi
--target=arm-linux-gnueabi
Thread model: posix
gcc version 4.4.5 (Debian 4.4.5-8)
gobuild@raspberrypi:~/go/bin$

Which operating system are you using?
gobuild@raspberrypi:~/go/bin$ uname -a
Linux raspberrypi 3.1.9+ #90 Wed Apr 18 18:23:05 BST 2012 armv6l GNU/Linux
gobuild@raspberrypi:~/go/bin$


Which version are you using?  (run 'go version')
gobuild@raspberrypi:~/go/bin$ ./go version
go version weekly.2012-03-27 +7021c8a8a25a
gobuild@raspberrypi:~/go/bin$

Please provide any additional information below.

gobuild@raspberrypi:~/go/bin$ hg id
7021c8a8a25a tip
gobuild@raspberrypi:~/go/bin$

gobuild@raspberrypi:~/go/bin$ head -1  /proc/meminfo
MemTotal:         190836 kB
gobuild@raspberrypi:~/go/bin$

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions