[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#691709: gccgo: Concurrent pi example runs out of memory



Package: gccgo-4.7
Version: 4.7.2-4
Severity: normal

Dear Maintainer,

Compiling and running the "concurrent pi" example from golang.org under
PowerPC results in the following error (cpi.go below contains concurrent pi
example code):

----
$ gccgo-4.7 cpi.go 
~
$ ./a.out 
runtime: memory allocated by OS (0x9ff57000) not in usable range [0x20100000,0xa0100000)
runtime: out of memory: cannot allocate 2097152-byte block (1739587584 in use)
throw: out of memory

goroutine 1 [running]:

goroutine 2 [syscall]:
no stack trace available

goroutine 3 [runnable]:
panic during panic
$ echo $?
3
----

This doesn't happen with the same version of gccgo under x86_64.  The host has
1+ GiB RAM + 2 GiB swap (mostly free) so I don't think it's an actual memory
shortage.  Nonetheless, lowering the number of spawned goroutines to 825 makes
the program run (> 825 crashes it, all regardless of free system memory).

Thanks!

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: powerpc (ppc)

Kernel: Linux 3.2.0-4-powerpc
Locale: LANG=ca_ES.UTF-8, LC_CTYPE=ca_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gccgo-4.7 depends on:
ii  gcc-4.7       4.7.2-4
ii  gcc-4.7-base  4.7.2-4
ii  libc6         2.13-35
ii  libc6-dev     2.13-35
ii  libgmp10      2:5.0.5+dfsg-2
ii  libgo0        4.7.2-4
ii  libmpc2       0.9-4
ii  libmpfr4      3.1.0-5
ii  zlib1g        1:1.2.7.dfsg-13

gccgo-4.7 recommends no packages.

Versions of packages gccgo-4.7 suggests:
ii  gccgo-4.7-doc  4.7.2-1
ii  libgo0-dbg     4.7.2-4

-- no debconf information


Reply to: