Skip to content
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

cmd/compile: fatal error: runtime: cannot map pages in arena address space #13903

Closed
visualfc opened this issue Jan 11, 2016 · 10 comments
Closed
Milestone

Comments

@visualfc
Copy link

go version: go version go1.5.2 windows/386
go version: go1.6beta1 windows/386
operator system : windows xp

build pkg https://github.com/visualfc/goqt
Go1.4.2 compile correctly. On some machines Go1.5.2 dump fatal error: runtime: cannot map pages in arena address space and Go1.6 beta1 dump fatal error: out of memory

go1.5.2 build

go.exe build 
# github.com/visualfc/goqt/ui
fatal error: runtime: cannot map pages in arena address space

runtime stack:
runtime.throw(0x7b3040, 0x30)
    c:/go/src/runtime/panic.go:527 +0x7f
runtime.sysMap(0x41c10000, 0x100000, 0x314cfd01, 0xbb2378)
    c:/go/src/runtime/mem_windows.go:112 +0x78
runtime.mHeap_SysAlloc(0xb23640, 0x100000, 0x0)
    c:/go/src/runtime/malloc.go:426 +0x121
runtime.mHeap_Grow(0xb23640, 0x8, 0x0)
    c:/go/src/runtime/mheap.go:628 +0x52
runtime.mHeap_AllocSpanLocked(0xb23640, 0x1, 0x31c6eaa8)
    c:/go/src/runtime/mheap.go:532 +0x574
runtime.mHeap_Alloc_m(0xb23640, 0x1, 0x3, 0x0, 0x31c6eaa8)
    c:/go/src/runtime/mheap.go:425 +0x281
runtime.mHeap_Alloc.func1()
    c:/go/src/runtime/mheap.go:484 +0x3d
runtime.systemstack(0x314cfee0)
    c:/go/src/runtime/asm_386.s:283 +0x81
runtime.mHeap_Alloc(0xb23640, 0x1, 0x3, 0x100, 0x2000)
    c:/go/src/runtime/mheap.go:485 +0x5a
runtime.mCentral_Grow(0xb27fb0, 0x0)
    c:/go/src/runtime/mcentral.go:190 +0x8e
runtime.mCentral_CacheSpan(0xb27fb0, 0x31c6eaa8)
    c:/go/src/runtime/mcentral.go:86 +0x439
runtime.mCache_Refill(0x31350254, 0x3, 0x31c6eaa8)
    c:/go/src/runtime/mcache.go:118 +0xae
runtime.mallocgc.func2()
    c:/go/src/runtime/malloc.go:614 +0x2b
runtime.systemstack(0x11350000)
    c:/go/src/runtime/asm_386.s:267 +0x57
runtime.mstart()
    c:/go/src/runtime/proc1.go:668

goroutine 1 [running]:
runtime.systemstack_switch()
    c:/go/src/runtime/asm_386.s:222 fp=0x18b0b120 sp=0x18b0b11c
runtime.mallocgc(0x20, 0x74d500, 0x0, 0x760540)
    c:/go/src/runtime/malloc.go:615 +0x65a fp=0x18b0b188 sp=0x18b0b120
runtime.newobject(0x74d500, 0x713ac0)
    c:/go/src/runtime/malloc.go:763 +0x41 fp=0x18b0b19c sp=0x18b0b188
cmd/compile/internal/gc.(*Node).Convconst(0x41c0be60, 0x41c0bf20, 0x11370d80)
    c:/go/src/cmd/compile/internal/gc/const.go:1457 +0x130 fp=0x18b0b2a8 sp=0x18b0b19c
cmd/compile/internal/x86.gmove(0x41c0be60, 0x41bfd9e0)
    c:/go/src/cmd/compile/internal/x86/gsubr.go:793 +0x360 fp=0x18b0b368 sp=0x18b0b2a8
cmd/compile/internal/gc.cgen_wb(0x41c0be60, 0x41bfd9e0, 0xbadc00)
    c:/go/src/cmd/compile/internal/gc/cgen.go:252 +0x3c41 fp=0x18b0b578 sp=0x18b0b368
cmd/compile/internal/gc.Cgen(0x41c0be60, 0x41bfd9e0)
    c:/go/src/cmd/compile/internal/gc/cgen.go:19 +0x2e fp=0x18b0b588 sp=0x18b0b578
cmd/compile/internal/gc.Clearslim(0x41bfd9e0)
    c:/go/src/cmd/compile/internal/gc/gen.go:367 +0x165 fp=0x18b0b600 sp=0x18b0b588
cmd/compile/internal/gc.Cgen_as_wb(0x41bfd9e0, 0x1d51cb40, 0x0)
    c:/go/src/cmd/compile/internal/gc/gen.go:947 +0x1aa fp=0x18b0b630 sp=0x18b0b600
cmd/compile/internal/gc.Cgen_as(0x41bfd9e0, 0x1d51cb40)
    c:/go/src/cmd/compile/internal/gc/gen.go:907 +0x2e fp=0x18b0b640 sp=0x18b0b630
cmd/compile/internal/gc.gen(0x41bfda40)
    c:/go/src/cmd/compile/internal/gc/gen.go:857 +0x17b fp=0x18b0b6f0 sp=0x18b0b640
cmd/compile/internal/gc.Genlist(0x41bf09a0)
    c:/go/src/cmd/compile/internal/gc/gen.go:219 +0x2d fp=0x18b0b6f8 sp=0x18b0b6f0
cmd/compile/internal/gc.cgen_call(0x1543a0c0, 0x0)
    c:/go/src/cmd/compile/internal/gc/cgen.go:2515 +0x97 fp=0x18b0b718 sp=0x18b0b6f8
cmd/compile/internal/gc.Igen(0x1543a0c0, 0x41c0b380, 0x0)
    c:/go/src/cmd/compile/internal/gc/cgen.go:1676 +0x11e fp=0x18b0b758 sp=0x18b0b718
cmd/compile/internal/gc.componentgen_wb(0x1543a0c0, 0x1543a180, 0x41c0b000, 0x41c0b000)
    c:/go/src/cmd/compile/internal/gc/gen.go:1141 +0x7b4 fp=0x18b0b82c sp=0x18b0b758
cmd/compile/internal/gc.sgen_wb(0x1543a0c0, 0x1543a180, 0x8, 0x0, 0x0)
    c:/go/src/cmd/compile/internal/gc/cgen.go:2272 +0x386 fp=0x18b0b8b0 sp=0x18b0b82c
cmd/compile/internal/gc.cgen_wb(0x1543a0c0, 0x1543a180, 0x0)
    c:/go/src/cmd/compile/internal/gc/cgen.go:86 +0x3ce fp=0x18b0bac0 sp=0x18b0b8b0
cmd/compile/internal/gc.Cgen_as_wb(0x1543a180, 0x1543a0c0, 0x0)
    c:/go/src/cmd/compile/internal/gc/gen.go:956 +0x138 fp=0x18b0baf0 sp=0x18b0bac0
cmd/compile/internal/gc.Cgen_as(0x1543a180, 0x1543a0c0)
    c:/go/src/cmd/compile/internal/gc/gen.go:907 +0x2e fp=0x18b0bb00 sp=0x18b0baf0
cmd/compile/internal/gc.gen(0x41c0a000)
    c:/go/src/cmd/compile/internal/gc/gen.go:857 +0x17b fp=0x18b0bbb0 sp=0x18b0bb00
cmd/compile/internal/gc.Genlist(0x41bf08b0)
    c:/go/src/cmd/compile/internal/gc/gen.go:219 +0x2d fp=0x18b0bbb8 sp=0x18b0bbb0
cmd/compile/internal/gc.compile(0x15437500)
    c:/go/src/cmd/compile/internal/gc/pgen.go:471 +0xa69 fp=0x18b0bcf4 sp=0x18b0bbb8
cmd/compile/internal/gc.funccompile(0x15437500)
    c:/go/src/cmd/compile/internal/gc/dcl.go:1484 +0x198 fp=0x18b0bd30 sp=0x18b0bcf4
cmd/compile/internal/gc.Main()
    c:/go/src/cmd/compile/internal/gc/lex.go:473 +0x1a08 fp=0x18b0beb0 sp=0x18b0bd30
cmd/compile/internal/x86.Main()
    c:/go/src/cmd/compile/internal/x86/galign.go:108 +0x53e fp=0x18b0bf1c sp=0x18b0beb0
main.main()
    c:/go/src/cmd/compile/main.go:24 +0xb2 fp=0x18b0bf88 sp=0x18b0bf1c
runtime.main()
    c:/go/src/runtime/proc.go:111 +0x234 fp=0x18b0bfb0 sp=0x18b0bf88
runtime.goexit()
    c:/go/src/runtime/asm_386.s:1662 +0x1 fp=0x18b0bfb4 sp=0x18b0bfb0

go1.6 beta1 build

go.exe build 
# github.com/visualfc/goqt/ui
fatal error: out of memory

runtime stack:
runtime.throw(0x7b2190, 0xd)
    c:/go/src/runtime/panic.go:530 +0x7f
runtime.(*mcache).refill(0x320000, 0x1, 0x10f84210)
    c:/go/src/runtime/mcache.go:121 +0xce
runtime.mallocgc.func2()
    c:/go/src/runtime/malloc.go:638 +0x2b
runtime.systemstack(0xbea3a0)
    c:/go/src/runtime/asm_386.s:313 +0x5e
runtime.mstart()
    c:/go/src/runtime/proc.go:1042

goroutine 1 [running]:
runtime.systemstack_switch()
    c:/go/src/runtime/asm_386.s:267 fp=0x51a2d878 sp=0x51a2d874
runtime.mallocgc(0x8, 0x746fe0, 0x0, 0x14)
    c:/go/src/runtime/malloc.go:639 +0x6ca fp=0x51a2d8e4 sp=0x51a2d878
runtime.newobject(0x746fe0, 0x10fd8000)
    c:/go/src/runtime/malloc.go:777 +0x41 fp=0x51a2d8f8 sp=0x51a2d8e4
runtime.convT2E(0x746fe0, 0x10f843f8, 0x0, 0x0, 0x0)
    c:/go/src/runtime/iface.go:140 +0x89 fp=0x51a2d90c sp=0x51a2d8f8
cmd/compile/internal/gc.symfmt(0x1196e880, 0x0, 0x0, 0x0)
    c:/go/src/cmd/compile/internal/gc/fmt.go:439 +0x870 fp=0x51a2d968 sp=0x51a2d90c
cmd/compile/internal/gc.Sconv(0x1196e880, 0x0, 0x0, 0x0)
    c:/go/src/cmd/compile/internal/gc/fmt.go:1603 +0x130 fp=0x51a2d998 sp=0x51a2d968
cmd/compile/internal/gc.dumpexportvar(0x1196e880)
    c:/go/src/cmd/compile/internal/gc/export.go:264 +0x2f0 fp=0x51a2da24 sp=0x51a2d998
cmd/compile/internal/gc.dumpsym(0x1196e880)
    c:/go/src/cmd/compile/internal/gc/export.go:354 +0xf5 fp=0x51a2da74 sp=0x51a2da24
cmd/compile/internal/gc.dumpexport()
    c:/go/src/cmd/compile/internal/gc/export.go:421 +0x35f fp=0x51a2dbec sp=0x51a2da74
cmd/compile/internal/gc.dumpobj()
    c:/go/src/cmd/compile/internal/gc/obj.go:41 +0x510 fp=0x51a2dd14 sp=0x51a2dbec
cmd/compile/internal/gc.Main()
    c:/go/src/cmd/compile/internal/gc/lex.go:495 +0x1ce0 fp=0x51a2dea8 sp=0x51a2dd14
cmd/compile/internal/x86.Main()
    c:/go/src/cmd/compile/internal/x86/galign.go:108 +0x53e fp=0x51a2df14 sp=0x51a2dea8
main.main()
    c:/go/src/cmd/compile/main.go:30 +0x117 fp=0x51a2df80 sp=0x51a2df14
runtime.main()
    c:/go/src/runtime/proc.go:185 +0x234 fp=0x51a2dfa8 sp=0x51a2df80
runtime.goexit()
    c:/go/src/runtime/asm_386.s:1583 +0x1 fp=0x51a2dfac sp=0x51a2dfa8
@davecheney
Copy link
Contributor

This sounds like your windows XP machine does not have enough physical
memory or swap file to compile this program. Can you tell us more about
your environment ?

On Mon, 11 Jan 2016, 11:57 visualfc notifications@github.com wrote:

go version: go version go152 windows/386
go version: go16beta1 windows/386
operator system : windows xp

build pkg https://githubcom/visualfc/goqt
Go142 compile correctly On some machines Go152 dump fatal error: runtime:
cannot map pages in arena address space and Go16 beta1 dump fatal error:
out of memory
go152 build

goexe build

githubcom/visualfc/goqt/ui

fatal error: runtime: cannot map pages in arena address space

runtime stack:
runtimethrow(0x7b3040, 0x30)
c:/go/src/runtime/panicgo:527 +0x7f
runtimesysMap(0x41c10000, 0x100000, 0x314cfd01, 0xbb2378)
c:/go/src/runtime/mem_windowsgo:112 +0x78
runtimemHeap_SysAlloc(0xb23640, 0x100000, 0x0)
c:/go/src/runtime/mallocgo:426 +0x121
runtimemHeap_Grow(0xb23640, 0x8, 0x0)
c:/go/src/runtime/mheapgo:628 +0x52
runtimemHeap_AllocSpanLocked(0xb23640, 0x1, 0x31c6eaa8)
c:/go/src/runtime/mheapgo:532 +0x574
runtimemHeap_Alloc_m(0xb23640, 0x1, 0x3, 0x0, 0x31c6eaa8)
c:/go/src/runtime/mheapgo:425 +0x281
runtimemHeap_Allocfunc1()
c:/go/src/runtime/mheapgo:484 +0x3d
runtimesystemstack(0x314cfee0)
c:/go/src/runtime/asm_386s:283 +0x81
runtimemHeap_Alloc(0xb23640, 0x1, 0x3, 0x100, 0x2000)
c:/go/src/runtime/mheapgo:485 +0x5a
runtimemCentral_Grow(0xb27fb0, 0x0)
c:/go/src/runtime/mcentralgo:190 +0x8e
runtimemCentral_CacheSpan(0xb27fb0, 0x31c6eaa8)
c:/go/src/runtime/mcentralgo:86 +0x439
runtimemCache_Refill(0x31350254, 0x3, 0x31c6eaa8)
c:/go/src/runtime/mcachego:118 +0xae
runtimemallocgcfunc2()
c:/go/src/runtime/mallocgo:614 +0x2b
runtimesystemstack(0x11350000)
c:/go/src/runtime/asm_386s:267 +0x57
runtimemstart()
c:/go/src/runtime/proc1go:668

goroutine 1 [running]:
runtimesystemstack_switch()
c:/go/src/runtime/asm_386s:222 fp=0x18b0b120 sp=0x18b0b11c
runtimemallocgc(0x20, 0x74d500, 0x0, 0x760540)
c:/go/src/runtime/mallocgo:615 +0x65a fp=0x18b0b188 sp=0x18b0b120
runtimenewobject(0x74d500, 0x713ac0)
c:/go/src/runtime/mallocgo:763 +0x41 fp=0x18b0b19c sp=0x18b0b188
cmd/compile/internal/gc(*Node)Convconst(0x41c0be60, 0x41c0bf20, 0x11370d80)
c:/go/src/cmd/compile/internal/gc/constgo:1457 +0x130 fp=0x18b0b2a8 sp=0x18b0b19c
cmd/compile/internal/x86gmove(0x41c0be60, 0x41bfd9e0)
c:/go/src/cmd/compile/internal/x86/gsubrgo:793 +0x360 fp=0x18b0b368 sp=0x18b0b2a8
cmd/compile/internal/gccgen_wb(0x41c0be60, 0x41bfd9e0, 0xbadc00)
c:/go/src/cmd/compile/internal/gc/cgengo:252 +0x3c41 fp=0x18b0b578 sp=0x18b0b368
cmd/compile/internal/gcCgen(0x41c0be60, 0x41bfd9e0)
c:/go/src/cmd/compile/internal/gc/cgengo:19 +0x2e fp=0x18b0b588 sp=0x18b0b578
cmd/compile/internal/gcClearslim(0x41bfd9e0)
c:/go/src/cmd/compile/internal/gc/gengo:367 +0x165 fp=0x18b0b600 sp=0x18b0b588
cmd/compile/internal/gcCgen_as_wb(0x41bfd9e0, 0x1d51cb40, 0x0)
c:/go/src/cmd/compile/internal/gc/gengo:947 +0x1aa fp=0x18b0b630 sp=0x18b0b600
cmd/compile/internal/gcCgen_as(0x41bfd9e0, 0x1d51cb40)
c:/go/src/cmd/compile/internal/gc/gengo:907 +0x2e fp=0x18b0b640 sp=0x18b0b630
cmd/compile/internal/gcgen(0x41bfda40)
c:/go/src/cmd/compile/internal/gc/gengo:857 +0x17b fp=0x18b0b6f0 sp=0x18b0b640
cmd/compile/internal/gcGenlist(0x41bf09a0)
c:/go/src/cmd/compile/internal/gc/gengo:219 +0x2d fp=0x18b0b6f8 sp=0x18b0b6f0
cmd/compile/internal/gccgen_call(0x1543a0c0, 0x0)
c:/go/src/cmd/compile/internal/gc/cgengo:2515 +0x97 fp=0x18b0b718 sp=0x18b0b6f8
cmd/compile/internal/gcIgen(0x1543a0c0, 0x41c0b380, 0x0)
c:/go/src/cmd/compile/internal/gc/cgengo:1676 +0x11e fp=0x18b0b758 sp=0x18b0b718
cmd/compile/internal/gccomponentgen_wb(0x1543a0c0, 0x1543a180, 0x41c0b000, 0x41c0b000)
c:/go/src/cmd/compile/internal/gc/gengo:1141 +0x7b4 fp=0x18b0b82c sp=0x18b0b758
cmd/compile/internal/gcsgen_wb(0x1543a0c0, 0x1543a180, 0x8, 0x0, 0x0)
c:/go/src/cmd/compile/internal/gc/cgengo:2272 +0x386 fp=0x18b0b8b0 sp=0x18b0b82c
cmd/compile/internal/gccgen_wb(0x1543a0c0, 0x1543a180, 0x0)
c:/go/src/cmd/compile/internal/gc/cgengo:86 +0x3ce fp=0x18b0bac0 sp=0x18b0b8b0
cmd/compile/internal/gcCgen_as_wb(0x1543a180, 0x1543a0c0, 0x0)
c:/go/src/cmd/compile/internal/gc/gengo:956 +0x138 fp=0x18b0baf0 sp=0x18b0bac0
cmd/compile/internal/gcCgen_as(0x1543a180, 0x1543a0c0)
c:/go/src/cmd/compile/internal/gc/gengo:907 +0x2e fp=0x18b0bb00 sp=0x18b0baf0
cmd/compile/internal/gcgen(0x41c0a000)
c:/go/src/cmd/compile/internal/gc/gengo:857 +0x17b fp=0x18b0bbb0 sp=0x18b0bb00
cmd/compile/internal/gcGenlist(0x41bf08b0)
c:/go/src/cmd/compile/internal/gc/gengo:219 +0x2d fp=0x18b0bbb8 sp=0x18b0bbb0
cmd/compile/internal/gccompile(0x15437500)
c:/go/src/cmd/compile/internal/gc/pgengo:471 +0xa69 fp=0x18b0bcf4 sp=0x18b0bbb8
cmd/compile/internal/gcfunccompile(0x15437500)
c:/go/src/cmd/compile/internal/gc/dclgo:1484 +0x198 fp=0x18b0bd30 sp=0x18b0bcf4
cmd/compile/internal/gcMain()
c:/go/src/cmd/compile/internal/gc/lexgo:473 +0x1a08 fp=0x18b0beb0 sp=0x18b0bd30
cmd/compile/internal/x86Main()
c:/go/src/cmd/compile/internal/x86/galigngo:108 +0x53e fp=0x18b0bf1c sp=0x18b0beb0
mainmain()
c:/go/src/cmd/compile/maingo:24 +0xb2 fp=0x18b0bf88 sp=0x18b0bf1c
runtimemain()
c:/go/src/runtime/procgo:111 +0x234 fp=0x18b0bfb0 sp=0x18b0bf88
runtimegoexit()
c:/go/src/runtime/asm_386s:1662 +0x1 fp=0x18b0bfb4 sp=0x18b0bfb0

go16 beta1 build

goexe build

githubcom/visualfc/goqt/ui

fatal error: out of memory

runtime stack:
runtimethrow(0x7b2190, 0xd)
c:/go/src/runtime/panicgo:530 +0x7f
runtime(*mcache)refill(0x320000, 0x1, 0x10f84210)
c:/go/src/runtime/mcachego:121 +0xce
runtimemallocgcfunc2()
c:/go/src/runtime/mallocgo:638 +0x2b
runtimesystemstack(0xbea3a0)
c:/go/src/runtime/asm_386s:313 +0x5e
runtimemstart()
c:/go/src/runtime/procgo:1042

goroutine 1 [running]:
runtimesystemstack_switch()
c:/go/src/runtime/asm_386s:267 fp=0x51a2d878 sp=0x51a2d874
runtimemallocgc(0x8, 0x746fe0, 0x0, 0x14)
c:/go/src/runtime/mallocgo:639 +0x6ca fp=0x51a2d8e4 sp=0x51a2d878
runtimenewobject(0x746fe0, 0x10fd8000)
c:/go/src/runtime/mallocgo:777 +0x41 fp=0x51a2d8f8 sp=0x51a2d8e4
runtimeconvT2E(0x746fe0, 0x10f843f8, 0x0, 0x0, 0x0)
c:/go/src/runtime/ifacego:140 +0x89 fp=0x51a2d90c sp=0x51a2d8f8
cmd/compile/internal/gcsymfmt(0x1196e880, 0x0, 0x0, 0x0)
c:/go/src/cmd/compile/internal/gc/fmtgo:439 +0x870 fp=0x51a2d968 sp=0x51a2d90c
cmd/compile/internal/gcSconv(0x1196e880, 0x0, 0x0, 0x0)
c:/go/src/cmd/compile/internal/gc/fmtgo:1603 +0x130 fp=0x51a2d998 sp=0x51a2d968
cmd/compile/internal/gcdumpexportvar(0x1196e880)
c:/go/src/cmd/compile/internal/gc/exportgo:264 +0x2f0 fp=0x51a2da24 sp=0x51a2d998
cmd/compile/internal/gcdumpsym(0x1196e880)
c:/go/src/cmd/compile/internal/gc/exportgo:354 +0xf5 fp=0x51a2da74 sp=0x51a2da24
cmd/compile/internal/gcdumpexport()
c:/go/src/cmd/compile/internal/gc/exportgo:421 +0x35f fp=0x51a2dbec sp=0x51a2da74
cmd/compile/internal/gcdumpobj()
c:/go/src/cmd/compile/internal/gc/objgo:41 +0x510 fp=0x51a2dd14 sp=0x51a2dbec
cmd/compile/internal/gcMain()
c:/go/src/cmd/compile/internal/gc/lexgo:495 +0x1ce0 fp=0x51a2dea8 sp=0x51a2dd14
cmd/compile/internal/x86Main()
c:/go/src/cmd/compile/internal/x86/galigngo:108 +0x53e fp=0x51a2df14 sp=0x51a2dea8
mainmain()
c:/go/src/cmd/compile/maingo:30 +0x117 fp=0x51a2df80 sp=0x51a2df14
runtimemain()
c:/go/src/runtime/procgo:185 +0x234 fp=0x51a2dfa8 sp=0x51a2df80
runtimegoexit()
c:/go/src/runtime/asm_386s:1583 +0x1 fp=0x51a2dfac sp=0x51a2dfa8


Reply to this email directly or view it on GitHub
#13903.

@ianlancetaylor
Copy link
Contributor

Can you show us the output of go build -x?

@ianlancetaylor ianlancetaylor added this to the Go1.7 milestone Jan 11, 2016
@visualfc
Copy link
Author

Go1.5.2

go version go1.5.2 windows/386

go env

G:/golang/go1.5.2/bin/go.exe env
set GOARCH=386
set GOBIN=
set GOEXE=.exe
set GOHOSTARCH=386
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=g:\golang\proj
set GORACE=
set GOROOT=g:\golang\go1.5.2
set GOTOOLDIR=g:\golang\go1.5.2\pkg\tool\windows_386
set GO15VENDOREXPERIMENT=
set CC=gcc
set GOGCCFLAGS=-m32 -mthreads -fmessage-length=0
set CXX=g++
set CGO_ENABLED=1

gcc version

g:/golang/tdm-gcc/bin/gcc.exe --version
gcc.exe (tdm-1) 5.1.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

go build -x

work dir [G:/golang/proj/src/github.com/visualfc/goqt/ui]
g:/golang/go1.5.2/bin/go.exe build -x 
WORK=N:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\go-build168655946
mkdir -p $WORK\github.com\visualfc\goqt\ui\_obj\
mkdir -p $WORK\github.com\visualfc\goqt\
cd g:\golang\proj\src\github.com\visualfc\goqt\ui
CGO_LDFLAGS="-g" "-O2" "g:\\golang\\go1.5.2\\pkg\\tool\\windows_386\\cgo.exe" -objdir "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build168655946\\github.com\\visualfc\\goqt\\ui\\_obj\\" -importpath github.com/visualfc/goqt/ui -- -I "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build168655946\\github.com\\visualfc\\goqt\\ui\\_obj\\" cdrv.go cdrv_windows.go
gcc -I "g:\\golang\\proj\\src\\github.com\\visualfc\\goqt\\ui" -m32 -mthreads -fmessage-length=0 -print-libgcc-file-name
gcc -I "g:\\golang\\proj\\src\\github.com\\visualfc\\goqt\\ui" -m32 -mthreads -fmessage-length=0 -I "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build168655946\\github.com\\visualfc\\goqt\\ui\\_obj\\" -g -O2 -o "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build168655946\\github.com\\visualfc\\goqt\\ui\\_obj\\_cgo_main.o" -c "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build168655946\\github.com\\visualfc\\goqt\\ui\\_obj\\_cgo_main.c"
gcc -I "g:\\golang\\proj\\src\\github.com\\visualfc\\goqt\\ui" -m32 -mthreads -fmessage-length=0 -I "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build168655946\\github.com\\visualfc\\goqt\\ui\\_obj\\" -g -O2 -o "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build168655946\\github.com\\visualfc\\goqt\\ui\\_obj\\_cgo_export.o" -c "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build168655946\\github.com\\visualfc\\goqt\\ui\\_obj\\_cgo_export.c"
gcc -I "g:\\golang\\proj\\src\\github.com\\visualfc\\goqt\\ui" -m32 -mthreads -fmessage-length=0 -I "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build168655946\\github.com\\visualfc\\goqt\\ui\\_obj\\" -g -O2 -o "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build168655946\\github.com\\visualfc\\goqt\\ui\\_obj\\cdrv.cgo2.o" -c "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build168655946\\github.com\\visualfc\\goqt\\ui\\_obj\\cdrv.cgo2.c"
gcc -I "g:\\golang\\proj\\src\\github.com\\visualfc\\goqt\\ui" -m32 -mthreads -fmessage-length=0 -I "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build168655946\\github.com\\visualfc\\goqt\\ui\\_obj\\" -g -O2 -o "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build168655946\\github.com\\visualfc\\goqt\\ui\\_obj\\cdrv_windows.cgo2.o" -c "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build168655946\\github.com\\visualfc\\goqt\\ui\\_obj\\cdrv_windows.cgo2.c"
gcc -I "g:\\golang\\proj\\src\\github.com\\visualfc\\goqt\\ui" -m32 -mthreads -fmessage-length=0 -o "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build168655946\\github.com\\visualfc\\goqt\\ui\\_obj\\_cgo_.o" "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build168655946\\github.com\\visualfc\\goqt\\ui\\_obj\\_cgo_main.o" "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build168655946\\github.com\\visualfc\\goqt\\ui\\_obj\\_cgo_export.o" "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build168655946\\github.com\\visualfc\\goqt\\ui\\_obj\\cdrv.cgo2.o" "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build168655946\\github.com\\visualfc\\goqt\\ui\\_obj\\cdrv_windows.cgo2.o" -g -O2
"g:\\golang\\go1.5.2\\pkg\\tool\\windows_386\\cgo.exe" -objdir "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build168655946\\github.com\\visualfc\\goqt\\ui\\_obj\\" -dynpackage ui -dynimport "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build168655946\\github.com\\visualfc\\goqt\\ui\\_obj\\_cgo_.o" -dynout "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build168655946\\github.com\\visualfc\\goqt\\ui\\_obj\\_cgo_import.go"
gcc -I "g:\\golang\\proj\\src\\github.com\\visualfc\\goqt\\ui" -m32 -mthreads -fmessage-length=0 -o "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build168655946\\github.com\\visualfc\\goqt\\ui\\_obj\\_all.o" "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build168655946\\github.com\\visualfc\\goqt\\ui\\_obj\\_cgo_export.o" "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build168655946\\github.com\\visualfc\\goqt\\ui\\_obj\\cdrv.cgo2.o" "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build168655946\\github.com\\visualfc\\goqt\\ui\\_obj\\cdrv_windows.cgo2.o" -g -O2 -Wl,-r -nostdlib -Wl,--start-group -lmingwex -lmingw32 -Wl,--end-group g:/golang/tdm-gcc/bin/../lib/gcc/mingw32/5.1.0/libgcc.a
"g:\\golang\\go1.5.2\\pkg\\tool\\windows_386\\compile.exe" -o "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build168655946\\github.com\\visualfc\\goqt\\ui.a" -trimpath "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build168655946" -p github.com/visualfc/goqt/ui -buildid c4d6bb48e8bd68f023d63db4975a71b0e7c6e09a -D _/g_/golang/proj/src/github.com/visualfc/goqt/ui -I "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build168655946" -pack "g:\\golang\\proj\\src\\github.com\\visualfc\\goqt\\ui\\app.go" "g:\\golang\\proj\\src\\github.com\\visualfc\\goqt\\ui\\qt_enum.go" "g:\\golang\\proj\\src\\github.com\\visualfc\\goqt\\ui\\qt_event.go" "g:\\golang\\proj\\src\\github.com\\visualfc\\goqt\\ui\\qt_gui.go" "g:\\golang\\proj\\src\\github.com\\visualfc\\goqt\\ui\\qt_interface.go" "g:\\golang\\proj\\src\\github.com\\visualfc\\goqt\\ui\\qt_signal.go" "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build168655946\\github.com\\visualfc\\goqt\\ui\\_obj\\_cgo_gotypes.go" "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build168655946\\github.com\\visualfc\\goqt\\ui\\_obj\\cdrv.cgo1.go" "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build168655946\\github.com\\visualfc\\goqt\\ui\\_obj\\cdrv_windows.cgo1.go" "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build168655946\\github.com\\visualfc\\goqt\\ui\\_obj\\_cgo_import.go"
# github.com/visualfc/goqt/ui
fatal error: runtime: cannot map pages in arena address space

runtime stack:
runtime.throw(0x7b3040, 0x30)
    c:/go/src/runtime/panic.go:527 +0x7f
runtime.sysMap(0x41c10000, 0x100000, 0x6fd01, 0xbb2378)
    c:/go/src/runtime/mem_windows.go:112 +0x78
runtime.mHeap_SysAlloc(0xb23640, 0x100000, 0x0)
    c:/go/src/runtime/malloc.go:426 +0x121
runtime.mHeap_Grow(0xb23640, 0x8, 0x0)
    c:/go/src/runtime/mheap.go:628 +0x52
runtime.mHeap_AllocSpanLocked(0xb23640, 0x1, 0x31c32d10)
    c:/go/src/runtime/mheap.go:532 +0x574
runtime.mHeap_Alloc_m(0xb23640, 0x1, 0x7, 0x0, 0x31c32d10)
    c:/go/src/runtime/mheap.go:425 +0x281
runtime.mHeap_Alloc.func1()
    c:/go/src/runtime/mheap.go:484 +0x3d
runtime.systemstack(0x6fe60)
    c:/go/src/runtime/asm_386.s:283 +0x81
runtime.mHeap_Alloc(0xb23640, 0x1, 0x7, 0x100, 0x2000)
    c:/go/src/runtime/mheap.go:485 +0x5a
runtime.mCentral_Grow(0xb282f0, 0x0)
    c:/go/src/runtime/mcentral.go:190 +0x8e
runtime.mCentral_CacheSpan(0xb282f0, 0x4443c8)
    c:/go/src/runtime/mcentral.go:86 +0x439
runtime.mCache_Refill(0x31350000, 0x7, 0x113463c0)
    c:/go/src/runtime/mcache.go:118 +0xae
runtime.mallocgc.func2()
    c:/go/src/runtime/malloc.go:614 +0x2b
runtime.systemstack(0xb16b00)
    c:/go/src/runtime/asm_386.s:267 +0x57
runtime.mstart()
    c:/go/src/runtime/proc1.go:668

goroutine 1 [running]:
runtime.systemstack_switch()
    c:/go/src/runtime/asm_386.s:222 fp=0x18aab214 sp=0x18aab210
runtime.mallocgc(0x60, 0x7649a0, 0x0, 0x3)
    c:/go/src/runtime/malloc.go:615 +0x65a fp=0x18aab27c sp=0x18aab214
runtime.newobject(0x7649a0, 0x6)
    c:/go/src/runtime/malloc.go:763 +0x41 fp=0x18aab290 sp=0x18aab27c
cmd/compile/internal/x86.gmove(0x41bff9e0, 0x41c0be60)
    c:/go/src/cmd/compile/internal/x86/gsubr.go:784 +0x1ee fp=0x18aab350 sp=0x18aab290
cmd/compile/internal/gc.cgen_wb(0x41bff9e0, 0x41c0be60, 0x0)
    c:/go/src/cmd/compile/internal/gc/cgen.go:252 +0x3c41 fp=0x18aab560 sp=0x18aab350
cmd/compile/internal/gc.Cgen(0x41bff9e0, 0x41c0be60)
    c:/go/src/cmd/compile/internal/gc/cgen.go:19 +0x2e fp=0x18aab570 sp=0x18aab560
cmd/compile/internal/gc.Cgen_eface(0x41bfff80, 0x41c0bb00)
    c:/go/src/cmd/compile/internal/gc/gen.go:393 +0x13e fp=0x18aab588 sp=0x18aab570
cmd/compile/internal/gc.cgen_wb(0x41bfff80, 0x41c0a000, 0x0)
    c:/go/src/cmd/compile/internal/gc/cgen.go:53 +0x3dba fp=0x18aab798 sp=0x18aab588
cmd/compile/internal/gc.Cgen_as_wb(0x41c0a000, 0x41bfff80, 0x0)
    c:/go/src/cmd/compile/internal/gc/gen.go:956 +0x138 fp=0x18aab7c8 sp=0x18aab798
cmd/compile/internal/gc.Cgen_as(0x41c0a000, 0x41bfff80)
    c:/go/src/cmd/compile/internal/gc/gen.go:907 +0x2e fp=0x18aab7d8 sp=0x18aab7c8
cmd/compile/internal/gc.gen(0x41c0a060)
    c:/go/src/cmd/compile/internal/gc/gen.go:857 +0x17b fp=0x18aab888 sp=0x18aab7d8
cmd/compile/internal/gc.Genlist(0x41bc7790)
    c:/go/src/cmd/compile/internal/gc/gen.go:219 +0x2d fp=0x18aab890 sp=0x18aab888
cmd/compile/internal/gc.cgen_call(0x1543f4a0, 0x0)
    c:/go/src/cmd/compile/internal/gc/cgen.go:2515 +0x97 fp=0x18aab8b0 sp=0x18aab890
cmd/compile/internal/gc.cgen_wb(0x1543f4a0, 0x41bff620, 0x0)
    c:/go/src/cmd/compile/internal/gc/cgen.go:654 +0x210b fp=0x18aabac0 sp=0x18aab8b0
cmd/compile/internal/gc.Cgen_as_wb(0x41bff620, 0x1543f4a0, 0x0)
    c:/go/src/cmd/compile/internal/gc/gen.go:956 +0x138 fp=0x18aabaf0 sp=0x18aabac0
cmd/compile/internal/gc.Cgen_as(0x41bff620, 0x1543f4a0)
    c:/go/src/cmd/compile/internal/gc/gen.go:907 +0x2e fp=0x18aabb00 sp=0x18aabaf0
cmd/compile/internal/gc.gen(0x41c0a0c0)
    c:/go/src/cmd/compile/internal/gc/gen.go:857 +0x17b fp=0x18aabbb0 sp=0x18aabb00
cmd/compile/internal/gc.Genlist(0x41bc7600)
    c:/go/src/cmd/compile/internal/gc/gen.go:219 +0x2d fp=0x18aabbb8 sp=0x18aabbb0
cmd/compile/internal/gc.compile(0x1543ef60)
    c:/go/src/cmd/compile/internal/gc/pgen.go:471 +0xa69 fp=0x18aabcf4 sp=0x18aabbb8
cmd/compile/internal/gc.funccompile(0x1543ef60)
    c:/go/src/cmd/compile/internal/gc/dcl.go:1484 +0x198 fp=0x18aabd30 sp=0x18aabcf4
cmd/compile/internal/gc.Main()
    c:/go/src/cmd/compile/internal/gc/lex.go:473 +0x1a08 fp=0x18aabeb0 sp=0x18aabd30
cmd/compile/internal/x86.Main()
    c:/go/src/cmd/compile/internal/x86/galign.go:108 +0x53e fp=0x18aabf1c sp=0x18aabeb0
main.main()
    c:/go/src/cmd/compile/main.go:24 +0xb2 fp=0x18aabf88 sp=0x18aabf1c
runtime.main()
    c:/go/src/runtime/proc.go:111 +0x234 fp=0x18aabfb0 sp=0x18aabf88
runtime.goexit()
    c:/go/src/runtime/asm_386.s:1662 +0x1 fp=0x18aabfb4 sp=0x18aabfb0

Go1.6 beta1

go version go1.6beta1 windows/386

go env

G:/golang/go/bin/go.exe env
set GOARCH=386
set GOBIN=
set GOEXE=.exe
set GOHOSTARCH=386
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=g:\golang\proj
set GORACE=
set GOROOT=g:\golang\go
set GOTOOLDIR=g:\golang\go\pkg\tool\windows_386
set GO15VENDOREXPERIMENT=1
set CC=gcc
set GOGCCFLAGS=-m32 -mthreads -fmessage-length=0
set CXX=g++
set CGO_ENABLED=1

gcc version

g:/golang/tdm-gcc/bin/gcc.exe
gcc.exe (tdm-1) 5.1.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

go build -x

work dir [G:/golang/proj/src/github.com/visualfc/goqt/ui]
g:/golang/go/bin/go.exe build -x 
WORK=N:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\go-build909406998
mkdir -p $WORK\github.com\visualfc\goqt\ui\_obj\
mkdir -p $WORK\github.com\visualfc\goqt\
cd g:\golang\proj\src\github.com\visualfc\goqt\ui
CGO_LDFLAGS="-g" "-O2" "g:\\golang\\go\\pkg\\tool\\windows_386\\cgo.exe" -objdir "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build909406998\\github.com\\visualfc\\goqt\\ui\\_obj\\" -importpath github.com/visualfc/goqt/ui -- -I "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build909406998\\github.com\\visualfc\\goqt\\ui\\_obj\\" cdrv.go cdrv_windows.go
gcc -I "g:\\golang\\proj\\src\\github.com\\visualfc\\goqt\\ui" -m32 -mthreads -fmessage-length=0 -I "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build909406998\\github.com\\visualfc\\goqt\\ui\\_obj\\" -g -O2 -o "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build909406998\\github.com\\visualfc\\goqt\\ui\\_obj\\_cgo_main.o" -c "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build909406998\\github.com\\visualfc\\goqt\\ui\\_obj\\_cgo_main.c"
gcc -I "g:\\golang\\proj\\src\\github.com\\visualfc\\goqt\\ui" -m32 -mthreads -fmessage-length=0 -I "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build909406998\\github.com\\visualfc\\goqt\\ui\\_obj\\" -g -O2 -o "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build909406998\\github.com\\visualfc\\goqt\\ui\\_obj\\_cgo_export.o" -c "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build909406998\\github.com\\visualfc\\goqt\\ui\\_obj\\_cgo_export.c"
gcc -I "g:\\golang\\proj\\src\\github.com\\visualfc\\goqt\\ui" -m32 -mthreads -fmessage-length=0 -I "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build909406998\\github.com\\visualfc\\goqt\\ui\\_obj\\" -g -O2 -o "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build909406998\\github.com\\visualfc\\goqt\\ui\\_obj\\cdrv.cgo2.o" -c "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build909406998\\github.com\\visualfc\\goqt\\ui\\_obj\\cdrv.cgo2.c"
gcc -I "g:\\golang\\proj\\src\\github.com\\visualfc\\goqt\\ui" -m32 -mthreads -fmessage-length=0 -I "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build909406998\\github.com\\visualfc\\goqt\\ui\\_obj\\" -g -O2 -o "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build909406998\\github.com\\visualfc\\goqt\\ui\\_obj\\cdrv_windows.cgo2.o" -c "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build909406998\\github.com\\visualfc\\goqt\\ui\\_obj\\cdrv_windows.cgo2.c"
gcc -I "g:\\golang\\proj\\src\\github.com\\visualfc\\goqt\\ui" -m32 -mthreads -fmessage-length=0 -o "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build909406998\\github.com\\visualfc\\goqt\\ui\\_obj\\_cgo_.o" "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build909406998\\github.com\\visualfc\\goqt\\ui\\_obj\\_cgo_main.o" "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build909406998\\github.com\\visualfc\\goqt\\ui\\_obj\\_cgo_export.o" "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build909406998\\github.com\\visualfc\\goqt\\ui\\_obj\\cdrv.cgo2.o" "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build909406998\\github.com\\visualfc\\goqt\\ui\\_obj\\cdrv_windows.cgo2.o" -g -O2
"g:\\golang\\go\\pkg\\tool\\windows_386\\cgo.exe" -objdir "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build909406998\\github.com\\visualfc\\goqt\\ui\\_obj\\" -dynpackage ui -dynimport "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build909406998\\github.com\\visualfc\\goqt\\ui\\_obj\\_cgo_.o" -dynout "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build909406998\\github.com\\visualfc\\goqt\\ui\\_obj\\_cgo_import.go"
gcc -I "g:\\golang\\proj\\src\\github.com\\visualfc\\goqt\\ui" -m32 -mthreads -fmessage-length=0 -o "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build909406998\\github.com\\visualfc\\goqt\\ui\\_obj\\_all.o" "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build909406998\\github.com\\visualfc\\goqt\\ui\\_obj\\_cgo_export.o" "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build909406998\\github.com\\visualfc\\goqt\\ui\\_obj\\cdrv.cgo2.o" "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build909406998\\github.com\\visualfc\\goqt\\ui\\_obj\\cdrv_windows.cgo2.o" -g -O2 -Wl,-r -nostdlib -Wl,--start-group -lmingwex -lmingw32 -Wl,--end-group
"g:\\golang\\go\\pkg\\tool\\windows_386\\compile.exe" -o "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build909406998\\github.com\\visualfc\\goqt\\ui.a" -trimpath "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build909406998" -p github.com/visualfc/goqt/ui -buildid 834f422cc9e7c10144b3d70f8c44de81750f721a -D _/g_/golang/proj/src/github.com/visualfc/goqt/ui -I "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build909406998" -pack "g:\\golang\\proj\\src\\github.com\\visualfc\\goqt\\ui\\app.go" "g:\\golang\\proj\\src\\github.com\\visualfc\\goqt\\ui\\qt_enum.go" "g:\\golang\\proj\\src\\github.com\\visualfc\\goqt\\ui\\qt_event.go" "g:\\golang\\proj\\src\\github.com\\visualfc\\goqt\\ui\\qt_gui.go" "g:\\golang\\proj\\src\\github.com\\visualfc\\goqt\\ui\\qt_interface.go" "g:\\golang\\proj\\src\\github.com\\visualfc\\goqt\\ui\\qt_signal.go" "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build909406998\\github.com\\visualfc\\goqt\\ui\\_obj\\_cgo_gotypes.go" "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build909406998\\github.com\\visualfc\\goqt\\ui\\_obj\\cdrv.cgo1.go" "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build909406998\\github.com\\visualfc\\goqt\\ui\\_obj\\cdrv_windows.cgo1.go" "N:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\go-build909406998\\github.com\\visualfc\\goqt\\ui\\_obj\\_cgo_import.go"
# github.com/visualfc/goqt/ui
fatal error: out of memory

runtime stack:
runtime.throw(0x7b2190, 0xd)
    c:/go/src/runtime/panic.go:530 +0x7f
runtime.(*mcache).refill(0x320000, 0x7, 0x10f84210)
    c:/go/src/runtime/mcache.go:121 +0xce
runtime.mallocgc.func2()
    c:/go/src/runtime/malloc.go:638 +0x2b
runtime.systemstack(0xbea3a0)
    c:/go/src/runtime/asm_386.s:313 +0x5e
runtime.mstart()
    c:/go/src/runtime/proc.go:1042

goroutine 1 [running]:
runtime.systemstack_switch()
    c:/go/src/runtime/asm_386.s:267 fp=0x51a2d6c8 sp=0x51a2d6c4
runtime.mallocgc(0x60, 0x77dce0, 0x0, 0xe)
    c:/go/src/runtime/malloc.go:639 +0x6ca fp=0x51a2d734 sp=0x51a2d6c8
runtime.newobject(0x77dce0, 0x73)
    c:/go/src/runtime/malloc.go:777 +0x41 fp=0x51a2d748 sp=0x51a2d734
cmd/compile/internal/gc.typefmt(0x17959830, 0x0, 0x0, 0x0)
    c:/go/src/cmd/compile/internal/gc/fmt.go:654 +0x15f1 fp=0x51a2d854 sp=0x51a2d748
cmd/compile/internal/gc.Tconv(0x17959830, 0x0, 0x0, 0x0)
    c:/go/src/cmd/compile/internal/gc/fmt.go:1637 +0xeb fp=0x51a2d870 sp=0x51a2d854
cmd/compile/internal/gc.typefmt(0x17959560, 0x20, 0x0, 0x0)
    c:/go/src/cmd/compile/internal/gc/fmt.go:615 +0xc43 fp=0x51a2d97c sp=0x51a2d870
cmd/compile/internal/gc.Tconv(0x17959560, 0x20, 0x0, 0x0)
    c:/go/src/cmd/compile/internal/gc/fmt.go:1637 +0xeb fp=0x51a2d998 sp=0x51a2d97c
cmd/compile/internal/gc.dumpexportvar(0x118fabc0)
    c:/go/src/cmd/compile/internal/gc/export.go:264 +0x314 fp=0x51a2da24 sp=0x51a2d998
cmd/compile/internal/gc.dumpsym(0x118fabc0)
    c:/go/src/cmd/compile/internal/gc/export.go:354 +0xf5 fp=0x51a2da74 sp=0x51a2da24
cmd/compile/internal/gc.dumpexport()
    c:/go/src/cmd/compile/internal/gc/export.go:421 +0x35f fp=0x51a2dbec sp=0x51a2da74
cmd/compile/internal/gc.dumpobj()
    c:/go/src/cmd/compile/internal/gc/obj.go:41 +0x510 fp=0x51a2dd14 sp=0x51a2dbec
cmd/compile/internal/gc.Main()
    c:/go/src/cmd/compile/internal/gc/lex.go:495 +0x1ce0 fp=0x51a2dea8 sp=0x51a2dd14
cmd/compile/internal/x86.Main()
    c:/go/src/cmd/compile/internal/x86/galign.go:108 +0x53e fp=0x51a2df14 sp=0x51a2dea8
main.main()
    c:/go/src/cmd/compile/main.go:30 +0x117 fp=0x51a2df80 sp=0x51a2df14
runtime.main()
    c:/go/src/runtime/proc.go:185 +0x234 fp=0x51a2dfa8 sp=0x51a2df80
runtime.goexit()
    c:/go/src/runtime/asm_386.s:1583 +0x1 fp=0x51a2dfac sp=0x51a2dfa8

@visualfc
Copy link
Author

my test computer is xp Intel Pentium 4 CPU 3.07G, 2G Memory。
But this issues visualfc/goqt#6 is windows10 64bit DDR 8G go 1.5.2 32bit dump same error message.

D:\workspace\golang\src\github.com\visualfc\goqt\ui>go install -v
github.com/visualfc/goqt/ui
# github.com/visualfc/goqt/ui
fatal error: runtime: failed to release pages

runtime stack:
runtime.throw(0x7a44c0, 0x20)
        c:/go/src/runtime/panic.go:527 +0x7f
runtime.sysFree(0x0, 0x10000000, 0xdfd24)
        c:/go/src/runtime/mem_windows.go:86 +0x5b
runtime.mHeap_SysAlloc(0xb23640, 0x100000, 0x0)
        c:/go/src/runtime/malloc.go:418 +0x4a1
runtime.mHeap_Grow(0xb23640, 0x8, 0x0)
        c:/go/src/runtime/mheap.go:628 +0x52
runtime.mHeap_AllocSpanLocked(0xb23640, 0x1, 0x539c6624)
        c:/go/src/runtime/mheap.go:532 +0x574
runtime.mHeap_Alloc_m(0xb23640, 0x1, 0xe, 0x0, 0x539c6624)
        c:/go/src/runtime/mheap.go:425 +0x281
runtime.mHeap_Alloc.func1()
        c:/go/src/runtime/mheap.go:484 +0x3d
runtime.systemstack(0xdfe20)
        c:/go/src/runtime/asm_386.s:283 +0x81
runtime.mHeap_Alloc(0xb23640, 0x1, 0xe, 0x27f0100, 0x15a3)
        c:/go/src/runtime/mheap.go:485 +0x5a
runtime.mCentral_Grow(0xb288a0, 0x0)
        c:/go/src/runtime/mcentral.go:190 +0x8e
runtime.mCentral_CacheSpan(0xb288a0, 0x539c6624)
        c:/go/src/runtime/mcentral.go:86 +0x439
runtime.mCache_Refill(0x3006fc, 0xe, 0x539c6624)
        c:/go/src/runtime/mcache.go:118 +0xae
runtime.mallocgc.func2()
        c:/go/src/runtime/malloc.go:614 +0x2b
runtime.systemstack(0xb16b00)
        c:/go/src/runtime/asm_386.s:267 +0x57
runtime.mstart()
        c:/go/src/runtime/proc1.go:668

goroutine 1 [running]:
runtime.systemstack_switch()
        c:/go/src/runtime/asm_386.s:222 fp=0x659fd608 sp=0x659fd604
runtime.mallocgc(0xd0, 0x760540, 0x0, 0x0)
        c:/go/src/runtime/malloc.go:615 +0x65a fp=0x659fd670 sp=0x659fd608
runtime.newobject(0x760540, 0x20903860)
        c:/go/src/runtime/malloc.go:763 +0x41 fp=0x659fd684 sp=0x659fd670
cmd/internal/obj/x86.doasm(0x1272c000, 0x20903860)
        c:/go/src/cmd/internal/obj/x86/asm6.go:3924 +0x13b1 fp=0x659fd8e4 sp=0x659fd684
cmd/internal/obj/x86.asmins(0x1272c000, 0x20903860)
        c:/go/src/cmd/internal/obj/x86/asm6.go:4320 +0xf74 fp=0x659fd9b4 sp=0x659fd8e4
cmd/internal/obj/x86.span6(0x1272c000, 0x22482120)
        c:/go/src/cmd/internal/obj/x86/asm6.go:1721 +0x923 fp=0x659fda9c sp=0x659fd9b4
cmd/internal/obj.Writeobjdirect(0x1272c000, 0x34d1bbb0)
        c:/go/src/cmd/internal/obj/objfile.go:297 +0x317 fp=0x659fdbf0 sp=0x659fda9c
cmd/compile/internal/gc.dumpobj()
        c:/go/src/cmd/compile/internal/gc/obj.go:96 +0xccb fp=0x659fdd40 sp=0x659fdbf0
cmd/compile/internal/gc.Main()
        c:/go/src/cmd/compile/internal/gc/lex.go:492 +0x1a8d fp=0x659fdec0 sp=0x659fdd40
cmd/compile/internal/x86.Main()
        c:/go/src/cmd/compile/internal/x86/galign.go:108 +0x53e fp=0x659fdf2c sp=0x659fdec0
main.main()
        c:/go/src/cmd/compile/main.go:24 +0xb2 fp=0x659fdf98 sp=0x659fdf2c
runtime.main()
        c:/go/src/runtime/proc.go:111 +0x234 fp=0x659fdfc0 sp=0x659fdf98
runtime.goexit()
        c:/go/src/runtime/asm_386.s:1662 +0x1 fp=0x659fdfc4 sp=0x659fdfc0

D:\workspace\golang\src\github.com\visualfc\goqt\ui>

System: windows10 64bit DDR 8G go 1.5.2 32bit qt 4.8.6

@davecheney
Copy link
Contributor

As I understand it the Windows 32 bit address space is highly fragmented, there is barely 700mb of contiguous space for the heap. It seems possible that this program is to complicated to be compiled using a 32bit compiler.

On 11 Jan 2016, at 17:40, visualfc notifications@github.com wrote:

my test computer is xp Intel Pentium 4 CPU 3.07G, 2G Memory。
But this issues visualfc/goqt#6 is windows10 64bit DDR 8G go 1.5.2 32bit dump same error message.

D:\workspace\golang\src\github.com\visualfc\goqt\ui>go install -v
github.com/visualfc/goqt/ui

github.com/visualfc/goqt/ui

fatal error: runtime: failed to release pages

runtime stack:
runtime.throw(0x7a44c0, 0x20)
c:/go/src/runtime/panic.go:527 +0x7f
runtime.sysFree(0x0, 0x10000000, 0xdfd24)
c:/go/src/runtime/mem_windows.go:86 +0x5b
runtime.mHeap_SysAlloc(0xb23640, 0x100000, 0x0)
c:/go/src/runtime/malloc.go:418 +0x4a1
runtime.mHeap_Grow(0xb23640, 0x8, 0x0)
c:/go/src/runtime/mheap.go:628 +0x52
runtime.mHeap_AllocSpanLocked(0xb23640, 0x1, 0x539c6624)
c:/go/src/runtime/mheap.go:532 +0x574
runtime.mHeap_Alloc_m(0xb23640, 0x1, 0xe, 0x0, 0x539c6624)
c:/go/src/runtime/mheap.go:425 +0x281
runtime.mHeap_Alloc.func1()
c:/go/src/runtime/mheap.go:484 +0x3d
runtime.systemstack(0xdfe20)
c:/go/src/runtime/asm_386.s:283 +0x81
runtime.mHeap_Alloc(0xb23640, 0x1, 0xe, 0x27f0100, 0x15a3)
c:/go/src/runtime/mheap.go:485 +0x5a
runtime.mCentral_Grow(0xb288a0, 0x0)
c:/go/src/runtime/mcentral.go:190 +0x8e
runtime.mCentral_CacheSpan(0xb288a0, 0x539c6624)
c:/go/src/runtime/mcentral.go:86 +0x439
runtime.mCache_Refill(0x3006fc, 0xe, 0x539c6624)
c:/go/src/runtime/mcache.go:118 +0xae
runtime.mallocgc.func2()
c:/go/src/runtime/malloc.go:614 +0x2b
runtime.systemstack(0xb16b00)
c:/go/src/runtime/asm_386.s:267 +0x57
runtime.mstart()
c:/go/src/runtime/proc1.go:668

goroutine 1 [running]:
runtime.systemstack_switch()
c:/go/src/runtime/asm_386.s:222 fp=0x659fd608 sp=0x659fd604
runtime.mallocgc(0xd0, 0x760540, 0x0, 0x0)
c:/go/src/runtime/malloc.go:615 +0x65a fp=0x659fd670 sp=0x659fd608
runtime.newobject(0x760540, 0x20903860)
c:/go/src/runtime/malloc.go:763 +0x41 fp=0x659fd684 sp=0x659fd670
cmd/internal/obj/x86.doasm(0x1272c000, 0x20903860)
c:/go/src/cmd/internal/obj/x86/asm6.go:3924 +0x13b1 fp=0x659fd8e4 sp=0x659fd684
cmd/internal/obj/x86.asmins(0x1272c000, 0x20903860)
c:/go/src/cmd/internal/obj/x86/asm6.go:4320 +0xf74 fp=0x659fd9b4 sp=0x659fd8e4
cmd/internal/obj/x86.span6(0x1272c000, 0x22482120)
c:/go/src/cmd/internal/obj/x86/asm6.go:1721 +0x923 fp=0x659fda9c sp=0x659fd9b4
cmd/internal/obj.Writeobjdirect(0x1272c000, 0x34d1bbb0)
c:/go/src/cmd/internal/obj/objfile.go:297 +0x317 fp=0x659fdbf0 sp=0x659fda9c
cmd/compile/internal/gc.dumpobj()
c:/go/src/cmd/compile/internal/gc/obj.go:96 +0xccb fp=0x659fdd40 sp=0x659fdbf0
cmd/compile/internal/gc.Main()
c:/go/src/cmd/compile/internal/gc/lex.go:492 +0x1a8d fp=0x659fdec0 sp=0x659fdd40
cmd/compile/internal/x86.Main()
c:/go/src/cmd/compile/internal/x86/galign.go:108 +0x53e fp=0x659fdf2c sp=0x659fdec0
main.main()
c:/go/src/cmd/compile/main.go:24 +0xb2 fp=0x659fdf98 sp=0x659fdf2c
runtime.main()
c:/go/src/runtime/proc.go:111 +0x234 fp=0x659fdfc0 sp=0x659fdf98
runtime.goexit()
c:/go/src/runtime/asm_386.s:1662 +0x1 fp=0x659fdfc4 sp=0x659fdfc0

D:\workspace\golang\src\github.com\visualfc\goqt\ui>

System: windows10 64bit DDR 8G go 1.5.2 32bit qt 4.8.6

Reply to this email directly or view it on GitHub.

@alexbrainman
Copy link
Member

I can reproduce this crash. I also made change to cmd/compile so I can see all system allocations.

C:\dev\go\src>git diff
diff --git a/src/runtime/mem_windows.go b/src/runtime/mem_windows.go
index 71be0e6..5d66db5 100644
--- a/src/runtime/mem_windows.go
+++ b/src/runtime/mem_windows.go
@@ -22,6 +22,7 @@ const (
 // which prevents us from allocating more stack.
 //go:nosplit
 func sysAlloc(n uintptr, sysStat *uint64) unsafe.Pointer {
+   print("sysAlloc: n=", hex(n), "\n")
    mSysStatInc(sysStat, n)
    return unsafe.Pointer(stdcall4(_VirtualAlloc, 0, n, _MEM_COMMIT|_MEM_RESERVE, _PAGE_READWRITE))
 }
@@ -96,6 +97,7 @@ func sysFault(v unsafe.Pointer, n uintptr) {
 }

 func sysReserve(v unsafe.Pointer, n uintptr, reserved *bool) unsafe.Pointer {
+   print("sysReserve: n=", hex(n), "\n")
    *reserved = true
    // v is just a hint.
    // First try at v.
C:\dev\go\src>go install -v github.com/visualfc/goqt/ui
github.com/visualfc/goqt/ui
# github.com/visualfc/goqt/ui
sysReserve: n=0x30102000
sysAlloc: n=0x40000
sysAlloc: n=0x10000
sysAlloc: n=0x40000
sysAlloc: n=0x40000
sysAlloc: n=0xafc7c
sysAlloc: n=0x40000
sysAlloc: n=0x40000
sysAlloc: n=0x40000
sysAlloc: n=0x40000
sysAlloc: n=0x18000
sysAlloc: n=0x40000
sysAlloc: n=0x40000
sysAlloc: n=0x40000
sysAlloc: n=0x40000
sysAlloc: n=0x24000
sysAlloc: n=0x40000
sysAlloc: n=0x40000
sysAlloc: n=0x40000
sysAlloc: n=0x36000
sysAlloc: n=0x40000
sysAlloc: n=0x40000
sysAlloc: n=0x40000
sysAlloc: n=0x40000
sysAlloc: n=0x40000
sysAlloc: n=0x40000
sysAlloc: n=0x51000
sysAlloc: n=0x40000
sysAlloc: n=0x40000
sysReserve: n=0x10000000
sysAlloc: n=0x40000
sysAlloc: n=0x40000
sysAlloc: n=0x40000
sysAlloc: n=0x40000
sysAlloc: n=0x40000
sysAlloc: n=0x40000
sysAlloc: n=0x40000
sysAlloc: n=0x79800
sysAlloc: n=0x40000
sysAlloc: n=0x40000
sysAlloc: n=0x40000
sysAlloc: n=0x40000
sysAlloc: n=0x40000
sysAlloc: n=0x40000
sysReserve: n=0x10000000
sysAlloc: n=0x40000
sysAlloc: n=0x40000
sysAlloc: n=0x40000
sysAlloc: n=0x40000
sysAlloc: n=0x40000
sysAlloc: n=0x40000
sysAlloc: n=0x40000
sysAlloc: n=0x40000
sysAlloc: n=0xb6400
sysAlloc: n=0x40000
sysReserve: n=0x10000000
fatal error: out of memory

runtime stack:
runtime.throw(0x7b3f00, 0xd)
        c:/dev/go/src/runtime/panic.go:530 +0x7f
runtime.(*mcache).refill(0x2d0000, 0x16, 0x31a2b8f0)
        c:/dev/go/src/runtime/mcache.go:121 +0xce
runtime.mallocgc.func2()
        c:/dev/go/src/runtime/malloc.go:638 +0x2b
runtime.systemstack(0xbed740)
        c:/dev/go/src/runtime/asm_386.s:313 +0x5e
runtime.mstart()
        c:/dev/go/src/runtime/proc.go:1048

goroutine 1 [running]:
runtime.systemstack_switch()
        c:/dev/go/src/runtime/asm_386.s:267 fp=0x513b714c sp=0x513b7148
runtime.mallocgc(0x1a0, 0x7893a0, 0x0, 0x0)
        c:/dev/go/src/runtime/malloc.go:639 +0x6ca fp=0x513b71b8 sp=0x513b714c
runtime.newarray(0x7893a0, 0x8, 0x3c383b00)
        c:/dev/go/src/runtime/malloc.go:794 +0xbc fp=0x513b71dc sp=0x513b71b8
runtime.makeslice(0x7406c0, 0x8, 0x0, 0x8, 0x0, 0x0, 0x0, 0x0)
        c:/dev/go/src/runtime/slice.go:32 +0x16c fp=0x513b7210 sp=0x513b71dc
cmd/compile/internal/gc.Flowstart(0x51e19110, 0x0, 0x3a62d2a0)
        c:/dev/go/src/cmd/compile/internal/gc/popt.go:271 +0x225 fp=0x513b72a0 sp=0x513b7210
cmd/compile/internal/x86.peep(0x51e19110)
        c:/dev/go/src/cmd/compile/internal/x86/peep.go:83 +0x2d fp=0x513b72c8 sp=0x513b72a0
cmd/compile/internal/gc.regopt(0x51e19110)
        c:/dev/go/src/cmd/compile/internal/gc/reg.go:1389 +0x2e46 fp=0x513b75bc sp=0x513b72c8
cmd/compile/internal/gc.compile(0x2c04cb40)
        c:/dev/go/src/cmd/compile/internal/gc/pgen.go:521 +0xc94 fp=0x513b76f8 sp=0x513b75bc
cmd/compile/internal/gc.funccompile(0x2c04cb40)
        c:/dev/go/src/cmd/compile/internal/gc/dcl.go:1450 +0x198 fp=0x513b7734 sp=0x513b76f8
cmd/compile/internal/gc.genwrapper(0x3d66cfc0, 0x3d6675f0, 0x51e1a200, 0x1)
        c:/dev/go/src/cmd/compile/internal/gc/subr.go:2404 +0xc51 fp=0x513b7838 sp=0x513b7734
cmd/compile/internal/gc.methods(0x3d66cfc0, 0x0, 0x0, 0x0)
        c:/dev/go/src/cmd/compile/internal/gc/reflect.go:345 +0x726 fp=0x513b78e4 sp=0x513b7838
cmd/compile/internal/gc.dextratype(0x2ae5fd80, 0x28, 0x3d66cfc0, 0x1c, 0x28)
        c:/dev/go/src/cmd/compile/internal/gc/reflect.go:479 +0x25 fp=0x513b7934 sp=0x513b78e4
cmd/compile/internal/gc.dtypesym(0x3d66cfc0, 0x3d66cfc0)
        c:/dev/go/src/cmd/compile/internal/gc/reflect.go:1197 +0x303 fp=0x513b7a08 sp=0x513b7934
cmd/compile/internal/gc.dcommontype(0x2ae5fb00, 0x0, 0x177e3ef0, 0x0)
        c:/dev/go/src/cmd/compile/internal/gc/reflect.go:707 +0x741 fp=0x513b7ac8 sp=0x513b7a08
cmd/compile/internal/gc.dtypesym(0x177e3ef0, 0x2adb40c0)
        c:/dev/go/src/cmd/compile/internal/gc/reflect.go:1167 +0xb28 fp=0x513b7b9c sp=0x513b7ac8
cmd/compile/internal/gc.dumptypestructs()
        c:/dev/go/src/cmd/compile/internal/gc/reflect.go:1250 +0x40f fp=0x513b7bfc sp=0x513b7b9c
cmd/compile/internal/gc.dumpobj()
        c:/dev/go/src/cmd/compile/internal/gc/obj.go:76 +0xb6c fp=0x513b7d24 sp=0x513b7bfc
cmd/compile/internal/gc.Main()
        c:/dev/go/src/cmd/compile/internal/gc/lex.go:495 +0x1ce0 fp=0x513b7eb8 sp=0x513b7d24
cmd/compile/internal/x86.Main()
        c:/dev/go/src/cmd/compile/internal/x86/galign.go:108 +0x53e fp=0x513b7f24 sp=0x513b7eb8
main.main()
        c:/dev/go/src/cmd/compile/main.go:30 +0x117 fp=0x513b7f90 sp=0x513b7f24
runtime.main()
        c:/dev/go/src/runtime/proc.go:188 +0x234 fp=0x513b7fb8 sp=0x513b7f90
runtime.goexit()
        c:/dev/go/src/runtime/asm_386.s:1585 +0x1 fp=0x513b7fbc sp=0x513b7fb8

C:\dev\go\src>

I must agree with Dave. You program is too complicated for cmd/compile to fit everything it needs in memory that is available on Windows 32-bit OS. It does not matter how much memory you have in your computer. The problem is that "memory address space" on Windows 32-bit is limited to 2GB, all shared by your program and all DLLs your program use.

Alex

@visualfc
Copy link
Author

Thanks, I now switch to go1.4.2 to compile and develop, this version version can be passed.

@alexbrainman
Copy link
Member

You can also use any computer with Windows 64 bit OS (if you have one). Obviously also you could try and split your package functionality into many smaller packages, if possible.

Alex

@visualfc
Copy link
Author

Thanks, Windows 7 64 bit go1.5.2 compile passed, Linux 32/64 bit (VirtualBox) go1.5.2 compile also the same passed. Only my old windows xp computer request go1.4.2.

@randall77
Copy link
Contributor

I'm going to close this bug. Our compiler is a bit of a memory hog, and that causes problems on 32-bit architectures. Those architectures are memory constrained, and there's not much we can do about that.

We've got lots of other open bugs about the compiler's memory use (a sampling: #15350 and #14775), and progress there will help this issue.

There are available workarounds, including cross-compiling from a 64-bit machine and splitting large function bodies up.

@golang golang locked and limited conversation to collaborators May 10, 2017
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

6 participants