copy-mailbox.pl segmentation faults

We are moving users from sendmail mailbox on old webmin freebsd server to postfix mail directories on new VM freebsd server. Small inboxes under approx 30 messages transfer OK, while larger boxes over 100 messages fail after between 3 and 30 messages transfered. Always fails at the same message.

Failures occur when running a perl script that creates users on new server and moves their email inbox contents. Same users fail each time I run the script. Command that fails is copy-mailbox.pl at &mailboxes::mailbox_copy_folder($srcfolder, $destfolder); We get the console report of " 250 messages totalling 357 KB" but only a handful of the messages are transfered before the segmentation fault & core dump.

For a given user, copy-mailbox fails if I run the command either from a script or the command line.

Environment: VM install-script on clean FreeBSD 7.0 system

Status: 
Closed (fixed)