Skip to content

runtime: size address space below ulimit #2302

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

Closed
bradfitz opened this issue Sep 23, 2011 · 9 comments
Closed

runtime: size address space below ulimit #2302

bradfitz opened this issue Sep 23, 2011 · 9 comments
Milestone

Comments

@bradfitz
Copy link
Contributor

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
@rsc
Copy link
Contributor

rsc commented Sep 24, 2011

Comment 1:

ulimit -a

@bradfitz
Copy link
Contributor Author

Comment 2:

$ ulimit -a
socket buffer size       (bytes, -b) unlimited
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) 524288
file size               (blocks, -f) unlimited
max locked memory       (kbytes, -l) 131072
max memory size         (kbytes, -m) 131072
open files                      (-n) 200
pipe size            (512 bytes, -p) 1
stack size              (kbytes, -s) 65536
cpu time               (seconds, -t) 120
max user processes              (-u) 500
virtual memory          (kbytes, -v) 262144

@bradfitz
Copy link
Contributor Author

Comment 3:

This is just another case of virtual memory being too small.
Changing subject from "FreeBSD 386 runtime crash".

@robpike
Copy link
Contributor

robpike commented Oct 4, 2011

Comment 4:

Owner changed to @rsc.

Status changed to Accepted.

@rsc
Copy link
Contributor

rsc commented Dec 9, 2011

Comment 6:

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

@rsc
Copy link
Contributor

rsc commented Dec 9, 2011

Comment 7:

Labels changed: added priority-go1.

@robpike
Copy link
Contributor

robpike commented Jan 13, 2012

Comment 8:

Owner changed to builder@golang.org.

@rsc
Copy link
Contributor

rsc commented Jan 24, 2012

Comment 9:

Labels changed: added priority-go1, removed priority-go1.

@rsc
Copy link
Contributor

rsc commented Feb 24, 2012

Comment 10:

This issue was closed by revision 102274a.

Status changed to Fixed.

@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