Skip to content

runtime: size address space below ulimit #2302

@bradfitz

Description

@bradfitz
Seeing if Go would run on https://www.nearlyfreespeech.net/ (which is super cheap ...
pennies per day, and gives you a shell account that can build Go)


[golangtest ~/go/src]$ uname -a
FreeBSD golangtest.nfshost.com 8.2-RELEASE-p1 FreeBSD 8.2-RELEASE-p1 #3 r222190: Sun May
22 21:32:59 UTC 2011     root@x4:/usr/obj/usr/src/sys/NFSN32  i386


[golangtest ~/go/src]$ hg identify
9fd69d51a3bd tip


[golangtest ~/go/src]$ ./make.bash 
....
install go/types
install go/build
install ../cmd/govet
install ../cmd/cgo
install ../cmd/gofix
install ../cmd/gofmt
install ../cmd/gotest
install ../cmd/gotype
install runtime/cgo
INSTALL FAIL runtime/cgo
gmake[1]: Entering directory `/home/private/go/src/pkg/runtime/cgo'
8g  -p runtime/cgo -o _go_.8 cgo.go 
8c -FVw -o "iscgo.8" iscgo.c
8c -FVw -o "callbacks.8" callbacks.c
echo 'int main() { return 0; }' >_cgo_main.c
gcc -m32 -g -O2 -fPIC -o 386.o -c 386.S
gcc -m32 -g -O2 -fPIC -o freebsd_386.o -c freebsd_386.c
gcc -m32 -g -O2 -fPIC -o util.o -c util.c
gcc -m32 -g -O2 -fPIC -o setenv.o -c setenv.c
8c -FVw -o "freebsd.8" freebsd.c
gcc -m32 -g -O2 -fPIC -o _cgo_main.o -c _cgo_main.c
gcc -m32 -g -fPIC -O2 -o _cgo1_.o _cgo_main.o 386.o freebsd_386.o util.o setenv.o
-lpthread 
cgo -dynimport _cgo1_.o >_obj/_cgo_import.c_ && mv -f _obj/_cgo_import.c_
_obj/_cgo_import.c
throw: runtime: SysReserve returned unaligned address
gmake[1]: *** [_obj/_cgo_import.c] Error 2
gmake[1]: Leaving directory `/home/private/go/src/pkg/runtime/cgo'
gmake: *** [runtime/cgo.install] Error 1
gmake: *** Waiting for unfinished jobs....
gmake: Leaving directory `/home/private/go/src/pkg'


[golangtest ~/go/src]$ ~/go.cgi 
throw: runtime: SysReserve returned unaligned address

Segmentation fault: 11

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions