This thread reminded me of an old node about debugging and the use of debuggers. And I can only dream of a shred of the skills of some monks in that thread.
in reply to GDB journey into perl internals
About your problem: perhaps it has little to do with your code or the library you are working with. Are you interested in the system you find the segfault with, i.e. is it important to you? Perhaps it is a heavily patched, manual installation as opposed to a freshly installed popular distribution. Perhaps you cannot even repeat the segfault with the same distribution on slightly different hardware.
Hope this helps,