Ran gksu to cat a secured file, here is the gdb output with libc6 debug info:
gdb /usr/lib/libgksu2.so.0 ./core.gksu.9548 GNU gdb (GDB) 7.3-debian Copyright (C) 2011 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 "i486-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /usr/lib/libgksu2.so.0...(no debugging symbols found)...done. warning: core file may not match specified executable file. [New LWP 9548] [New LWP 9551] warning: Can't read pathname for load map: Input/output error. [Thread debugging using libthread_db enabled] Core was generated by `gksu'. Program terminated with signal 11, Segmentation fault. #0 __strlen_ia32 () at ../sysdeps/i386/i686/multiarch/../../i586/strlen.S:99 99 ../sysdeps/i386/i686/multiarch/../../i586/strlen.S: No such file or directory. in ../sysdeps/i386/i686/multiarch/../../i586/strlen.S (gdb) bt full #0 __strlen_ia32 () at ../sysdeps/i386/i686/multiarch/../../i586/strlen.S:99 No locals. #1 0xb6c82c58 in *__GI__IO_fputs (str=0x0, fp=0xb6d7d580) at iofputs.c:37 result = <optimized out> #2 0xb77d2fca in gksu_sudo_fuller () from /usr/lib/libgksu2.so.0 No symbol table info available. #3 0xb77d35fd in gksu_run_fuller () from /usr/lib/libgksu2.so.0 No symbol table info available. #4 0x0804a721 in ?? () No symbol table info available. #5 0x09ec2238 in ?? () No symbol table info available. #6 0xb6c3de46 in __libc_start_main (main=0x804a260, argc=1, ubp_av=0xbff03604, init=0x804bcd0, fini=0x804bcc0, rtld_fini=0xb7802310, stack_end=0xbff035fc) at libc-start.c:228 result = <optimized out> unwind_buf = {cancel_jmp_buf = {{jmp_buf = {-1227370508, 0, 0, -1074776616, 2116899370, 435913784}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x1, 0x804ac38}, data = {prev = 0x0, cleanup = 0x0, canceltype = 1}}} not_first_call = <optimized out> #7 0x0804ac59 in ?? () No symbol table info available. Backtrace stopped: Not enough registers or memory available to unwind further I think I'll try and build libgksu with debug symbols and run this under DDD.