0

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-) 7.10.0.20150918-cvs" 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?

9
  • would you include the output of df -h? Commented 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
    Commented Mar 6, 2018 at 8:16
  • Are you opening it as soon you generate core? Commented Mar 6, 2018 at 8:22
  • @tonioc ulimit -f also seems to affect core size. Commented Mar 6, 2018 at 8:23
  • yes the climit is set to unlimited using the option ulimit -c unlimited.
    – oxoinfra
    Commented Mar 6, 2018 at 8:55

1 Answer 1

0

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .