<p dir="auto">by <strong>astrange</strong>:</p>
<pre class="notranslate">Running the binary distribution of go 1.2 (or any of its RCs) on our FreeBSD 9.2 servers
immediately crashes. The same applies for go_bootstrap to build it from source.

go 1.1 runs fine.

# uname -a
FreeBSD yyy 9.2-RELEASE FreeBSD 9.2-RELEASE #6: Sun Oct 13 05:14:05 EDT 2013    
xxx@yyy:/usr/obj/usr/src/sys/ZZZ  amd64
# setenv GOROOT `pwd`
# sysctl hw.ncpu
hw.ncpu: 16
# gdb761 ./bin/go
GNU gdb (GDB) 7.6.1 [GDB v7.6.1 for FreeBSD]
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later &lt;<a href="http://gnu.org/licenses/gpl.html&gt;" rel="nofollow">http://gnu.org/licenses/gpl.html&gt;</a>;
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 "x86_64-portbld-freebsd9.2".
For bug reporting instructions, please see:
&lt;<a href="http://www.gnu.org/software/gdb/bugs/&gt;" rel="nofollow">http://www.gnu.org/software/gdb/bugs/&gt;</a>;...
Reading symbols from /usr/home/astrange/go/bin/go...done.
warning: Missing auto-load scripts referenced in section .debug_gdb_scripts
of file /usr/home/astrange/go/bin/go
Use `info auto-load python [REGEXP]' to list them.
(gdb) run
Starting program: /usr/home/astrange/go/./bin/go 
[New LWP 100295]
[New Thread 801407400 (LWP 100295)]

Program received signal SIGBUS, Bus error.
[Switching to Thread 801407400 (LWP 100295)]
0x0000000000476dc7 in runtime.sysctl () at
/usr/local/go/src/pkg/runtime/sys_freebsd_amd64.s:289
289 /usr/local/go/src/pkg/runtime/sys_freebsd_amd64.s: No such file or directory.
(gdb) bt
#0  0x0000000000476dc7 in runtime.sysctl () at
/usr/local/go/src/pkg/runtime/sys_freebsd_amd64.s:289
#1  0x0000000000463847 in getncpu () at /usr/local/go/src/pkg/runtime/os_freebsd.c:35
#2  0x0000000000463b5a in runtime.osinit () at
/usr/local/go/src/pkg/runtime/os_freebsd.c:127
#3  0x0000000000474b00 in _rt0_go () at /usr/local/go/src/pkg/runtime/asm_amd64.s:86
#4  0x0000000000000001 in ?? ()
#5  0x00007fffffffda78 in ?? ()
#6  0x0000000000000001 in ?? ()
#7  0x00007fffffffda78 in ?? ()
#8  0x0000000800b71800 in ?? () from /libexec/ld-elf.so.1
#9  0x0000000800b83000 in ?? ()
#10 0x0000000000000000 in ?? ()
(gdb)</pre>
<pre class="notranslate">What steps will reproduce the problem?

6g bug.go


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

Expected: should compile OK, because r1 is a named return value.

Actual:
bug.go:7: r1 declared and not used


What is your $GOOS?  $GOARCH?
darwin, amd64

Which revision are you using?  (hg identify)
ed4677dbdbbc tip


Please provide any additional information below.</pre>
<p dir="auto">Attachments:</p>
<ol dir="auto">
<li><a href="https://storage.googleapis.com/go-attachment/507/0/bug.go" rel="nofollow">bug.go</a> (162 bytes)</li>
</ol>