From: Brad D. <br...@Di...> - 2003-03-26 17:23:28
|
Thanks to Graham for the recommendation (although on another thread, I added the following to my script, ran it, and then killed it with "kill -USR2 <pid>". use Carp; $SIG{USR2} = \&Carp::croak; The following line was the resulting error returned by my script: USR2 at /usr/lib/perl5/site_perl/5.8.0/Net/LDAP.pm line 661 Note that this is consistent with what I had assumed from my previous note. The LDAP is getting hung up on the asn_read on line 661 of LDAP.pm. Regards, Brad On Tue, 2003-03-25 at 21:08, Brad Diggs wrote: > Based on the previous note and the following excerpt from the LDAP.pm > perl module, I presume that after the bind, the LDAP socket or > associated file handler must be getting dropped before I send a > request to it. > > 652 sub _recvresp { > 653 my $ldap = shift; > 654 my $what = shift; > 655 my $sock = $ldap->socket; > 656 my $sel = IO::Select->new($sock); > 657 my $ready; > 658 > 659 for( $ready = 1 ; $ready ; $ready = $sel->can_read(0)) { > 660 my $pdu; > 661 asn_read($sock, $pdu) > 662 or return LDAP_OPERATIONS_ERROR; > > My guess is that the open() function and the asn_read() functions are > colliding on the file handler for the LDAP connection socket. Thats > just by guess though. > > What do you think? I sure would like to see the answer because I can't > get my data loaded into the directory. > > Brad > > On Tue, 2003-03-25 at 15:11, Brad Diggs wrote: > > Running with Net::LDAP debug of 12 didn't yield much different than > > with 4. However, I ran with perl debugger on and got the following > > when I did a Ctrl-c on the hang... > > > > Convert::ASN1::asn_read(/usr/lib/perl5/site_perl/5.8.0/Convert/ASN1/IO.pm:198): > > 198: READ_ERR: > > 199: $@ = "I/O Error $! " . CORE::unpack("H*",$_[1]); > > > > Should I be led to believe by this that the problem may be in the ASN > > code? > > > > Brad |