Thomas, thank you for your clear description of the issue.

Given that the problem is memory beyond the 2GB barrier, something I
wanted to try was mmap()'s MAP_32BIT flag. You can sort-of do a malloc()
by making an anonymous mapping, and so I hacked up safe_malloc() and
safe_free() (in awelib/malloc.c) accordingly. My patch against the
awesfx-0.5.1a source (current Ubuntu version) is attached.

The addresses returned are consistently 0x4[0-9a-f]{7}, yet I continue
seeing the "no memory left" error. Do you think there is something in
this approach that may allow a solution that doesn't require kernel
modification, or are we still at the mercy of the kernel's memory
allocation policy?

** Patch added: "awesfx-experiment.patch"
   
https://bugs.launchpad.net/ubuntu/+source/awesfx/+bug/183456/+attachment/1786687/+files/awesfx-experiment.patch

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

Title:
  Trying to load a sf2 file with asfxload returns "sfxload: no memory left" 

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

Reply via email to