[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#6096) 2.4.16 replica segfault



Luca Scamoni wrote:
> hyc@symas.com ha scritto:
>> Can you print out the a_desc and values of all of the attributes in
>> entry->e_attrs ?
>>
> Don't know if this is the "right" way to do it, but here it is...

Everything looks normal here.

(I generally would do:
   p *entry->e_attrs
   p *entry->e_attrs->a_desc
   p *entry->e_attrs->a_vals
   p *entry->e_attrs->a_next
   p *entry->e_attrs->a_next->a_desc
   p *entry->e_attrs->a_next->a_vals
...

Obviously it's easier with command history/editing...)

Judging from the provider log, there's nothing special about the DN either. 
Can't imagine that it would get corrupted in the consumer, but we'll need to 
see what turns up in the LDAPMessage.

> (gdb) p *(entry->e_attrs->a_desc)
> $10 = {ad_next = 0x0, ad_type = 0x8f08d70, ad_cname = {bv_len = 9,
> bv_val = 0x8f08cb0 "entryUUID"}, ad_tags = {bv_len = 0, bv_val = 0x0},
> ad_flags = 0}
> (gdb) p *(entry->e_attrs->a_vals)
> $11 = {bv_len = 36, bv_val = 0x4d36f498
> "6a0ba116-b291-11da-8006-87f6e679f1bd"}
> (gdb) p *(entry->e_attrs->a_nvals)
> $12 = {bv_len = 16, bv_val = 0x45631550
> "j\v¡\026²\221\021�\200\006\207öæyñ½"}
> p (struct Attribute) *0x54a2de9c
> $13 = {a_desc = 0x8f07d88, a_vals = 0x4d3e1dd0, a_nvals = 0x4d3e1dd0,
> a_numvals = 2, a_flags = 0, a_next = 0x54a3c41c}
> p (AttributeDescription) *0x8f07d88
> $14 = {ad_next = 0x0, ad_type = 0x8f07cb0, ad_cname = {bv_len = 11,
> bv_val = 0x8f07c28 "objectClass"}, ad_tags = {bv_len = 0, bv_val = 0x0},
> ad_flags = 0}
> (gdb) p (struct berval) *0x4d3e1dd0
> $15 = {bv_len = 20, bv_val = 0x4d3f84d8 "cRLDistributionPoint"}
> (gdb) p (struct Attribute) *0x54a3c41c
> $16 = {a_desc = 0x8f0ce90, a_vals = 0x45665718, a_nvals = 0x4d366d98,
> a_numvals = 1, a_flags = 0, a_next = 0x54a41ec4}
> (gdb) p (AttributeDescription) *0x8f0ce90
> $17 = {ad_next = 0x0, ad_type = 0x8f0cd70, ad_cname = {bv_len = 2,
> bv_val = 0x8f0ccf8 "cn"}, ad_tags = {bv_len = 0, bv_val = 0x0}, ad_flags
> = 0}
> (gdb) p (struct berval) *0x45665718
> $18 = {bv_len = 5, bv_val = 0x45662320 "CRL19"}
> (gdb) p (struct berval) *0x4d366d98
> $19 = {bv_len = 5, bv_val = 0x45666fc8 "crl19"}

-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/