I tried to patch this in to my tree to submit it, but when I run
all.bash the first Go binary (the bootstrap go command) crashes with
runtime: memory allocated by OS (0x2210517000) not in usable range
[0x2103a6000,0x2903a6000)
runtime: out of memory: cannot allocate 585205940224-byte block (1048576 in use)
throw: out of memory
goroutine 1 [running]:
----- stack segment boundary -----
regexp/syntax.(*parser).factor(0x210438000, 0x210439080, 0xa, 0x10, 0x0, ...)
/Users/rsc/g/go/src/pkg/regexp/syntax/parse.go:417 +0x1b74
regexp/syntax.(*parser).collapse(0x210438000, 0x210439010, 0xa, 0xe,
0x210415113, ...)
/Users/rsc/g/go/src/pkg/regexp/syntax/parse.go:347 +0x25d
regexp/syntax.(*parser).alternate(0x210438000, 0x2103a6701, 0x0, 0x0)
/Users/rsc/g/go/src/pkg/regexp/syntax/parse.go:302 +0x1e9
regexp/syntax.(*parser).parseRightParen(0x210438000, 0x6f, 0x6f, 0x290dbe)
/Users/rsc/g/go/src/pkg/regexp/syntax/parse.go:1166 +0x89
regexp/syntax.Parse(0x290d80, 0xbb, 0xd4, 0xffffffffffffffff, 0x3721a0, ...)
/Users/rsc/g/go/src/pkg/regexp/syntax/parse.go:705 +0x5ca
regexp.compile(0x290d80, 0xbb, 0xd4, 0x4, 0xffffffffffffffff, ...)
/Users/rsc/g/go/src/pkg/regexp/regexp.go:134 +0x40
regexp.Compile(0x290d80, 0xbb, 0x53d5c, 0x174948, 0x0, ...)
/Users/rsc/g/go/src/pkg/regexp/regexp.go:107 +0x3b
regexp.MustCompile(0x290d80, 0xbb, 0x2000, 0x210427180, 0xf20bd, ...)
/Users/rsc/g/go/src/pkg/regexp/regexp.go:195 +0x38
go/doc.init(0x0, 0x0, 0x0, 0x0, 0x0, ...)
/Users/rsc/g/go/src/pkg/go/doc/synopsis.go:-1878 +0x8b
main.init()
/Users/rsc/g/go/src/cmd/go/vet.go:37 +0x54
goroutine 2 [runnable]:
created by runtime.main
/Users/rsc/g/go/src/pkg/runtime/proc.c:225
Any ideas?
Russ