I wan't to create a core dump file with gdb. When I issue the command generate-core-file during a gdb session, this results in the following warnings:
warning: Memory read failed for corefile section, 1048576 bytes at 0x400317f0.
warning: cannot close "core.42000": File truncated
Saved corefile core.42000
The file then always has a size of 210K. So there seems to be some limit which restrains gdb to produce corefiles larger than 210K.
I also set ulimit -c unlimited with the bash and controlled it with ulimit -a which gives core file size (blocks, -c) unlimited.
But gdb seems to ignore this as I am getting a truncated core file.
Then, in the file /etc/security/limits.conf, I set the values for hard and soft core to unlimited, too. But nothing changes.
Does anybody have an idea how I can create larger ( >210K) core files on my system (Ubuntu 16.04 LTS)?
Many thanks in advance and best regards.