[Bug 906922] Re: qemu-arm-static chroots give copious memory errors when setting up java build dependencies

2012-03-15 Thread Peter Maydell
** Changed in: qemu-linaro
   Status: Fix Committed = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/906922

Title:
  qemu-arm-static chroots give copious memory errors when setting up
  java build dependencies

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu-linaro/+bug/906922/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 906922] Re: qemu-arm-static chroots give copious memory errors when setting up java build dependencies

2012-03-12 Thread Peter Maydell
I've committed to qemu-linaro the default-to-R-on-64-bit-hosts patch (so
Steve, you'll want to drop it from the packaging) and also the followup
patch which fixes the bash issues Loic lists. These will both be in
qemu-linaro 2011.03 (due this Thursday!)


** Changed in: qemu-linaro
   Status: New = Fix Committed

** Changed in: qemu-linaro
Milestone: None = 2012.03

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/906922

Title:
  qemu-arm-static chroots give copious memory errors when setting up
  java build dependencies

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu-linaro/+bug/906922/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 906922] Re: qemu-arm-static chroots give copious memory errors when setting up java build dependencies

2012-03-10 Thread Peter Maydell
Yes, I've seen the bash failures too. They should be fixed by
http://patchwork.ozlabs.org/patch/144476/ which I'm intending to put
into qemu-linaro for next week's release.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/906922

Title:
  qemu-arm-static chroots give copious memory errors when setting up
  java build dependencies

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu-linaro/+bug/906922/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 906922] Re: qemu-arm-static chroots give copious memory errors when setting up java build dependencies

2012-03-09 Thread Nick Moffitt
So currently all of the armel PPA buildds that are in auto-mode on
production launchpad are using qemu-arm-static to run their build
chroots.

On staging I saw a dramatic decrease in the number of OOM-type failures
and catastrophic mmap() failures, with a slight uptick in sig11s (on
different packages, and hard to reproduce via re-builds).  We decided it
was Good Enough For Now and moved things into production.

Probably the best way to stress-test this now would be to run a bunch of
armel PPA builds through production launchpad (say, a precise main
rebuild or something) and examine the build failures.  We definitely
felt that this patch gave a worthwhile improvement over the old
behavior.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/906922

Title:
  qemu-arm-static chroots give copious memory errors when setting up
  java build dependencies

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu-linaro/+bug/906922/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 906922] Re: qemu-arm-static chroots give copious memory errors when setting up java build dependencies

2012-03-09 Thread Loïc Minier
In my case, I'm using qemu-arm-static from precise against an unstable Debian 
armel chroot and that used to work fine but now I get:
bash: xmalloc: ../bash/variables.c:1969: cannot allocate 28 bytes (24576 bytes 
allocated)
when starting bash; if I run sh (which is dash) I don't have the problem.

From sh, I can reproduce the issue:
# bash
bash: xmalloc: ../bash/variables.c:1969: cannot allocate 28 bytes (24576 bytes 
allocated)
# QEMU_RESERVED_VA=0 bash
(unstable-armel)root@bee:~# exit
# QEMU_RESERVED_VA=0xf700 bash
bash: xmalloc: ../bash/variables.c:2159: cannot allocate 26 bytes (24576 bytes 
allocated)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/906922

Title:
  qemu-arm-static chroots give copious memory errors when setting up
  java build dependencies

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu-linaro/+bug/906922/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 906922] Re: qemu-arm-static chroots give copious memory errors when setting up java build dependencies

2012-03-09 Thread Steve Langasek
On Fri, Mar 09, 2012 at 08:35:44PM -, Loïc Minier wrote:
 In my case, I'm using qemu-arm-static from precise against an unstable Debian 
 armel chroot and that used to work fine but now I get:
 bash: xmalloc: ../bash/variables.c:1969: cannot allocate 28 bytes (24576 
 bytes allocated)
 when starting bash; if I run sh (which is dash) I don't have the problem.

 From sh, I can reproduce the issue:
 # bash
 bash: xmalloc: ../bash/variables.c:1969: cannot allocate 28 bytes (24576 
 bytes allocated)
 # QEMU_RESERVED_VA=0 bash
 (unstable-armel)root@bee:~# exit
 # QEMU_RESERVED_VA=0xf700 bash
 bash: xmalloc: ../bash/variables.c:2159: cannot allocate 26 bytes (24576 
 bytes allocated)

Yes, this is one of the known regressions being discussed upstream, from
what I saw.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/906922

Title:
  qemu-arm-static chroots give copious memory errors when setting up
  java build dependencies

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu-linaro/+bug/906922/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 906922] Re: qemu-arm-static chroots give copious memory errors when setting up java build dependencies

2012-03-03 Thread Peter Maydell
I'm not sure. I don't have a feel for whether it has fixed more cases
than it has broken or vice-versa, I'm afraid.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/906922

Title:
  qemu-arm-static chroots give copious memory errors when setting up
  java build dependencies

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu-linaro/+bug/906922/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 906922] Re: qemu-arm-static chroots give copious memory errors when setting up java build dependencies

2012-03-02 Thread Peter Maydell
This workaround turns out to cause some regressions in other cases, for example:
http://comments.gmane.org/gmane.comp.emulators.qemu/138180

which seems to be because when we use -R (either explicitly or
implicitly because of this patch) we tend to map the guest stack
immediately above the guest data/BSS segment. This means brk() will
always fail, which is bad news for guest binaries that rely on it.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/906922

Title:
  qemu-arm-static chroots give copious memory errors when setting up
  java build dependencies

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu-linaro/+bug/906922/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 906922] Re: qemu-arm-static chroots give copious memory errors when setting up java build dependencies

2012-03-02 Thread Steve Langasek
Nick, I think you're certainly exercising qemu-arm-static more than
anyone else at the moment with the autobuilder prototyping.  Are you
seeing different regressions now as a result of this patch?  Should we
consider reverting this patch until there's a clean upstream solution?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/906922

Title:
  qemu-arm-static chroots give copious memory errors when setting up
  java build dependencies

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu-linaro/+bug/906922/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 906922] Re: qemu-arm-static chroots give copious memory errors when setting up java build dependencies

2012-03-02 Thread Loïc Minier
On Fri, Mar 02, 2012, Peter Maydell wrote:
 This workaround turns out to cause some regressions in other cases, for 
 example:
 http://comments.gmane.org/gmane.comp.emulators.qemu/138180
 
 which seems to be because when we use -R (either explicitly or
 implicitly because of this patch) we tend to map the guest stack
 immediately above the guest data/BSS segment. This means brk() will
 always fail, which is bad news for guest binaries that rely on it.

 Do you recommend reverting it?

-- 
Loïc Minier

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/906922

Title:
  qemu-arm-static chroots give copious memory errors when setting up
  java build dependencies

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu-linaro/+bug/906922/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 906922] Re: qemu-arm-static chroots give copious memory errors when setting up java build dependencies

2012-02-18 Thread Launchpad Bug Tracker
This bug was fixed in the package qemu-linaro - 1.0.50-2012.01-0ubuntu4

---
qemu-linaro (1.0.50-2012.01-0ubuntu4) precise; urgency=low

  * New patch, 0001_linux-user-reserve-4GB-of-vmem-for-32-on-64, from
http://lists.gnu.org/archive/html/qemu-devel/2011-12/msg01697.html; fixes
mmap when running a 32-bits guest on a 64-bits host; LP: #906922.
 -- Loic Minier loic.min...@ubuntu.com   Fri, 17 Feb 2012 11:27:00 +0100

** Changed in: qemu-linaro (Ubuntu)
   Status: Triaged = Fix Released

** Branch linked: lp:ubuntu/qemu-linaro

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/906922

Title:
  qemu-arm-static chroots give copious memory errors when setting up
  java build dependencies

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu-linaro/+bug/906922/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 906922] Re: qemu-arm-static chroots give copious memory errors when setting up java build dependencies

2012-02-17 Thread Loïc Minier
** Changed in: qemu-linaro (Ubuntu)
 Assignee: (unassigned) = Loïc Minier (lool)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/906922

Title:
  qemu-arm-static chroots give copious memory errors when setting up
  java build dependencies

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu-linaro/+bug/906922/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 906922] Re: qemu-arm-static chroots give copious memory errors when setting up java build dependencies

2012-02-13 Thread Nick Moffitt
Has anyone here or upstream got a good patch to do this?  We need a
workaround as soon as possible, and my initial hacky attempts don't seem
to have worked.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/906922

Title:
  qemu-arm-static chroots give copious memory errors when setting up
  java build dependencies

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu-linaro/+bug/906922/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 906922] Re: qemu-arm-static chroots give copious memory errors when setting up java build dependencies

2012-02-13 Thread Loïc Minier
Peter, is there a chance of regressing important and currently working
functionality by setting QEMU_RESERVED_VA=0xf700 as the default in
qemu-linaro in Ubuntu?  If not, any reason for not doing it upstream
until a better mmap implementation appears?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/906922

Title:
  qemu-arm-static chroots give copious memory errors when setting up
  java build dependencies

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu-linaro/+bug/906922/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 906922] Re: qemu-arm-static chroots give copious memory errors when setting up java build dependencies

2012-02-13 Thread Peter Maydell
Oh, and also you (probably) don't want to set the environment variable
for running 64 bit guests as I suspect it will unnecessarily restrict
the total amount of RAM that they can use.

Re: doing it upstream: the current status of the discussion is here (plus 
followups):
 http://lists.gnu.org/archive/html/qemu-devel/2011-12/msg01697.html
(that patch is the equivalent of setting the environment variable for 64 bit 
hosts running 32 bit guests).

Basically there's general agreement that defaulting -R is probably the
right thing, but it needs a little more investigation for the
interactions with (a) ARM commpage and (b) user specified ulimit -v, and
nobody's got round to actually investigating, writing and submitting a
clean patch for this.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/906922

Title:
  qemu-arm-static chroots give copious memory errors when setting up
  java build dependencies

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu-linaro/+bug/906922/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 906922] Re: qemu-arm-static chroots give copious memory errors when setting up java build dependencies

2012-02-13 Thread Peter Maydell
Loic: You don't want to do it on 32 bit platforms, but for 64 bit hosts
I think it should be OK.

The only thing that I can think of that is likely to break is if the
user has a ulimit -v setting which we would now be breaching.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/906922

Title:
  qemu-arm-static chroots give copious memory errors when setting up
  java build dependencies

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu-linaro/+bug/906922/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 906922] Re: qemu-arm-static chroots give copious memory errors when setting up java build dependencies

2012-01-20 Thread Steve Langasek
I don't think there's a good way to put env vars into the binfmt glue; I
think we'd be better off patching it into qemu itself the way Peter says
upstream is considering.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/906922

Title:
  qemu-arm-static chroots give copious memory errors when setting up
  java build dependencies

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu-linaro/+bug/906922/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs



[Bug 906922] Re: qemu-arm-static chroots give copious memory errors when setting up java build dependencies

2012-01-17 Thread Nick Moffitt
Steve: if this can be worked around with the QEMU_RESERVED_VA
environment variable, then is there any  straightforward place to put
this (such as in the binfmt glue) for right now?  I wonder if this could
be worked around in the packaged version easily.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/906922

Title:
  qemu-arm-static chroots give copious memory errors when setting up
  java build dependencies

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu-linaro/+bug/906922/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 906922] Re: qemu-arm-static chroots give copious memory errors when setting up java build dependencies

2011-12-20 Thread Nick Moffitt
** Attachment added: 
buildlog_ubuntu-precise-armel.ant_1.8.2-4build1_FAILEDTOBUILD.txt.gz
   
https://bugs.launchpad.net/bugs/906922/+attachment/2641337/+files/buildlog_ubuntu-precise-armel.ant_1.8.2-4build1_FAILEDTOBUILD.txt.gz

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/906922

Title:
  qemu-arm-static chroots give copious memory errors when setting up
  java build dependencies

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu-linaro/+bug/906922/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 906922] Re: qemu-arm-static chroots give copious memory errors when setting up java build dependencies

2011-12-20 Thread Nick Moffitt
Er sorry, of course the buildd was in a precise chroot, not a Hardy one.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/906922

Title:
  qemu-arm-static chroots give copious memory errors when setting up
  java build dependencies

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu-linaro/+bug/906922/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 906922] Re: qemu-arm-static chroots give copious memory errors when setting up java build dependencies

2011-12-20 Thread Steve Langasek
Matthias, could this be related to the memory mapping issues previously
identified on ARM that affect Java?  If so, can you explain what the
issue is so that we can get this fixed in qemu-linaro?

** Changed in: qemu-linaro (Ubuntu)
 Assignee: (unassigned) = Matthias Klose (doko)

** Also affects: qemu-linaro
   Importance: Undecided
   Status: New

** Changed in: qemu-linaro (Ubuntu)
   Importance: Undecided = Medium

** Changed in: qemu-linaro (Ubuntu)
   Status: New = Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/906922

Title:
  qemu-arm-static chroots give copious memory errors when setting up
  java build dependencies

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu-linaro/+bug/906922/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 906922] Re: qemu-arm-static chroots give copious memory errors when setting up java build dependencies

2011-12-20 Thread Nick Moffitt
Hmm.  So I was going to file another bug about a binutils build on
precise running out of ptys, but on osageorange's oneiric-armel chroot,
it exhausts virtual memory:

g++ -DHAVE_CONFIG_H -I. -I../../gold  -I../../gold 
-I../../gold/../include -I../../gold/../elfcpp 
-DLOCALEDIR=\/usr/share/locale\ -DBINDIR=\/usr/bin\ 
-DTOOLBINDIR=\/usr/arm-linux-gnueabi/bin\ 
-DMULTIARCH_DIRNAME=\arm-linux-gnueabi\  -W -Wall-D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -frandom-seed=options.o -g -O2 -MT options.o -MD -MP -MF 
.deps/options.Tpo -c -o options.o ../../gold/options.cc
virtual memory exhausted: Cannot allocate memory
make[5]: *** [options.o] Error 1

Do you think this could be related, or should I file a separate bug?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/906922

Title:
  qemu-arm-static chroots give copious memory errors when setting up
  java build dependencies

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu-linaro/+bug/906922/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 906922] Re: qemu-arm-static chroots give copious memory errors when setting up java build dependencies

2011-12-20 Thread Nick Moffitt
The same thing happened to me with bzr: precise build using 0.15.91 hit
max open files limit, but oneiric build using 1.0 did the following:

gcc -pthread -fno-strict-aliasing -g -O0 -Wall -Wstrict-prototypes -g 
-O2 -fPIC -I/usr/include/python2.7_d -c bzrlib/_dirstate_helpers_pyx.c -o 
build/temp.linux-armv7l-2.7-pydebug/bzrlib/_dirstate_helpers_pyx.o
bzrlib/_dirstate_helpers_pyx.c: In function 
'__pyx_pf_6bzrlib_21_dirstate_helpers_pyx_5bisect_dirblock':
bzrlib/_dirstate_helpers_pyx.c:3554:13: warning: variable 
'__pyx_v_cache' set but not used [-Wunused-but-set-variable]
virtual memory exhausted: Cannot allocate memory

  Cannot build extension bzrlib._dirstate_helpers_pyx.
  Use build_ext --allow-python-fallback to use slower python 
implementations instead.

error: command 'gcc' failed with exit status 1
[150659 refs]
dh_auto_build: python-dbg setup.py build --force returned exit code 1
make[1]: *** [override_dh_auto_build] Error 1

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/906922

Title:
  qemu-arm-static chroots give copious memory errors when setting up
  java build dependencies

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu-linaro/+bug/906922/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 906922] Re: qemu-arm-static chroots give copious memory errors when setting up java build dependencies

2011-12-20 Thread Matthias Klose
so this triggers with the first alloc; I don't think that has something
to do with the current 2GB limit

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/906922

Title:
  qemu-arm-static chroots give copious memory errors when setting up
  java build dependencies

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu-linaro/+bug/906922/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 906922] Re: qemu-arm-static chroots give copious memory errors when setting up java build dependencies

2011-12-20 Thread Matthias Klose
building the test case from bug 861296:

(oneiric-armel)doko@osageorange:~/tmp$ gcc -g mmap-test.c 
(oneiric-armel)doko@osageorange:~/tmp$ ./a.out 
Couldn't allocate the heap: 32Mb

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/906922

Title:
  qemu-arm-static chroots give copious memory errors when setting up
  java build dependencies

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu-linaro/+bug/906922/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 906922] Re: qemu-arm-static chroots give copious memory errors when setting up java build dependencies

2011-12-20 Thread Peter Maydell
An untested workaround you could try: arrange to set the environment
variable QEMU_RESERVED_VA=0xf700 so the qemu in the chroot can see
it.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/906922

Title:
  qemu-arm-static chroots give copious memory errors when setting up
  java build dependencies

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu-linaro/+bug/906922/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 906922] Re: qemu-arm-static chroots give copious memory errors when setting up java build dependencies

2011-12-20 Thread Steve Langasek
double-checked that this symptom is the same with both 1.0 and 0.15.91,
so yes, it doesn't seem related to the 2GB limit that affects java
elsewhere - even though the behavior between 1.0 and 0.15.91 is
different for bzr and binutils.

** Changed in: qemu-linaro (Ubuntu)
 Assignee: Matthias Klose (doko) = (unassigned)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/906922

Title:
  qemu-arm-static chroots give copious memory errors when setting up
  java build dependencies

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu-linaro/+bug/906922/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 906922] Re: qemu-arm-static chroots give copious memory errors when setting up java build dependencies

2011-12-20 Thread Steve Langasek
Peter, I can confirm that export QEMU_RESERVED_VA=0xf700 fixes this
for Matthias's test case.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/906922

Title:
  qemu-arm-static chroots give copious memory errors when setting up
  java build dependencies

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu-linaro/+bug/906922/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 906922] Re: qemu-arm-static chroots give copious memory errors when setting up java build dependencies

2011-12-20 Thread Peter Maydell
Right, so this is really down to qemu not being very good at handling
mmap() in the 32-bit-guest-on-64-bit-host case -- it tends to fail
mmap() even when there's more address space available because it hasn't
managed to get the host kernel to allocate it within the 32-bit region
of the address space the guest can see.

We're currently tossing around the idea of making (the equivalent of)
that reserved-va setting the default upstream.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/906922

Title:
  qemu-arm-static chroots give copious memory errors when setting up
  java build dependencies

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu-linaro/+bug/906922/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs