Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkg/runtime tests fail on arm5 #2321

Closed
davecheney opened this issue Sep 30, 2011 · 8 comments
Closed

pkg/runtime tests fail on arm5 #2321

davecheney opened this issue Sep 30, 2011 · 8 comments
Milestone

Comments

@davecheney
Copy link
Contributor

What steps will reproduce the problem?

make -C $GOROOT/src/pkg/runtime test

What is the expected output?

Tests pass

What do you see instead?

make: Entering directory `/home/dfc/go/src/pkg/runtime'
gotest
rm -f _test/runtime.a
rm -f _test/runtime.a
gopack grc _test/runtime.a _gotest_.5 asm.5 atomic.5 cgocall.5 chan.5 closure.5
cpuprof.5 float.5 complex.5 hashmap.5 iface.5 malloc.5 mcache.5 mcentral.5 mem.5
memmove.5 mfinal.5 mfixalloc.5 mgc0.5 mheap.5 mprof.5 msize.5 print.5 proc.5 rune.5
runtime.5 runtime1.5 rt0.5 sema.5 signal.5 sigqueue.5 slice.5 string.5 symtab.5 sys.5
thread.5 traceback.5 memset.5 softfloat.5 vlop.5 vlrt.5
unexpected fault address 0xd7801088
throw: fault
[signal 0xb code=0x1 addr=0xd7801088 pc=0x15aec]

goroutine 3 [running]:
/home/dfc/go/src/pkg/runtime/_xtest_.TestChanSendInterface()
        /home/dfc/go/src/pkg/runtime/chan_test.go:23 +0x1e0
testing.tRunner(0x106171a0, 0x16749c, 0x0)
        /home/dfc/go/src/pkg/testing/testing.go:156 +0x34
created by testing.RunTests
        /home/dfc/go/src/pkg/testing/testing.go:200 +0x554

goroutine 1 [chan receive]:
testing.RunTests(0x10c00, 0x167490, 0x7)
        /home/dfc/go/src/pkg/testing/testing.go:201 +0x570
testing.Main(0x10c00, 0x167490, 0x7, 0x7, 0x16dd90, ...)
        /home/dfc/go/src/pkg/testing/testing.go:168 +0x58
main.main()
        /home/dfc/go/src/pkg/runtime/_testmain.go:63 +0x68
gotest: "./5.out" failed: exit status 2
make: *** [test] Error 2
make: Leaving directory `/home/dfc/go/src/pkg/runtime'

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

5g

Which operating system are you using?

stora(~/go/src) % uname -a
Linux stora.local 2.6.34-rc2-g85354d2 #1 PREEMPT Fri Mar 26 07:21:32 PDT 2010 armv5tel
GNU/Linux

Which revision are you using?  (hg identify)

stora(~/go/src) % hg identify
978acc122f2e+ tip

Please provide any additional information below.

root@stora:~# dmesg | tail -n1
Alignment trap: 5.out (25893) PC=0x000176d0 Instr=0xe5812000 Address=0x1061a072 FSR 0x801

stora(~/go/src/pkg/runtime) % gdb 5.out 
GNU gdb (GDB) 7.3-debian
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://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.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-linux-gnueabi".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>;...
Reading symbols from /home/dfc/go/src/pkg/runtime/5.out...(no debugging symbols
found)...done.
(gdb) r
Starting program: /home/dfc/go/src/pkg/runtime/5.out 

Program received signal SIGSEGV, Segmentation fault.
0x00015aec in runtime.xchg ()
@robpike
Copy link
Contributor

robpike commented Oct 4, 2011

Comment 1:

ARM5, eh?

Owner changed to @rsc.

Status changed to Accepted.

@rsc
Copy link
Contributor

rsc commented Dec 9, 2011

Comment 2:

Labels changed: added priority-later, removed priority-medium.

@davecheney
Copy link
Contributor Author

Comment 3:

Please close this issue. I can no longer reproduce
stora(~/go/src) % hg identify
gcc0b6a29e8fd41+ tip
 stora(~/go/src) % gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabi/4.6/lto-wrapper
Target: arm-linux-gnueabi
Configured with: ../src/configure -v --with-pkgversion='Debian 4.6.2-6'
--with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6
--enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls
--enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes
--enable-plugin --enable-objc-gc --disable-sjlj-exceptions --with-arch=armv4t
--with-float=soft --enable-checking=release --build=arm-linux-gnueabi
--host=arm-linux-gnueabi --target=arm-linux-gnueabi
Thread model: posix
gcc version 4.6.2 (Debian 4.6.2-6) 
Go now builds successfully with /proc/cpu/alignment set to 0

@rsc
Copy link
Contributor

rsc commented Dec 12, 2011

Comment 4:

Labels changed: added priority-go1.

@rsc
Copy link
Contributor

rsc commented Dec 12, 2011

Comment 5:

We've been getting some SIGILL reports on ARM 5 recently,
so I am a little surprised you cannot reproduce the failure.
Does the whole all.bash succeed?

@davecheney
Copy link
Contributor Author

Comment 6:

I'm currently having problems with testing math/rand, which I attribute to the speed of
the machine. I've experienced no issues using +tip on arm5.

@robpike
Copy link
Contributor

robpike commented Jan 13, 2012

Comment 7:

Owner changed to builder@golang.org.

@rsc
Copy link
Contributor

rsc commented Jan 24, 2012

Comment 8:

Status changed to Retracted.

@rsc rsc added this to the Go1 milestone Apr 10, 2015
@rsc rsc removed the priority-go1 label Apr 10, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants