Hello,
It seems core dumps are broken if kernel is compiled with grsecurity-2.9.1-3.7.9-201302171808.patch
There is no error if kernel is compiled without grsec patch.
# ulimit -c
unlimited
# gdb /usr/libexec/weston-desktop-shell core
GNU gdb (Gentoo 7.5.1 p1) 7.5.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /usr/libexec/weston-desktop-shell...Reading symbols from /usr/lib64/debug/usr/libexec/weston-desktop-shell.debug...done.
done.
warning: core file may not match specified executable file.
[New process 177732]
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[New LWP 177732]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
warning: Couldn't find general-purpose registers in core file.
Error in re-setting breakpoint -1: PC register is not available
warning: Couldn't find general-purpose registers in core file.
Error in re-setting breakpoint -2: PC register is not available
warning: Couldn't find general-purpose registers in core file.
Error in re-setting breakpoint -3: PC register is not available
warning: Couldn't find general-purpose registers in core file.
Error in re-setting breakpoint -4: PC register is not available
warning: Couldn't find general-purpose registers in core file.
Error in re-setting breakpoint -5: PC register is not available
warning: Couldn't find general-purpose registers in core file.
Error in re-setting breakpoint -6: PC register is not available
warning: Couldn't find general-purpose registers in core file.
Error in re-setting breakpoint -7: PC register is not available
warning: Couldn't find general-purpose registers in core file.
Error in re-setting breakpoint -8: PC register is not available
warning: Couldn't find general-purpose registers in core file.
Error in re-setting breakpoint -9: PC register is not available
warning: Couldn't find general-purpose registers in core file.
Error in re-setting breakpoint -10: PC register is not available
warning: Couldn't find general-purpose registers in core file.
Error in re-setting breakpoint -1: PC register is not available
warning: Couldn't find general-purpose registers in core file.
Error in re-setting breakpoint -2: PC register is not available
warning: Couldn't find general-purpose registers in core file.
Error in re-setting breakpoint -3: PC register is not available
warning: Couldn't find general-purpose registers in core file.
Error in re-setting breakpoint -4: PC register is not available
warning: Couldn't find general-purpose registers in core file.
Error in re-setting breakpoint -5: PC register is not available
warning: Couldn't find general-purpose registers in core file.
Error in re-setting breakpoint -6: PC register is not available
warning: Couldn't find general-purpose registers in core file.
Error in re-setting breakpoint -7: PC register is not available
warning: Couldn't find general-purpose registers in core file.
Error in re-setting breakpoint -8: PC register is not available
warning: Couldn't find general-purpose registers in core file.
Error in re-setting breakpoint -9: PC register is not available
warning: Couldn't find general-purpose registers in core file.
Error in re-setting breakpoint -10: PC register is not available
warning: Couldn't find general-purpose registers in core file.
Error in re-setting breakpoint -11: PC register is not available
warning: Couldn't find general-purpose registers in core file.
Error in re-setting breakpoint -12: PC register is not available
warning: Couldn't find general-purpose registers in core file.
Error in re-setting breakpoint -13: PC register is not available
warning: Couldn't find general-purpose registers in core file.
Error in re-setting breakpoint -14: PC register is not available
warning: Couldn't find general-purpose registers in core file.
Error in re-setting breakpoint -15: PC register is not available
warning: Couldn't find general-purpose registers in core file.
Error in re-setting breakpoint -16: PC register is not available
warning: Couldn't find general-purpose registers in core file.
Error in re-setting breakpoint -17: PC register is not available
warning: Couldn't find general-purpose registers in core file.
Error in re-setting breakpoint -18: PC register is not available
warning: Couldn't find general-purpose registers in core file.
Error in re-setting breakpoint -19: PC register is not available
warning: Couldn't find general-purpose registers in core file.
Error in re-setting breakpoint -20: PC register is not available
Core was generated by `/usr/libexec/weston-desktop-shell'.
Program terminated with signal 11, Segmentation fault.
#0 0x0000000000000004 in ?? ()
(gdb) bt
#0 0x0000000000000004 in ?? ()
Cannot access memory at address 0x0
(gdb) quit
warning: Couldn't find general-purpose registers in core file.
Quitting: PC register is not available