Issue 6005 - error free() function ber_memfree_x, file memory.c
Summary: error free() function ber_memfree_x, file memory.c
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: 2.4.15
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-06 14:07 UTC by rupreht@rupreht.ru
Modified: 2014-08-01 21:03 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description rupreht@rupreht.ru 2009-03-06 14:07:34 UTC
Full_Name: NIkolay Ermolovich
Version: 2.4.15
OS: FreeBSD 7.0
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (217.76.176.1)


ldapsearch: @(#) $OpenLDAP: ldapsearch 2.4.15 (Mar  6 2009 18:48:23) $
        root@serv1.olympus.ru:/usr/ports/net/openldap24-client/work/openldap-2.4.15/clients/tools
        (LDAP library: OpenLDAP 20415)

----------

...
bm_top: 0xdeaddada
0x00000017 0x48402160 -f- 24 ber_memfree 399
bm_top: 0xdeaddada
0x00000011 0x48425040 -f- 236 ber_memfree 163
bm_top: 0xdeaddada
0x00000010 0x484020d0 -f- 21 ber_memfree 142
bm_top: 0xdeaddada
0x00000001 0x48403040 -f- 27 ber_memfree 115
bm_top: 0x00000000
Assertion failed: (mh->bm_top == LBER_MEM_JUNK), function ber_memfree_x, file
memory.c, line 137.

Program received signal SIGABRT, Aborted.
0x48340b93 in kill () from /lib/libc.so.7
(gdb) bt                                
#0  0x48340b93 in kill () from /lib/libc.so.7
#1  0x48340af2 in raise () from /lib/libc.so.7
#2  0x4833f8a8 in abort () from /lib/libc.so.7
#3  0x4832896e in __assert () from /lib/libc.so.7
#4  0x480cd134 in ber_memfree_x (p=0x48357fc0, ctx=0x0) at memory.c:137
#5  0x480ce308 in ber_memfree (p=0x48357fc0) at memory.c:164
#6  0x080519ca in ?? ()
#7  0x48357fc0 in __stack_chk_guard () from /lib/libc.so.7
#8  0x00000000 in ?? ()
#9  0x7fbfec48 in ?? ()
#10 0x0804dfeb in ?? ()
#11 0x48425054 in ?? ()
#12 0x08055b46 in ?? ()
#13 0x00000000 in ?? ()
#14 0x00000000 in ?? ()
#15 0x00000000 in ?? ()
#16 0x00000000 in ?? ()
#17 0x00000000 in ?? ()
#18 0xffffffff in ?? ()
#19 0x48274674 in ?? () from /usr/lib/libcom_err.so.4
#20 0x480832c4 in ?? ()
#21 0x7fbfec88 in ?? ()
#22 0x08055b46 in ?? ()
#23 0x00000000 in ?? ()
#24 0x00000000 in ?? ()
#25 0x00000000 in ?? ()
#26 0x48425054 in ?? ()
#27 0x00000000 in ?? ()
#28 0x00000000 in ?? ()
#29 0x7fbfea2c in ?? ()
#30 0x00000000 in ?? ()
#31 0x00000000 in ?? ()
#32 0x00000000 in ?? ()
#33 0x7fbfea2c in ?? ()
#34 0x48084e00 in ?? ()
#35 0x00000003 in ?? ()
#36 0x480832a0 in ?? ()
#37 0x00000000 in ?? ()
#38 0x00000000 in ?? ()
#39 0x00000000 in ?? ()
#40 0x00000000 in ?? ()
#41 0x00000000 in ?? ()
#42 0x00000000 in ?? ()
#43 0x00000000 in ?? ()
---Type <return> to continue, or q <return> to quit---
#44 0x00000000 in ?? ()
#45 0x4805b4bb in _rtld_error () from /libexec/ld-elf.so.1
Previous frame inner to this frame (corrupt stack?)
(gdb)

----------------

memory.c
...
void
ber_memfree_x( void *p, void *ctx )
{
        if( p == NULL ) {
                return;
        }

        BER_MEM_VALID( p );

        if( ber_int_memory_fns == NULL || ctx == NULL ) {
#ifdef LDAP_MEMORY_DEBUG
                struct ber_mem_hdr *mh = (struct ber_mem_hdr *)
                        ((char *)p - sizeof(struct ber_mem_hdr));
                fprintf(stderr, "bm_top: 0x%08lx\n", (long)mh->bm_top);
                assert( mh->bm_top == LBER_MEM_JUNK);
                assert( testdatatop( mh));
                assert( testend( (char *)&mh[1] + mh->bm_length) );
                ber_int_meminuse -= mh->bm_length;

#ifdef LDAP_MEMORY_TRACE
                fprintf(stderr, "0x%08lx 0x%08lx -f- %ld ber_memfree %ld\n",
                        (long)mh->bm_sequence, (long)mh, (long)mh->bm_length,
                        ber_int_meminuse);
#endif
                /* Fill the free space with poison */
                memset( mh, 0xff, mh->bm_length + sizeof(struct ber_mem_hdr) +
sizeof(ber_int_t));
                free( mh );
#else
                free( p );
#endif
                return;
        }

        assert( ber_int_memory_fns->bmf_free != 0 );

        (*ber_int_memory_fns->bmf_free)( p, ctx );
}
Comment 1 Howard Chu 2009-03-06 22:05:05 UTC
rupreht@rupreht.ru wrote:
> Full_Name: NIkolay Ermolovich
> Version: 2.4.15
> OS: FreeBSD 7.0
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (217.76.176.1)
>
>
> ldapsearch: @(#) $OpenLDAP: ldapsearch 2.4.15 (Mar  6 2009 18:48:23) $
>          root@serv1.olympus.ru:/usr/ports/net/openldap24-client/work/openldap-2.4.15/clients/tools
>          (LDAP library: OpenLDAP 20415)
>
> ----------
>
> ...
> bm_top: 0xdeaddada
> 0x00000017 0x48402160 -f- 24 ber_memfree 399
> bm_top: 0xdeaddada
> 0x00000011 0x48425040 -f- 236 ber_memfree 163
> bm_top: 0xdeaddada
> 0x00000010 0x484020d0 -f- 21 ber_memfree 142
> bm_top: 0xdeaddada
> 0x00000001 0x48403040 -f- 27 ber_memfree 115
> bm_top: 0x00000000
> Assertion failed: (mh->bm_top == LBER_MEM_JUNK), function ber_memfree_x, file
> memory.c, line 137.

Please note:
/*
  * LDAP_MEMORY_DEBUG should only be enabled for the purposes of
  * debugging memory management within OpenLDAP libraries and slapd.
  *
  * It should only be enabled by an experienced developer as it causes
  * the inclusion of numerous assert()'s, many of which may be triggered
  * by a prefectly valid program.  If LDAP_MEMORY_DEBUG & 2 is true,
  * that includes asserts known to break both slapd and current clients.
  *

This is not a bug, this ITS will be closed.
-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/

Comment 2 Howard Chu 2009-03-06 22:06:54 UTC
changed state Open to Closed
Comment 3 Quanah Gibson-Mount 2009-03-09 23:17:03 UTC
changed notes
Comment 4 Nikolay 2009-03-10 08:58:43 UTC
%ldapsearch -x -w xxxxxxx -h mail -b "ou=transport,dc=test,dc=ru" -D 
"cn=replic,dc=test,dc=ru"
Ok

%ldapsearch -Wx -h mail -b "ou=transport,dc=test,dc=ru" -D 
"cn=replic,dc=test,dc=ru"
Enter LDAP Password:
# extended LDIF
#
# LDAPv3
.....
# search result
search: 2
result: 0 Success

# numResponses: 5
# numEntries: 4
Segmentation fault

Comment 5 ando@openldap.org 2009-03-10 16:27:39 UTC
<http://www.openldap.org/faq/data/cache/59.html>

p.

rupreht-mobi2@olympus.ru wrote:
> %ldapsearch -x -w xxxxxxx -h mail -b "ou=transport,dc=test,dc=ru" -D 
> "cn=replic,dc=test,dc=ru"
> Ok
> 
> %ldapsearch -Wx -h mail -b "ou=transport,dc=test,dc=ru" -D 
> "cn=replic,dc=test,dc=ru"
> Enter LDAP Password:
> # extended LDIF
> #
> # LDAPv3
> .....
> # search result
> search: 2
> result: 0 Success
> 
> # numResponses: 5
> # numEntries: 4
> Segmentation fault




Ing. Pierangelo Masarati
OpenLDAP Core Team

SysNet s.r.l.
via Dossi, 8 - 27100 Pavia - ITALIA
http://www.sys-net.it
-----------------------------------
Office:  +39 02 23998309
Mobile:  +39 333 4963172
Fax:     +39 0382 476497
Email:   ando@sys-net.it
-----------------------------------

Comment 6 Nikolay 2009-03-11 11:35:23 UTC
Pierangelo Masarati пишет:
> <http://www.openldap.org/faq/data/cache/59.html>
>
> p.
>
>
>> %ldapsearch -x -w xxxxxxx -h mail -b "ou=transport,dc=test,dc=ru" -D 
>> "cn=replic,dc=test,dc=ru"
>> Ok
>>
>> %ldapsearch -Wx -h mail -b "ou=transport,dc=test,dc=ru" -D 
>> "cn=replic,dc=test,dc=ru"
>> Enter LDAP Password:
>> # extended LDIF
>> #
>> # LDAPv3
>> .....
>> # search result
>> search: 2
>> result: 0 Success
>>
>> # numResponses: 5
>> # numEntries: 4
>> Segmentation fault
>
>
>
>
> Ing. Pierangelo Masarati
> OpenLDAP Core Team
>
> SysNet s.r.l.
> via Dossi, 8 - 27100 Pavia - ITALIA
> http://www.sys-net.it
> -----------------------------------
> Office: +39 02 23998309
> Mobile: +39 333 4963172
> Fax: +39 0382 476497
> Email: ando@sys-net.it
> -----------------------------------
>
%gdb `where ldapsearch`
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...(no debugging symbols
found)...
(gdb) r -d -1 -Wx -h mail -b "ou=transport,dc=test,dc=ru" -D
"cn=replic,dc=test,dc=ru"
Starting program: /usr/local/bin/ldapsearch -d -1 -Wx -h mail -b
"ou=transport,dc=test,dc=ru" -D "cn=replic,dc=test,dc=ru"
ldap_create
ldap_url_parse_ext(ldap://mail)
Enter LDAP Password:
ldap_sasl_bind
ldap_send_initial_request
ldap_new_connection 1 1 0
ldap_int_open_connection
ldap_connect_to_host: TCP mail:389
ldap_new_socket: 3
ldap_prepare_socket: 3
ldap_connect_to_host: Trying xxx.xxx.xxx:389
ldap_pvt_connect: fd: 3 tm: -1 async: 0
ldap_open_defconn: successful
ldap_send_server_request
ber_scanf fmt ({it) ber:
ber_dump: buf=0x4841e000 ptr=0x4841e000 end=0x4841e033 len=51
0000: 30 31 02 01 01 60 2c 02 01 03 04 1a 63 6e 3d 72 01...`,.....cn=r
-x-x-x-x-x-x-x-x-x-
-x-x-x-x-x-x-x-x-x-
ber_scanf fmt ({i) ber:
ber_dump: buf=0x4841e000 ptr=0x4841e005 end=0x4841e033 len=46
0000: 60 2c 02 01 03 04 1a 63 6e 3d 72 65 70 6c 69 63 `,.....cn=replic
-x-x-x-x-x-x-x-x-x-
-x-x-x-x-x-x-x-x-x-
ber_flush2: 51 bytes to sd 3
0000: 30 31 02 01 01 60 2c 02 01 03 04 1a 63 6e 3d 72 01...`,.....cn=r
-x-x-x-x-x-x-x-x-x-
-x-x-x-x-x-x-x-x-x-
-x-x-x-x-x-x-x-x-x-
ldap_write: want=51, written=51
0000: 30 31 02 01 01 60 2c 02 01 03 04 1a 63 6e 3d 72 01...`,.....cn=r
-x-x-x-x-x-x-x-x-x-
-x-x-x-x-x-x-x-x-x-
-x-x-x-x-x-x-x-x-x-
ldap_result ld 0x48425040 msgid 1
wait4msg ld 0x48425040 msgid 1 (infinite timeout)
wait4msg continue ld 0x48425040 msgid 1 all 1
** ld 0x48425040 Connections:
* host: mail port: 389 (default)
refcnt: 2 status: Connected
last used: Wed Mar 11 10:15:15 2009


** ld 0x48425040 Outstanding Requests:
* msgid 1, origid 1, status InProgress
outstanding referrals 0, parent count 0
ld 0x48425040 request count 1 (abandoned 0)
** ld 0x48425040 Response Queue:
Empty
ld 0x48425040 response count 0
ldap_chkResponseList ld 0x48425040 msgid 1 all 1
ldap_chkResponseList returns ld 0x48425040 NULL
ldap_int_select
read1msg: ld 0x48425040 msgid 1 all 1
ber_get_next
ldap_read: want=8, got=8
0000: 30 0c 02 01 01 61 07 0a 0....a..
ldap_read: want=6, got=6
0000: 01 00 04 00 04 00 ......
ber_get_next: tag 0x30 len 12 contents:
ber_dump: buf=0x484200c0 ptr=0x484200c0 end=0x484200cc len=12
0000: 02 01 01 61 07 0a 01 00 04 00 04 00 ...a........
read1msg: ld 0x48425040 msgid 1 message type bind
ber_scanf fmt ({eAA) ber:
ber_dump: buf=0x484200c0 ptr=0x484200c3 end=0x484200cc len=9
0000: 61 07 0a 01 00 04 00 04 00 a........
read1msg: ld 0x48425040 0 new referrals
read1msg: mark request completed, ld 0x48425040 msgid 1
request done: ld 0x48425040 msgid 1
res_errno: 0, res_error: <>, res_matched: <>
ldap_free_request (origid 1, msgid 1)
ldap_parse_result
ber_scanf fmt ({iAA) ber:
ber_dump: buf=0x484200c0 ptr=0x484200c3 end=0x484200cc len=9
0000: 61 07 0a 01 00 04 00 04 00 a........
ber_scanf fmt (}) ber:
ber_dump: buf=0x484200c0 ptr=0x484200cc end=0x484200cc len=0

ldap_msgfree
# extended LDIF
#
# LDAPv3
# base <ou=transport,dc=test,dc=ru> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#

ldap_search_ext
put_filter: "(objectclass=*)"
put_filter: simple
put_simple_filter: "objectclass=*"
ldap_build_search_req ATTRS: *
ldap_send_initial_request
ldap_send_server_request
ber_scanf fmt ({it) ber:
ber_dump: buf=0x4841f000 ptr=0x4841f000 end=0x4841f044 len=68
0000: 30 42 02 01 02 63 3d 04 1d 6f 75 3d 74 72 61 6e 0B...c=..ou=tran
-x-x-x-x-x-x-x-x-x-
0020: 2c 64 63 3d 72 75 0a 01 02 0a 01 00 02 01 00 02 ,dc=ru..........
0030: 01 00 01 01 00 87 0b 6f 62 6a 65 63 74 63 6c 61 .......objectcla
0040: 73 73 30 00 ss0.
ber_scanf fmt ({) ber:
ber_dump: buf=0x4841f000 ptr=0x4841f005 end=0x4841f044 len=63
0000: 63 3d 04 1d 6f 75 3d 74 72 61 6e 73 70 6f 72 74 c=..ou=transport
-x-x-x-x-x-x-x-x-x-
0020: 75 0a 01 02 0a 01 00 02 01 00 02 01 00 01 01 00 u...............
0030: 87 0b 6f 62 6a 65 63 74 63 6c 61 73 73 30 00 ..objectclass0.
ber_flush2: 68 bytes to sd 3
0000: 30 42 02 01 02 63 3d 04 1d 6f 75 3d 74 72 61 6e 0B...c=..ou=tran
-x-x-x-x-x-x-x-x-x-
0020: 2c 64 63 3d 72 75 0a 01 02 0a 01 00 02 01 00 02 ,dc=ru..........
0030: 01 00 01 01 00 87 0b 6f 62 6a 65 63 74 63 6c 61 .......objectcla
0040: 73 73 30 00 ss0.
ldap_write: want=68, written=68
0000: 30 42 02 01 02 63 3d 04 1d 6f 75 3d 74 72 61 6e 0B...c=..ou=tran
-x-x-x-x-x-x-x-x-x-
0020: 2c 64 63 3d 72 75 0a 01 02 0a 01 00 02 01 00 02 ,dc=ru..........
0030: 01 00 01 01 00 87 0b 6f 62 6a 65 63 74 63 6c 61 .......objectcla
0040: 73 73 30 00 ss0.
ldap_result ld 0x48425040 msgid -1
wait4msg ld 0x48425040 msgid -1 (infinite timeout)
wait4msg continue ld 0x48425040 msgid -1 all 0
** ld 0x48425040 Connections:
* host: mail port: 389 (default)
refcnt: 2 status: Connected
last used: Wed Mar 11 10:15:15 2009


** ld 0x48425040 Outstanding Requests:
* msgid 2, origid 2, status InProgress
outstanding referrals 0, parent count 0
ld 0x48425040 request count 1 (abandoned 0)
** ld 0x48425040 Response Queue:
Empty
ld 0x48425040 response count 0
ldap_chkResponseList ld 0x48425040 msgid -1 all 0
ldap_chkResponseList returns ld 0x48425040 NULL
ldap_int_select
read1msg: ld 0x48425040 msgid -1 all 0
ber_get_next
ldap_read: want=8, got=8
0000: 30 63 02 01 02 64 5e 04 0c...d^.
ldap_read: want=93, got=93
0000: 1d 6f 75 3d 74 72 61 6e 73 70 6f 72 74 2c 64 63 .ou=transport,dc
-x-x-x-x-x-x-x-x-x-
0020: 30 11 04 02 6f 75 31 0b 04 09 74 72 61 6e 73 70 0...ou1...transp
0030: 6f 72 74 30 28 04 0b 6f 62 6a 65 63 74 43 6c 61 ort0(..objectCla
0040: 73 73 31 19 04 03 74 6f 70 04 12 6f 72 67 61 6e ss1...top..organ
0050: 69 7a 61 74 69 6f 6e 61 6c 55 6e 69 74 izationalUnit
ber_get_next: tag 0x30 len 99 contents:
ber_dump: buf=0x48433080 ptr=0x48433080 end=0x484330e3 len=99
0000: 02 01 02 64 5e 04 1d 6f 75 3d 74 72 61 6e 73 70 ...d^..ou=transp
-x-x-x-x-x-x-x-x-x-
0020: 63 3d 72 75 30 3d 30 11 04 02 6f 75 31 0b 04 09 c=ru0=0...ou1...
0030: 74 72 61 6e 73 70 6f 72 74 30 28 04 0b 6f 62 6a transport0(..obj
0040: 65 63 74 43 6c 61 73 73 31 19 04 03 74 6f 70 04 ectClass1...top.
0050: 12 6f 72 67 61 6e 69 7a 61 74 69 6f 6e 61 6c 55 .organizationalU
0060: 6e 69 74 nit
read1msg: ld 0x48425040 msgid 2 message type search-entry
ldap_get_dn_ber
ber_scanf fmt ({ml{) ber:
ber_dump: buf=0x48433080 ptr=0x48433083 end=0x484330e3 len=96
0000: 64 5e 04 1d 6f 75 3d 74 72 61 6e 73 70 6f 72 74 d^..ou=transport
-x-x-x-x-x-x-x-x-x-
0020: 75 30 3d 30 11 04 02 6f 75 31 0b 04 09 74 72 61 u0=0...ou1...tra
0030: 6e 73 70 6f 72 74 30 28 04 0b 6f 62 6a 65 63 74 nsport0(..object
0040: 43 6c 61 73 73 31 19 04 03 74 6f 70 04 12 6f 72 Class1...top..or
0050: 67 61 6e 69 7a 61 74 69 6f 6e 61 6c 55 6e 69 74 ganizationalUnit
ldap_dn2ufn
ldap_dn_normalize
=> ldap_bv2dn(ou=transport,dc=test,dc=ru,0)
<= ldap_bv2dn(ou=transport,dc=test,dc=ru)=0
=> ldap_dn2bv(64)
<= ldap_dn2bv(transport, test.ru)=0
# transport, test.ru
dn: ou=transport,dc=test,dc=ru
ber_scanf fmt ({xx) ber:
ber_dump: buf=0x48433080 ptr=0x48433083 end=0x484330e3 len=96
0000: 64 5e 04 1d 6f 75 3d 74 72 61 6e 73 70 6f 72 74 d^..ou=transport
-x-x-x-x-x-x-x-x-x-
0020: 75 00 3d 30 11 04 02 6f 75 31 0b 04 09 74 72 61 u.=0...ou1...tra
0030: 6e 73 70 6f 72 74 30 28 04 0b 6f 62 6a 65 63 74 nsport0(..object
0040: 43 6c 61 73 73 31 19 04 03 74 6f 70 04 12 6f 72 Class1...top..or
0050: 67 61 6e 69 7a 61 74 69 6f 6e 61 6c 55 6e 69 74 ganizationalUnit
ldap_get_attribute_ber
ber_scanf fmt ({mM}) ber:
ber_dump: buf=0x48433080 ptr=0x484330a6 end=0x484330e3 len=61
0000: 30 11 04 02 6f 75 31 0b 04 09 74 72 61 6e 73 70 0...ou1...transp
0010: 6f 72 74 30 28 04 0b 6f 62 6a 65 63 74 43 6c 61 ort0(..objectCla
0020: 73 73 31 19 04 03 74 6f 70 04 12 6f 72 67 61 6e ss1...top..organ
0030: 69 7a 61 74 69 6f 6e 61 6c 55 6e 69 74 izationalUnit
ou: transport
ldap_get_attribute_ber
ber_scanf fmt ({mM}) ber:
ber_dump: buf=0x48433080 ptr=0x484330b9 end=0x484330e3 len=42
0000: 00 28 04 0b 6f 62 6a 65 63 74 43 6c 61 73 73 31 .(..objectClass1
0010: 19 04 03 74 6f 70 04 12 6f 72 67 61 6e 69 7a 61 ...top..organiza
0020: 74 69 6f 6e 61 6c 55 6e 69 74 tionalUnit
objectClass: top
objectClass: organizationalUnit
ldap_get_attribute_ber
ldap_msgfree
ldap_result ld 0x48425040 msgid -1
wait4msg ld 0x48425040 msgid -1 (infinite timeout)
wait4msg continue ld 0x48425040 msgid -1 all 0
** ld 0x48425040 Connections:
* host: mail port: 389 (default)
refcnt: 2 status: Connected
last used: Wed Mar 11 10:15:15 2009


** ld 0x48425040 Outstanding Requests:
* msgid 2, origid 2, status InProgress
outstanding referrals 0, parent count 0
ld 0x48425040 request count 1 (abandoned 0)
** ld 0x48425040 Response Queue:
Empty
ld 0x48425040 response count 0
ldap_chkResponseList ld 0x48425040 msgid -1 all 0
ldap_chkResponseList returns ld 0x48425040 NULL
ldap_int_select
read1msg: ld 0x48425040 msgid -1 all 0
ber_get_next
ldap_read: want=8, got=8
0000: 30 81 b3 02 01 02 64 81 0.....d.
ldap_read: want=174, got=174
-x-x-x-x-x-x-x-x-x-
0010: 2e 72 75 2c 6f 75 3d 74 72 61 6e 73 70 6f 72 74 .ru,ou=transport
-x-x-x-x-x-x-x-x-x-
0030: 75 30 7b 30 19 04 0c 64 65 6c 69 76 65 72 79 4d u0{0...deliveryM
0040: 6f 64 65 31 09 04 07 76 69 72 74 75 61 6c 30 17 ode1...virtual0.
-x-x-x-x-x-x-x-x-x-
-x-x-x-x-x-x-x-x-x-
-x-x-x-x-x-x-x-x-x-
0080: 04 0b 6f 62 6a 65 63 74 43 6c 61 73 73 31 1f 04 ..objectClass1..
0090: 09 71 6d 61 69 6c 55 73 65 72 04 12 6f 72 67 61 .qmailUser..orga
00a0: 6e 69 7a 61 74 69 6f 6e 61 6c 55 6e 69 74 nizationalUnit
ber_get_next: tag 0x30 len 179 contents:
ber_dump: buf=0x48422180 ptr=0x48422180 end=0x48422233 len=179
-x-x-x-x-x-x-x-x-x-
-x-x-x-x-x-x-x-x-x-
-x-x-x-x-x-x-x-x-x-
0030: 2c 64 63 3d 72 75 30 7b 30 19 04 0c 64 65 6c 69 ,dc=ru0{0...deli
0040: 76 65 72 79 4d 6f 64 65 31 09 04 07 76 69 72 74 veryMode1...virt
0050: 75 61 6c 30 17 04 04 6d 61 69 6c 31 0f 04 0d 6f ual0...mail1...o
0060: 6c 79 6d 70 75 73 6e 73 70 2e 72 75 30 15 04 02 lympusnsp.ru0...
-x-x-x-x-x-x-x-x-x-
0080: 2e 72 75 30 2e 04 0b 6f 62 6a 65 63 74 43 6c 61 .ru0...objectCla
0090: 73 73 31 1f 04 09 71 6d 61 69 6c 55 73 65 72 04 ss1...qmailUser.
00a0: 12 6f 72 67 61 6e 69 7a 61 74 69 6f 6e 61 6c 55 .organizationalU
00b0: 6e 69 74 nit
read1msg: ld 0x48425040 msgid 2 message type search-entry

ldap_get_dn_ber
ber_scanf fmt ({ml{) ber:
ber_dump: buf=0x48422180 ptr=0x48422183 end=0x48422233 len=176
-x-x-x-x-x-x-x-x-x-
0010: 73 70 2e 72 75 2c 6f 75 3d 74 72 61 6e 73 70 6f sp.ru,ou=transpo
-x-x-x-x-x-x-x-x-x-
0030: 3d 72 75 30 7b 30 19 04 0c 64 65 6c 69 76 65 72 =ru0{0...deliver
0040: 79 4d 6f 64 65 31 09 04 07 76 69 72 74 75 61 6c yMode1...virtual
-x-x-x-x-x-x-x-x-x-
-x-x-x-x-x-x-x-x-x-
-x-x-x-x-x-x-x-x-x-
0080: 30 2e 04 0b 6f 62 6a 65 63 74 43 6c 61 73 73 31 0...objectClass1
0090: 1f 04 09 71 6d 61 69 6c 55 73 65 72 04 12 6f 72 ...qmailUser..or
00a0: 67 61 6e 69 7a 61 74 69 6f 6e 61 6c 55 6e 69 74 ganizationalUnit
ldap_dn2ufn
ldap_dn_normalize
=> ldap_bv2dn(ou=testnsp.ru,ou=transport,dc=test,dc=ru,0)
<= ldap_bv2dn(ou=testnsp.ru,ou=transport,dc=test,dc=ru)=0
=> ldap_dn2bv(64)
<= ldap_dn2bv(testnsp.ru, transport, test.ru)=0
# testnsp.ru, transport, test.ru
dn: ou=testnsp.ru,ou=transport,dc=test,dc=ru
ber_scanf fmt ({xx) ber:
ber_dump: buf=0x48422180 ptr=0x48422183 end=0x48422233 len=176
-x-x-x-x-x-x-x-x-x-
0010: 73 70 2e 72 75 2c 6f 75 3d 74 72 61 6e 73 70 6f sp.ru,ou=transpo
-x-x-x-x-x-x-x-x-x-
0030: 3d 72 75 00 7b 30 19 04 0c 64 65 6c 69 76 65 72 =ru.{0...deliver
0040: 79 4d 6f 64 65 31 09 04 07 76 69 72 74 75 61 6c yMode1...virtual
-x-x-x-x-x-x-x-x-x-
-x-x-x-x-x-x-x-x-x-
-x-x-x-x-x-x-x-x-x-
0080: 30 2e 04 0b 6f 62 6a 65 63 74 43 6c 61 73 73 31 0...objectClass1
0090: 1f 04 09 71 6d 61 69 6c 55 73 65 72 04 12 6f 72 ...qmailUser..or
00a0: 67 61 6e 69 7a 61 74 69 6f 6e 61 6c 55 6e 69 74 ganizationalUnit
ldap_get_attribute_ber
ber_scanf fmt ({mM}) ber:
ber_dump: buf=0x48422180 ptr=0x484221b8 end=0x48422233 len=123
0000: 30 19 04 0c 64 65 6c 69 76 65 72 79 4d 6f 64 65 0...deliveryMode
0010: 31 09 04 07 76 69 72 74 75 61 6c 30 17 04 04 6d 1...virtual0...m
-x-x-x-x-x-x-x-x-x-
0030: 70 2e 72 75 30 15 04 02 6f 75 31 0f 04 0d 6f 6c p.ru0...ou1...ol
0040: 79 6d 70 75 73 6e 73 70 2e 72 75 30 2e 04 0b 6f ympusnsp.ru0...o
0050: 62 6a 65 63 74 43 6c 61 73 73 31 1f 04 09 71 6d bjectClass1...qm
0060: 61 69 6c 55 73 65 72 04 12 6f 72 67 61 6e 69 7a ailUser..organiz
0070: 61 74 69 6f 6e 61 6c 55 6e 69 74 ationalUnit
deliveryMode: virtual
ldap_get_attribute_ber
ber_scanf fmt ({mM}) ber:
ber_dump: buf=0x48422180 ptr=0x484221d3 end=0x48422233 len=96
-x-x-x-x-x-x-x-x-x-
-x-x-x-x-x-x-x-x-x-
-x-x-x-x-x-x-x-x-x-
0030: 30 2e 04 0b 6f 62 6a 65 63 74 43 6c 61 73 73 31 0...objectClass1
0040: 1f 04 09 71 6d 61 69 6c 55 73 65 72 04 12 6f 72 ...qmailUser..or
0050: 67 61 6e 69 7a 61 74 69 6f 6e 61 6c 55 6e 69 74 ganizationalUnit
mail: testnsp.ru
ldap_get_attribute_ber
ber_scanf fmt ({mM}) ber:
ber_dump: buf=0x48422180 ptr=0x484221ec end=0x48422233 len=71
-x-x-x-x-x-x-x-x-x-
-x-x-x-x-x-x-x-x-x-
0020: 74 43 6c 61 73 73 31 1f 04 09 71 6d 61 69 6c 55 tClass1...qmailU
0030: 73 65 72 04 12 6f 72 67 61 6e 69 7a 61 74 69 6f ser..organizatio
0040: 6e 61 6c 55 6e 69 74 nalUnit
ou: testnsp.ru
ldap_get_attribute_ber
ber_scanf fmt ({mM}) ber:
ber_dump: buf=0x48422180 ptr=0x48422203 end=0x48422233 len=48
0000: 00 2e 04 0b 6f 62 6a 65 63 74 43 6c 61 73 73 31 ....objectClass1
0010: 1f 04 09 71 6d 61 69 6c 55 73 65 72 04 12 6f 72 ...qmailUser..or
0020: 67 61 6e 69 7a 61 74 69 6f 6e 61 6c 55 6e 69 74 ganizationalUnit
objectClass: qmailUser
objectClass: organizationalUnit
ldap_get_attribute_ber
ldap_msgfree
ldap_result ld 0x48425040 msgid -1
wait4msg ld 0x48425040 msgid -1 (infinite timeout)
wait4msg continue ld 0x48425040 msgid -1 all 0
** ld 0x48425040 Connections:
* host: mail port: 389 (default)
refcnt: 2 status: Connected
last used: Wed Mar 11 10:15:15 2009


** ld 0x48425040 Outstanding Requests:
* msgid 2, origid 2, status InProgress
outstanding referrals 0, parent count 0
ld 0x48425040 request count 1 (abandoned 0)
** ld 0x48425040 Response Queue:
Empty
ld 0x48425040 response count 0
ldap_chkResponseList ld 0x48425040 msgid -1 all 0
ldap_chkResponseList returns ld 0x48425040 NULL
ldap_int_select
read1msg: ld 0x48425040 msgid -1 all 0
ber_get_next
ldap_read: want=8, got=8
0000: 30 81 aa 02 01 02 64 81 0.....d.
ldap_read: want=165, got=165
-x-x-x-x-x-x-x-x-x-
0010: 2c 6f 75 3d 74 72 61 6e 73 70 6f 72 74 2c 64 63 ,ou=transport,dc
-x-x-x-x-x-x-x-x-x-
0030: 30 19 04 0c 64 65 6c 69 76 65 72 79 4d 6f 64 65 0...deliveryMode
0040: 31 09 04 07 76 69 72 74 75 61 6c 30 14 04 04 6d 1...virtual0...m
-x-x-x-x-x-x-x-x-x-
-x-x-x-x-x-x-x-x-x-
0070: 75 73 2e 72 75 30 2e 04 0b 6f 62 6a 65 63 74 43 us.ru0...objectC
0080: 6c 61 73 73 31 1f 04 09 71 6d 61 69 6c 55 73 65 lass1...qmailUse
0090: 72 04 12 6f 72 67 61 6e 69 7a 61 74 69 6f 6e 61 r..organizationa
00a0: 6c 55 6e 69 74 lUnit
ber_get_next: tag 0x30 len 170 contents:
ber_dump: buf=0x48433060 ptr=0x48433060 end=0x4843310a len=170
-x-x-x-x-x-x-x-x-x-
0010: 75 73 2e 72 75 2c 6f 75 3d 74 72 61 6e 73 70 6f us.ru,ou=transpo
-x-x-x-x-x-x-x-x-x-
0030: 3d 72 75 30 75 30 19 04 0c 64 65 6c 69 76 65 72 =ru0u0...deliver
0040: 79 4d 6f 64 65 31 09 04 07 76 69 72 74 75 61 6c yMode1...virtual
-x-x-x-x-x-x-x-x-x-
0060: 70 75 73 2e 72 75 30 12 04 02 6f 75 31 0c 04 0a pus.ru0...ou1...
-x-x-x-x-x-x-x-x-x-
0080: 6a 65 63 74 43 6c 61 73 73 31 1f 04 09 71 6d 61 jectClass1...qma
0090: 69 6c 55 73 65 72 04 12 6f 72 67 61 6e 69 7a 61 ilUser..organiza
00a0: 74 69 6f 6e 61 6c 55 6e 69 74 tionalUnit
read1msg: ld 0x48425040 msgid 2 message type search-entry

ldap_get_dn_ber
ber_scanf fmt ({ml{) ber:
ber_dump: buf=0x48433060 ptr=0x48433063 end=0x4843310a len=167
-x-x-x-x-x-x-x-x-x-
0010: 72 75 2c 6f 75 3d 74 72 61 6e 73 70 6f 72 74 2c ru,ou=transport,
-x-x-x-x-x-x-x-x-x-
0030: 30 75 30 19 04 0c 64 65 6c 69 76 65 72 79 4d 6f 0u0...deliveryMo
0040: 64 65 31 09 04 07 76 69 72 74 75 61 6c 30 14 04 de1...virtual0..
-x-x-x-x-x-x-x-x-x-
-x-x-x-x-x-x-x-x-x-
-x-x-x-x-x-x-x-x-x-
0080: 74 43 6c 61 73 73 31 1f 04 09 71 6d 61 69 6c 55 tClass1...qmailU
0090: 73 65 72 04 12 6f 72 67 61 6e 69 7a 61 74 69 6f ser..organizatio
00a0: 6e 61 6c 55 6e 69 74 nalUnit
ldap_dn2ufn
ldap_dn_normalize
=> ldap_bv2dn(ou=test.ru,ou=transport,dc=test,dc=ru,0)
<= ldap_bv2dn(ou=test.ru,ou=transport,dc=test,dc=ru)=0
=> ldap_dn2bv(64)
<= ldap_dn2bv(test.ru, transport, test.ru)=0
# test.ru, transport, test.ru
dn: ou=test.ru,ou=transport,dc=test,dc=ru
ber_scanf fmt ({xx) ber:
ber_dump: buf=0x48433060 ptr=0x48433063 end=0x4843310a len=167
-x-x-x-x-x-x-x-x-x-
0010: 72 75 2c 6f 75 3d 74 72 61 6e 73 70 6f 72 74 2c ru,ou=transport,
-x-x-x-x-x-x-x-x-x-
0030: 00 75 30 19 04 0c 64 65 6c 69 76 65 72 79 4d 6f .u0...deliveryMo
0040: 64 65 31 09 04 07 76 69 72 74 75 61 6c 30 14 04 de1...virtual0..
-x-x-x-x-x-x-x-x-x-
-x-x-x-x-x-x-x-x-x-
-x-x-x-x-x-x-x-x-x-
0080: 74 43 6c 61 73 73 31 1f 04 09 71 6d 61 69 6c 55 tClass1...qmailU
0090: 73 65 72 04 12 6f 72 67 61 6e 69 7a 61 74 69 6f ser..organizatio
00a0: 6e 61 6c 55 6e 69 74 nalUnit
ldap_get_attribute_ber
ber_scanf fmt ({mM}) ber:
ber_dump: buf=0x48433060 ptr=0x48433095 end=0x4843310a len=117
0000: 30 19 04 0c 64 65 6c 69 76 65 72 79 4d 6f 64 65 0...deliveryMode
0010: 31 09 04 07 76 69 72 74 75 61 6c 30 14 04 04 6d 1...virtual0...m
-x-x-x-x-x-x-x-x-x-
-x-x-x-x-x-x-x-x-x-
0040: 75 73 2e 72 75 30 2e 04 0b 6f 62 6a 65 63 74 43 us.ru0...objectC
0050: 6c 61 73 73 31 1f 04 09 71 6d 61 69 6c 55 73 65 lass1...qmailUse
0060: 72 04 12 6f 72 67 61 6e 69 7a 61 74 69 6f 6e 61 r..organizationa
0070: 6c 55 6e 69 74 lUnit
deliveryMode: virtual
ldap_get_attribute_ber
ber_scanf fmt ({mM}) ber:
ber_dump: buf=0x48433060 ptr=0x484330b0 end=0x4843310a len=90
-x-x-x-x-x-x-x-x-x-
-x-x-x-x-x-x-x-x-x-
-x-x-x-x-x-x-x-x-x-
0030: 6a 65 63 74 43 6c 61 73 73 31 1f 04 09 71 6d 61 jectClass1...qma
0040: 69 6c 55 73 65 72 04 12 6f 72 67 61 6e 69 7a 61 ilUser..organiza
0050: 74 69 6f 6e 61 6c 55 6e 69 74 tionalUnit
mail: test.ru
ldap_get_attribute_ber
ber_scanf fmt ({mM}) ber:
ber_dump: buf=0x48433060 ptr=0x484330c6 end=0x4843310a len=68
-x-x-x-x-x-x-x-x-x-
-x-x-x-x-x-x-x-x-x-
0020: 61 73 73 31 1f 04 09 71 6d 61 69 6c 55 73 65 72 ass1...qmailUser
0030: 04 12 6f 72 67 61 6e 69 7a 61 74 69 6f 6e 61 6c ..organizational
0040: 55 6e 69 74 Unit
ou: test.ru
ldap_get_attribute_ber
ber_scanf fmt ({mM}) ber:
ber_dump: buf=0x48433060 ptr=0x484330da end=0x4843310a len=48
0000: 00 2e 04 0b 6f 62 6a 65 63 74 43 6c 61 73 73 31 ....objectClass1
0010: 1f 04 09 71 6d 61 69 6c 55 73 65 72 04 12 6f 72 ...qmailUser..or
0020: 67 61 6e 69 7a 61 74 69 6f 6e 61 6c 55 6e 69 74 ganizationalUnit
objectClass: qmailUser
objectClass: organizationalUnit
ldap_get_attribute_ber
ldap_msgfree
ldap_result ld 0x48425040 msgid -1
wait4msg ld 0x48425040 msgid -1 (infinite timeout)
wait4msg continue ld 0x48425040 msgid -1 all 0
** ld 0x48425040 Connections:
* host: mail port: 389 (default)
refcnt: 2 status: Connected
last used: Wed Mar 11 10:15:15 2009


** ld 0x48425040 Outstanding Requests:
* msgid 2, origid 2, status InProgress
outstanding referrals 0, parent count 0
ld 0x48425040 request count 1 (abandoned 0)
** ld 0x48425040 Response Queue:
Empty
ld 0x48425040 response count 0
ldap_chkResponseList ld 0x48425040 msgid -1 all 0
ldap_chkResponseList returns ld 0x48425040 NULL
ldap_int_select
read1msg: ld 0x48425040 msgid -1 all 0
ber_get_next
ldap_read: want=8, got=8
0000: 30 81 aa 02 01 02 64 81 0.....d.
ldap_read: want=165, got=165
-x-x-x-x-x-x-x-x-x-
0010: 2c 6f 75 3d 74 72 61 6e 73 70 6f 72 74 2c 64 63 ,ou=transport,dc
-x-x-x-x-x-x-x-x-x-
0030: 30 19 04 0c 64 65 6c 69 76 65 72 79 4d 6f 64 65 0...deliveryMode
0040: 31 09 04 07 76 69 72 74 75 61 6c 30 14 04 04 6d 1...virtual0...m
-x-x-x-x-x-x-x-x-x-
0060: 75 30 12 04 02 6f 75 31 0c 04 0a 72 75 70 72 65 u0...ou1...rupre
0070: 68 74 2e 72 75 30 2e 04 0b 6f 62 6a 65 63 74 43 ht.ru0...objectC
0080: 6c 61 73 73 31 1f 04 09 71 6d 61 69 6c 55 73 65 lass1...qmailUse
0090: 72 04 12 6f 72 67 61 6e 69 7a 61 74 69 6f 6e 61 r..organizationa
00a0: 6c 55 6e 69 74 lUnit
ber_get_next: tag 0x30 len 170 contents:
ber_dump: buf=0x48433060 ptr=0x48433060 end=0x4843310a len=170
-x-x-x-x-x-x-x-x-x-
0010: 68 74 2e 72 75 2c 6f 75 3d 74 72 61 6e 73 70 6f ht.ru,ou=transpo
-x-x-x-x-x-x-x-x-x-
0030: 3d 72 75 30 75 30 19 04 0c 64 65 6c 69 76 65 72 =ru0u0...deliver
0040: 79 4d 6f 64 65 31 09 04 07 76 69 72 74 75 61 6c yMode1...virtual
-x-x-x-x-x-x-x-x-x-
0060: 65 68 74 2e 72 75 30 12 04 02 6f 75 31 0c 04 0a eht.ru0...ou1...
-x-x-x-x-x-x-x-x-x-
0080: 6a 65 63 74 43 6c 61 73 73 31 1f 04 09 71 6d 61 jectClass1...qma
0090: 69 6c 55 73 65 72 04 12 6f 72 67 61 6e 69 7a 61 ilUser..organiza
00a0: 74 69 6f 6e 61 6c 55 6e 69 74 tionalUnit
read1msg: ld 0x48425040 msgid 2 message type search-entry

ldap_get_dn_ber
ber_scanf fmt ({ml{) ber:
ber_dump: buf=0x48433060 ptr=0x48433063 end=0x4843310a len=167
-x-x-x-x-x-x-x-x-x-
0010: 72 75 2c 6f 75 3d 74 72 61 6e 73 70 6f 72 74 2c ru,ou=transport,
-x-x-x-x-x-x-x-x-x-
0030: 30 75 30 19 04 0c 64 65 6c 69 76 65 72 79 4d 6f 0u0...deliveryMo
0040: 64 65 31 09 04 07 76 69 72 74 75 61 6c 30 14 04 de1...virtual0..
-x-x-x-x-x-x-x-x-x-
-x-x-x-x-x-x-x-x-x-
-x-x-x-x-x-x-x-x-x-
0080: 74 43 6c 61 73 73 31 1f 04 09 71 6d 61 69 6c 55 tClass1...qmailU
0090: 73 65 72 04 12 6f 72 67 61 6e 69 7a 61 74 69 6f ser..organizatio
00a0: 6e 61 6c 55 6e 69 74 nalUnit
ldap_dn2ufn
ldap_dn_normalize
=> ldap_bv2dn(ou=rupreht.ru,ou=transport,dc=test,dc=ru,0)
<= ldap_bv2dn(ou=rupreht.ru,ou=transport,dc=test,dc=ru)=0
=> ldap_dn2bv(64)
<= ldap_dn2bv(rupreht.ru, transport, test.ru)=0
# rupreht.ru, transport, test.ru
dn: ou=rupreht.ru,ou=transport,dc=test,dc=ru
ber_scanf fmt ({xx) ber:
ber_dump: buf=0x48433060 ptr=0x48433063 end=0x4843310a len=167
-x-x-x-x-x-x-x-x-x-
0010: 72 75 2c 6f 75 3d 74 72 61 6e 73 70 6f 72 74 2c ru,ou=transport,
-x-x-x-x-x-x-x-x-x-
0030: 00 75 30 19 04 0c 64 65 6c 69 76 65 72 79 4d 6f .u0...deliveryMo
0040: 64 65 31 09 04 07 76 69 72 74 75 61 6c 30 14 04 de1...virtual0..
-x-x-x-x-x-x-x-x-x-
0060: 2e 72 75 30 12 04 02 6f 75 31 0c 04 0a 72 75 70 .ru0...ou1...rup
0070: 72 65 68 74 2e 72 75 30 2e 04 0b 6f 62 6a 65 63 reht.ru0...objec
0080: 74 43 6c 61 73 73 31 1f 04 09 71 6d 61 69 6c 55 tClass1...qmailU
0090: 73 65 72 04 12 6f 72 67 61 6e 69 7a 61 74 69 6f ser..organizatio
00a0: 6e 61 6c 55 6e 69 74 nalUnit
ldap_get_attribute_ber
ber_scanf fmt ({mM}) ber:
ber_dump: buf=0x48433060 ptr=0x48433095 end=0x4843310a len=117
0000: 30 19 04 0c 64 65 6c 69 76 65 72 79 4d 6f 64 65 0...deliveryMode
0010: 31 09 04 07 76 69 72 74 75 61 6c 30 14 04 04 6d 1...virtual0...m
-x-x-x-x-x-x-x-x-x-
-x-x-x-x-x-x-x-x-x-
0040: 68 74 2e 72 75 30 2e 04 0b 6f 62 6a 65 63 74 43 ht.ru0...objectC
0050: 6c 61 73 73 31 1f 04 09 71 6d 61 69 6c 55 73 65 lass1...qmailUse
0060: 72 04 12 6f 72 67 61 6e 69 7a 61 74 69 6f 6e 61 r..organizationa
0070: 6c 55 6e 69 74 lUnit
deliveryMode: virtual
ldap_get_attribute_ber
ber_scanf fmt ({mM}) ber:
ber_dump: buf=0x48433060 ptr=0x484330b0 end=0x4843310a len=90
-x-x-x-x-x-x-x-x-x-
0010: 65 68 74 2e 72 75 30 12 04 02 6f 75 31 0c 04 0a eht.ru0...ou1...
-x-x-x-x-x-x-x-x-x-
0030: 6a 65 63 74 43 6c 61 73 73 31 1f 04 09 71 6d 61 jectClass1...qma
0040: 69 6c 55 73 65 72 04 12 6f 72 67 61 6e 69 7a 61 ilUser..organiza
0050: 74 69 6f 6e 61 6c 55 6e 69 74 tionalUnit
mail: rupreht.ru
ldap_get_attribute_ber
ber_scanf fmt ({mM}) ber:
ber_dump: buf=0x48433060 ptr=0x484330c6 end=0x4843310a len=68
-x-x-x-x-x-x-x-x-x-
0010: 74 2e 72 75 30 2e 04 0b 6f 62 6a 65 63 74 43 6c t.ru0...objectCl
0020: 61 73 73 31 1f 04 09 71 6d 61 69 6c 55 73 65 72 ass1...qmailUser
0030: 04 12 6f 72 67 61 6e 69 7a 61 74 69 6f 6e 61 6c ..organizational
0040: 55 6e 69 74 Unit
ou: rupreht.ru
ldap_get_attribute_ber
ber_scanf fmt ({mM}) ber:
ber_dump: buf=0x48433060 ptr=0x484330da end=0x4843310a len=48
0000: 00 2e 04 0b 6f 62 6a 65 63 74 43 6c 61 73 73 31 ....objectClass1
0010: 1f 04 09 71 6d 61 69 6c 55 73 65 72 04 12 6f 72 ...qmailUser..or
0020: 67 61 6e 69 7a 61 74 69 6f 6e 61 6c 55 6e 69 74 ganizationalUnit
objectClass: qmailUser
objectClass: organizationalUnit
ldap_get_attribute_ber
ldap_msgfree
ldap_result ld 0x48425040 msgid -1
wait4msg ld 0x48425040 msgid -1 (infinite timeout)
wait4msg continue ld 0x48425040 msgid -1 all 0
** ld 0x48425040 Connections:
* host: mail port: 389 (default)
refcnt: 2 status: Connected
last used: Wed Mar 11 10:15:15 2009


** ld 0x48425040 Outstanding Requests:
* msgid 2, origid 2, status InProgress
outstanding referrals 0, parent count 0
ld 0x48425040 request count 1 (abandoned 0)
** ld 0x48425040 Response Queue:
Empty
ld 0x48425040 response count 0
ldap_chkResponseList ld 0x48425040 msgid -1 all 0
ldap_chkResponseList returns ld 0x48425040 NULL
ldap_int_select
read1msg: ld 0x48425040 msgid -1 all 0
ber_get_next
ldap_read: want=8, got=8
0000: 30 0c 02 01 02 65 07 0a 0....e..
ldap_read: want=6, got=6
0000: 01 00 04 00 04 00 ......
ber_get_next: tag 0x30 len 12 contents:
ber_dump: buf=0x484200c0 ptr=0x484200c0 end=0x484200cc len=12
0000: 02 01 02 65 07 0a 01 00 04 00 04 00 ...e........
read1msg: ld 0x48425040 msgid 2 message type search-result
ber_scanf fmt ({eAA) ber:
ber_dump: buf=0x484200c0 ptr=0x484200c3 end=0x484200cc len=9
0000: 65 07 0a 01 00 04 00 04 00 e........
read1msg: ld 0x48425040 0 new referrals
read1msg: mark request completed, ld 0x48425040 msgid 2
request done: ld 0x48425040 msgid 2
res_errno: 0, res_error: <>, res_matched: <>
ldap_free_request (origid 2, msgid 2)

# search result
search: 2
ldap_parse_result
ber_scanf fmt ({iAA) ber:
ber_dump: buf=0x484200c0 ptr=0x484200c3 end=0x484200cc len=9
0000: 65 07 0a 01 00 04 00 04 00 e........
ber_scanf fmt (}) ber:
ber_dump: buf=0x484200c0 ptr=0x484200cc end=0x484200cc len=0

ldap_err2string
result: 0 Success
ldap_msgfree

# numResponses: 5
# numEntries: 4
ldap_free_connection 1 1
ldap_send_unbind
ber_flush2: 7 bytes to sd 3
0000: 30 05 02 01 03 42 00 0....B.
ldap_write: want=7, written=7
0000: 30 05 02 01 03 42 00 0....B.
ldap_free_connection: actually freed

Program received signal SIGSEGV, Segmentation fault.
0x482d7527 in calloc () from /lib/libc.so.7
(gdb) bt full
#0 0x482d7527 in calloc () from /lib/libc.so.7
No symbol table info available.
#1 0x482d77f6 in free () from /lib/libc.so.7
No symbol table info available.
#2 0x480d015d in ber_memfree_x (p=0x48359fc0, ctx=0x0) at memory.c:152
__func__ = "ber_memfree_x"
#3 0x480d0dc5 in ber_memfree (p=0x48359fc0) at memory.c:165
No locals.
#4 0x080519ad in ?? ()
No symbol table info available.
#5 0x48359fc0 in __stack_chk_guard () from /lib/libc.so.7
No symbol table info available.
#6 0x00000000 in ?? ()
No symbol table info available.
#7 0x7fbfebf8 in ?? ()
No symbol table info available.
#8 0x0804df92 in ?? ()
No symbol table info available.
#9 0x48425040 in ?? ()
No symbol table info available.
#10 0x08055c86 in ?? ()
No symbol table info available.
#11 0x00000000 in ?? ()
No symbol table info available.
#12 0x00000000 in ?? ()
No symbol table info available.
#13 0x00000000 in ?? ()
No symbol table info available.
#14 0x00000000 in ?? ()
No symbol table info available.
#15 0x00000000 in ?? ()
No symbol table info available.
#16 0xffffffff in ?? ()
No symbol table info available.
#17 0x08055c86 in ?? ()
No symbol table info available.
#18 0x00000000 in ?? ()
No symbol table info available.
#19 0x00000000 in ?? ()
No symbol table info available.
#20 0x48425040 in ?? ()
No symbol table info available.
#21 0x00000000 in ?? ()
No symbol table info available.
#22 0x00000000 in ?? ()
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#23 0x7fbfe9dc in ?? ()
No symbol table info available.
#24 0x00000000 in ?? ()
No symbol table info available.
#25 0x00000000 in ?? ()
No symbol table info available.
#26 0x00000000 in ?? ()
No symbol table info available.
#27 0x7fbfe9dc in ?? ()
No symbol table info available.
#28 0x48085e00 in ?? ()
No symbol table info available.
#29 0x00000003 in ?? ()
No symbol table info available.
#30 0x480842a0 in ?? ()
No symbol table info available.
#31 0x00000000 in ?? ()
No symbol table info available.
#32 0x00000000 in ?? ()
No symbol table info available.
#33 0x00000000 in ?? ()
No symbol table info available.
#34 0x00000000 in ?? ()
No symbol table info available.
#35 0x00000000 in ?? ()
No symbol table info available.
#36 0x00000000 in ?? ()
No symbol table info available.
#37 0x00000000 in ?? ()
No symbol table info available.
#38 0x00000000 in ?? ()
No symbol table info available.
#39 0x4805c4bb in _rtld_error () from /libexec/ld-elf.so.1
No symbol table info available.
Previous frame inner to this frame (corrupt stack?)
(gdb) thread apply all bt
(gdb) q
The program is running. Exit anyway? (y or n) y
%


Comment 7 OpenLDAP project 2014-08-01 21:03:36 UTC
Fixes made to HEAD
Fixes made to RE24