in reply to How can I debug perl-xs code?

Have you tried to compile your .so with -g and without -fomit-frame-pointer and -O*? Then retry with gdb.
Boris