What has changed ? If the script was previously running ok, something must have been done to break it. What could that be ?
You could also try to isolate the problem - ie what's the smallest script you can come up with that produces the segfault ? Does a script that contains only "use Mozilla::LDAP::API qw(:constant :api :ssl);" segfault ? If not, it must be a function call that's doing it ... knowing which specific function call might be useful.