unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Guile 2.0 eating memory on ARM
@ 2011-03-30 22:16 Neil Jerram
  2011-03-31  2:00 ` nalaginrut
  2011-03-31 20:18 ` Ludovic Courtès
  0 siblings, 2 replies; 6+ messages in thread
From: Neil Jerram @ 2011-03-30 22:16 UTC (permalink / raw)
  To: guile-devel

Hi there...

I think I've successfully cross-compiled Guile (stable-2.0, e309f3bf9e)
for my Freerunner phone.  However, when I run it, it just keeps
allocating memory until the OOM killer kills it:

root@om-gta02 ~ # guile -c 3
Killed
root@om-gta02 ~ # guile
Killed

and if I strace it, the log ends with lots of repetitions of:

brk(0x590f000)                          = 0x510f000                             
mmap2(0x40fd2000, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE, 5, 0) = 0x40fd2000  
mmap2(0x40fe2000, 8388608, PROT_READ|PROT_WRITE, MAP_PRIVATE, 5, 0) = -1 ENOMEM 

I don't have any more detailed investigation or solutions yet.  But in
case anyone else is in a similar area - let's compare notes.

Also a couple of notes to connect back with previous threads about
cross-compiling:

- I have some more patches to allow the running of guile and guile-tools
  during the build.  I'll post those probably tomorrow, and also compare
  them with Jan's series.

- Following the discussion about a cross version of `guile-tools
  compile', I realized that the Freerunner ARM platform is
  little-endian, and hence the .go files should be identical to those
  for x86.  Therefore, although I was going to look at adding a target
  type in the way that Ludo and Andy agreed, I don't actually need to do
  that yet.

  (Is that right?  In any case, it definitely isn't relevant to the
  memory eating problem, because the strace shows that guile hasn't yet
  tried to open any .scm or .go files.)

Regards,
    Neil



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-04-11 21:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-30 22:16 Guile 2.0 eating memory on ARM Neil Jerram
2011-03-31  2:00 ` nalaginrut
2011-03-31 19:08   ` Neil Jerram
2011-03-31 20:18 ` Ludovic Courtès
2011-03-31 21:36   ` Neil Jerram
2011-04-11 21:00     ` Ludovic Courtès

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).