<pre class="notranslate">Consider this playground program:

<a href="http://play.golang.org/p/0uxQi6r0y7" rel="nofollow">http://play.golang.org/p/0uxQi6r0y7</a>

It does not, of course, produce 2 billion lines of output. At some point the output is
truncated and the program terminated for producing too much output. In my test, the
response JSON object had 43887 elements in the "Events" array.

The javascript running on the page, though, crashes after printing only part of the
response. In my test, it printed 7948 "asdf"s before crashing with
"Uncaught RangeError: Maximum call stack size exceeded". The JS stack trace
indicates a recursive function 'next' at playground.js:59.

Additionally, my browser pegs one core for about 20 seconds while producing even this
much output.

I suggest that the limit on output size be truncated more aggressively or the javascript
be made more efficient.</pre>
<p dir="auto">by <strong><a href="mailto:andrea.fazzi@alcacoop.it">andrea.fazzi@alcacoop.it</a></strong>:</p>
<pre class="notranslate">What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.

1. Run the following program on a Raspberry PI:

<a href="http://play.golang.org/p/oaT1Gm_4sZ" rel="nofollow">http://play.golang.org/p/oaT1Gm_4sZ</a>

What is the expected output?

I expect the application doesn't crash.

What do you see instead?

The application crashes with a SIGILL: illegal instruction. Stacktrace follows:

go run main.go
SIGILL: illegal instruction
PC=0x10c90

main.HomogRotate3D(0x3d4ccccd, 0x0, 0x3f800000, 0x0, 0x0, ...)
    /home/pi/src/raspberry_issue/main.go:12 +0x90 fp=0xb6e3cf2c
main.main()
    /home/pi/src/raspberry_issue/main.go:19 +0x70 fp=0xb6e3cf8c
runtime.main()
    /home/pi/src/go/src/pkg/runtime/proc.c:220 +0x100 fp=0xb6e3cfc0
runtime.goexit()
    /home/pi/src/go/src/pkg/runtime/proc.c:1394 fp=0xb6e3cfc0

goroutine 2 [runnable]:
runtime.MHeap_Scavenger()
    /home/pi/src/go/src/pkg/runtime/mheap.c:439
runtime.goexit()
    /home/pi/src/go/src/pkg/runtime/proc.c:1394

trap    0x6
error   0x0
oldmask 0x0
r0      0x0
r1      0x2
r2      0x0
r3      0x0
r4      0x0
r5      0x0
r6      0x0
r7      0x104c26
r8      0xc24e107e
r9      0x64170
r10     0x10301140
fp      0x407b8
ip      0xb6e3ceb0
sp      0xb6e3cec4
lr      0x29298
pc      0x10c90
cpsr    0x60000010
fault   0x0
exit status 2


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

5g

Which operating system are you using?

$ cat /etc/debian_version 
7.0

$ uname -r
3.6.11-rpi-aufs

Which version are you using?  (run 'go version')

$ go version
go version go1.2 linux/arm

$ cat /proc/cpuinfo
Processor   : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS    : 697.95
Features    : swp half thumb fastmult vfp edsp java tls 
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part    : 0xb76
CPU revision    : 7

Hardware    : BCM2708
Revision    : 000e
Serial      : 00000000b7d2dc6f</pre>