We are using a private module to dump a corefile which uses the kernel utility elf_core_dump in source/fs/binfmt_elf.c file in kernel source 4.4.52.

Using this module we are getting a core of unlimited size. We use ARM gdb version "GNU gdb (Marvell GCC development 20170123-)" to debug a core file.

Using this tool, while opening core file we get the following error:

BFD: Warning: /tmp/filewXU3ip is truncated: expected core file size >= 1684632832, found: 102373296.
warning: Couldn't find general-purpose registers in core file.
warning: Couldn't find general-purpose registers in core file.
PC not available

Could someone please help us to get through this error? Do we need to do some other implementation for this in kernel apart from exporting necessary symbols?

  • would you include the output of df -h? Mar 6, 2018 at 8:14
  • 1
    don't you have a ulimit set on core size? (ulimit -c ), maybe try with ulimit -c unlimited ?
    – tonioc
    Mar 6, 2018 at 8:16
  • Are you opening it as soon you generate core? Mar 6, 2018 at 8:22
  • @tonioc ulimit -f also seems to affect core size. Mar 6, 2018 at 8:23
  • yes the climit is set to unlimited using the option ulimit -c unlimited.
    – oxoinfra
    Mar 6, 2018 at 8:55

1 Answer 1


At a guess you need to write it to filesystem with more space available.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.