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

runtime: TestBreakpoint does not work on armv5 #8775

Closed
davecheney opened this issue Sep 19, 2014 · 5 comments
Closed

runtime: TestBreakpoint does not work on armv5 #8775

davecheney opened this issue Sep 19, 2014 · 5 comments
Milestone

Comments

@davecheney
Copy link
Contributor

What steps will reproduce the problem?

runtime.TestBreakpoint does not pass on ARMv5 devices. The subprocess it spawns spins
and spins until the build times out (but the spinning child lives on quickly overloading
the machine)

http://build.golang.org/log/dd87c816b650fee49032462c4da255ff5b36d669

What is the expected output? What do you see instead?

A simpler repro is 

package main

import "runtime"

func main() {
        runtime.Breakpoint()
}

dfc@qnap:~/src$ ./bkpt 
SIGQUIT: quit
PC=0x3fca0

goroutine 1 [running]:
runtime.breakpoint()
    /home/dfc/go/src/runtime/asm_arm.s:95 fp=0x1022bfb8 sp=0x1022bfb8
runtime.Breakpoint()
    /home/dfc/go/src/runtime/proc.c:2321 +0x8 fp=0x1022bfbc sp=0x1022bfb8
main.main()
    /home/dfc/src/bkpt.go:6 +0x1c fp=0x1022bfc0 sp=0x1022bfbc
runtime.main()
    /home/dfc/go/src/runtime/proc.go:63 +0x108 fp=0x1022bfe4 sp=0x1022bfc0
runtime.goexit()
    /home/dfc/go/src/runtime/proc.c:1662 fp=0x1022bfe4 sp=0x1022bfe4

goroutine 2 [runnable]:
runtime.forcegchelper()
    /home/dfc/go/src/runtime/proc.go:90
runtime.goexit()
    /home/dfc/go/src/runtime/proc.c:1662

trap    0x6
error   0x0
oldmask 0x0
r0      0x0
r1      0x1022a200
r2      0x0
r3      0x2
r4      0xfffffade
r5      0x1c7ac
r6      0x1022bfdc
r7      0x0
r8      0x1023401c
r9      0x0
r10     0x10200140
fp      0x6adc8
ip      0x0
sp      0x1022bfb8
lr      0x370d0
pc      0x3fca0
cpsr    0x20000010
fault   0x0

Please use labels and text to provide additional information.
@davecheney
Copy link
Contributor Author

Comment 1:

Testing on other arm systems makes me think this is an issue with the armv5 builder, on
an armv7 machine I see the proper trap
--- SIGTRAP {si_signo=SIGTRAP, si_code=0x4, si_pid=68640, si_uid=0} ---
And I've had a report that building on armv6 works.

Status changed to Accepted.

@davecheney
Copy link
Contributor Author

Comment 2:

Looks like this is a kernel bug
https://groups.google.com/a/chromium.org/forum/#!topic/chromium-os-dev/mqUJzkfMyg0
This machine is running the latest available kernel (debian sid)
$ uname -a
Linux qnap 3.14-2-kirkwood #1 Debian 3.14.15-2 (2014-08-09) armv5tel GNU/Linux

@gopherbot
Copy link
Contributor

Comment 3:

CL https://golang.org/cl/144180043 mentions this issue.

@gopherbot
Copy link
Contributor

Comment 4:

CL https://golang.org/cl/146130043 mentions this issue.

@davecheney
Copy link
Contributor Author

Comment 5:

This issue was closed by revision c486d41.

Status changed to Fixed.

@rsc rsc added this to the Go1.4 milestone Apr 14, 2015
@rsc rsc removed the release-go1.4 label Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 25, 2016
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jun 25, 2018
Fixes golang#8775.

Use the illegal instruction suggested by Ian in https://golang.org/cl/144180043/#msg4 on all arm arches.

LGTM=minux
R=golang-codereviews, gobot, rsc
CC=golang-codereviews, iant, minux
https://golang.org/cl/146130043
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jul 9, 2018
Fixes golang#8775.

Use the illegal instruction suggested by Ian in https://golang.org/cl/144180043/#msg4 on all arm arches.

LGTM=minux
R=golang-codereviews, gobot, rsc
CC=golang-codereviews, iant, minux
https://golang.org/cl/146130043
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jul 30, 2018
Fixes golang#8775.

Use the illegal instruction suggested by Ian in https://golang.org/cl/144180043/#msg4 on all arm arches.

LGTM=minux
R=golang-codereviews, gobot, rsc
CC=golang-codereviews, iant, minux
https://golang.org/cl/146130043
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

3 participants