in reply to Bug in perl, or X11::GUITest

What makes you assume that the problem is Perl? Did you run strace? Try reproducing the problem with another XS module ... say, DateTime. If you still get a segfault, then it is likely Perl has issues. If you don't, then the place to start looking is the module.