I can reproduce this for "-m", but not "-v" under Feisty or Gutsy. The example code above segfaulted when I used it, so I wrote a slightly smaller version (attached). Here is what I see:
$ ulimit -a | grep mem max locked memory (kbytes, -l) 32 max memory size (kbytes, -m) unlimited virtual memory (kbytes, -v) unlimited $ ./toomuch 102500 allocating... using... done! $ ulimit -v 102400 $ ulimit -a | grep mem max locked memory (kbytes, -l) 32 max memory size (kbytes, -m) unlimited virtual memory (kbytes, -v) 102400 $ ./toomuch 102500 allocating... malloc: Cannot allocate memory Setting -m to 50000 and re-running toomuch as above, I could verify in "top" that it was reporting 100M of RSS usage. ** Attachment added: "toomuch.c" http://launchpadlibrarian.net/10220730/toomuch.c -- ulimit / pam limits don't work https://bugs.launchpad.net/bugs/71024 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs