I have a program whose total memory footprint is about 100 MiB (VM size, in top, while stopped in gdb
) that's trying to open a new (not-yet-existent) compressed log file using gzopen
. This fails, with errno
set to ENOMEM
, despite the fact that the system has 6GB memory completely free (not even holding caches), and lots of space on the filesystem (that would be ENOSPC
, I know). Are there more obscure issues that could cause this? Is something in the library incidentally allocating gigabytes upon gigabytes of memory for no good reason?
For note, my ulimits are set unlimited.