[Okular-devel] [okular] [Bug 320753] Dynamic memory usage limit doesn't take into account virtual memory exhaustion

Albert Astals Cid aacid at kde.org
Tue May 20 21:53:52 UTC 2014


https://bugs.kde.org/show_bug.cgi?id=320753

--- Comment #23 from Albert Astals Cid <aacid at kde.org> ---
Actually can you save this


#include <sys/time.h>
#include <sys/resource.h>
#include <stdio.h>

int main(int argc, char *argv[])
{
    struct rlimit rlim;
    int res = getrlimit(RLIMIT_AS, &rlim);
    printf("%d %lu %lu\n", res, rlim.rlim_cur, rlim.rlim_max);
}


 to a file named main.cppp and run
g++ main.cpp
./a.out

And attach the output?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list