[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: (ITS#7325) Panic issue with slapd-perl
If I reverse the commit f6b8103b789ae40234b0cb7574c1a9da4e5a1b21 only
in add.c then the module runs perfecty.
Thanks.
2012/7/19 Alejandro <aescanero@gmail.com>:
> More information:
> Test Module is:
> package replicadorTEST;
>
> use strict;
> use warnings;
> use POSIX;
>
> sub new {
> my $class = shift;
>
> my $this = {};
> bless $this, $class;
> return $this;
> }
>
> sub bind {
> return 0;
> }
>
> sub init {
> return 0;
> }
>
> sub search {
> return 0;
> }
>
> sub compare {
> return 0;
> }
>
> sub modify {
> return 0;
> }
>
> sub add {
> return 0;
>
> }
>
> sub modrdn {
> return 0;
> }
>
> sub delete {
> return 0;
> }
>
> sub config {
> return 0;
> }
>
> 1;
>
> Try to add this (The problem only appear when try to add a DN):
> dn: uid=test,o=XXXX,o=XXXX,c=XX
> mailLocalAddress: test@test.es
> objectClass: top
> objectClass: person
> objectClass: organizationalPerson
> objectClass: inetOrgPerson
> objectClass: inetLocalMailRecipient
> objectClass: posixAccount
> uid: test
> mail: test@test.es
> uidNumber: 600
> o: ceic
> gidNumber: 600
> displayName: TEST
> sn: TEST
> cn: TEST
> homeDirectory: /home/test
>
> And then I get:
> 5007ee79 >>> dnPrettyNormal: <uid=test,o=XXXX,o=XXXX,c=XX>
> => ldap_bv2dn(uid=test,o=XXXX,o=XXXX,c=XX,0)
> <= ldap_bv2dn(uid=test,o=XXXX,o=XXXX,c=XX)=0
> => ldap_dn2bv(272)
> <= ldap_dn2bv(uid=test,o=XXXX,o=XXXX,c=XX)=0
> => ldap_dn2bv(272)
> <= ldap_dn2bv(uid=test,o=XXXX,o=XXXX,c=XX)=0
> 5007ee79 <<< dnPrettyNormal: <uid=test,o=XXXX,o=XXXX,c=XX>,
> <uid=test,o=XXXX,o=XXXX,c=XX>
> 5007ee79 conn=1000 op=1 ADD dn="uid=test,o=XXXX,o=XXXX,c=XX"
> panic: sv_setpvn called with negative strlen.
>
> Thanks
>
> 2012/7/19 Alejandro <aescanero@gmail.com>:
>> My main problem now is:
>> How I can check the bad line of code if perl-slapd don't give me any
>> usable error in 2.4.31 release?
>>
>> Thanks
>>
>> 2012/7/19 Howard Chu <hyc@symas.com>:
>>> aescanero@gmail.com wrote:
>>>> The problem was in the perl module with a uninitialized value, in
>>>> 2.4.21 give the error Use of uninitialized value in concatenation (.)
>>>> or string at /etc/openldap24/replicador.pm line 109, <DATA> line 275
>>>> but in 2.4.31 give me a panic.
>>>
>>> Sounds like a bug in your module then, and not an OpenLDAP software issue.
>>>
>>> --
>>> -- Howard Chu
>>> CTO, Symas Corp. http://www.symas.com
>>> Director, Highland Sun http://highlandsun.com/hyc/
>>> Chief Architect, OpenLDAP http://www.openldap.org/project/
>>
>>
>>
>> --
>> Alejandro Escanero Blanco
>> Consultor de sistemas basados en fuentes abiertas
>> Desarrollador de FusionDirectory (http://www.fusiondirectory.org)
>> Blog: http://www.disasterproject.com
>> Jabber: blainett@jabberes.com
>
>
>
> --
> Alejandro Escanero Blanco
> Consultor de sistemas basados en fuentes abiertas
> Desarrollador de FusionDirectory (http://www.fusiondirectory.org)
> Blog: http://www.disasterproject.com
> Jabber: blainett@jabberes.com
--
Alejandro Escanero Blanco
Consultor de sistemas basados en fuentes abiertas
Desarrollador de FusionDirectory (http://www.fusiondirectory.org)
Blog: http://www.disasterproject.com
Jabber: blainett@jabberes.com