Can anyone else confirm the following to be a bug?

LDAP C SDK built Solaris 9, using perl v5.6.1

I'm attempting to read an LDIF entry from a file, strip out an attribute and add the resulting entry to our directory. After removing the attribute, i call the "add" method (see Mozilla::LDAP::Conn) and receive a segmentation fault.

Can anyone else reproduce this and/or confirm that it is a bug?

Thanks,

Jay

#####

use Mozilla::LDAP::LDIF qw(read_file_URL_or_name);
use Mozilla::LDAP::Conn();
use Mozilla::LDAP::Entry;

open FD, "< /path/to/some/user-dir.ldif" or die $!;
$in  = new Mozilla::LDAP::LDIF (*FD, \&read_file_URL_or_name);

$conn = new Mozilla::LDAP::Conn("ldap", "389", "...", "....");

while ($entry = readOneEntry $in) {

     $entry->remove("description");
     $conn->add($entry);   ###### SEGFAULT

     $conn->update($entry);
     if($conn->getErrorString ne 'Success'){
       print $conn->getErrorString . "\n";
     }
}


######

19566:      Incurred fault #6, FLTBOUNDS  %pc = 0xFEFC8168
19566:        siginfo: SIGSEGV SEGV_MAPERR addr=0x00000008



_______________________________________________
mozilla-directory mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-directory

Reply via email to