When using gdb to obtain a stack trace from a core dump file, the stack trace does not generate properly and a similar message is seen in the gdb output:
Warning: /usr/spectrum/SS/core.12516 is truncated: expected core file size >= 35057664, found: 15433728.
When running on Red Hat Enterprise Linux any core dump that is generated when the SpectroSERVER crashes is truncated. Visit the following website for detailed information about the known defect that causes this issue: https://bugzilla.redhat.com/show_bug.cgi?id=759213
Make the following modifications to generate the core dump files without truncation. Follow these steps:
Log in to the server as "root".
Create a backup copy of the following files in a safe location:
/proc/sys/kernel/core_pattern/ and /etc/sysctl.conf
Execute the following command: echo "core.%p" > /proc/sys/kernel/core_pattern
Enter the following entry into /etc/sysctl.conf
# new core pattern (https://bugzilla.redhat.com/show_bug.cgi?id=759213)
kernel.core_pattern = core.%p
Execute the following command: /sbin/sysctl -p
The next time a core file is generated it will not be truncated.