Things I learned from a misbehaving pam module managing our sudo context at work. sudo, for security, will not dump core files if it hits a segfault. You need to tell the kernel to allow set uid root binaries to core dump *and* you have to let sudo know that its ok via a sudo.conf entry.
DO NOT LEAVE THESE AS DEFAULTS
/etc/sudo.conf –> Set disable_coredump true
ref –> http://www.sudo.ws/sudo.man.html