Pierangelo Masarati <ando(a)sys-net.it> writes:
> dieter(a)dkluenter.de wrote:
>
>> (gdb) bt
>> #0 0xb7a67139 in free () from /lib/libc.so.6
>> #1 0xb7ec128a in ber_memfree_x (p=0x2001, ctx=0x0) at memory.c:152
>> #2 0x0808f556 in ch_free ()
>> #3 0xb76f458c in ppolicy_restrict (op=0xa0a50d54, rs=0xa0a51148)
>> at ppolicy.c:1245
>
> I suspect this free occurs an internal operation initiated with
> connection_fake_init(); can you check, from the core, if the value of
> op->o_conn->c_conn_idx is -1?
OK, now again frome the beginning:
,----[ backtrace ]
| (gdb) bt
| #0 0xb7ac6139 in free () from /lib/libc.so.6
| #1 0xb7f2028a in ber_memfree_x (p=0x2001, ctx=0x0) at memory.c:152
| #2 0x0809b1f2 in ch_free (ptr=0x2009) at ch_malloc.c:139
| #3 0xb775358c in ppolicy_restrict (op=0xa2253d54, rs=0xa2254148)
| at ppolicy.c:1245
| #4 0x080f0c5a in overlay_op_walk (op=0xa2253d54, rs=0xa2254148,
| which=op_search, oi=0x829d5d8, on=0x82a1190) at backover.c:642
| #5 0x080f0e91 in over_op_func (op=0xa2253d54, rs=0xa2254148, which=op_search)
| at backover.c:704
| #6 0x080f0f15 in over_op_search (op=0xa2253d54, rs=0xa2254148)
| at backover.c:726
| #7 0xb773f893 in dds_expire (ctx=0xa2254238, di=0x82a4898) at dds.c:181
| #8 0xb773fe4f in dds_expire_fn (ctx=0xa2254238, arg=0x829cc48) at dds.c:260
| #9 0xb7f334d2 in ldap_int_thread_pool_wrapper (xpool=0x82507b0) at tpool.c:625
| #10 0xb7d4f192 in start_thread () from /lib/libpthread.so.0
| #11 0xb7b2102e in clone () from /lib/libc.so.6
`----
,----[ frame ]
| (gdb) frame 3
| #3 0xb775358c in ppolicy_restrict (op=0xa2253d54, rs=0xa2254148)
| at ppolicy.c:1245
| 1245 ch_free( pwcons[op->o_conn->c_conn_idx].dn.bv_val );
| (gdb)
`----
This shows three memory regions
,----[ memory values ]
| (gdb) x/c 0xb775358c
| 0xb775358c <ppolicy_restrict+108>: -117 '\213'
| (gdb)
|
| (gdb) x/c 0xa2253d54
| 0xa2253d54: 40 '('
| (gdb)
|
| (gdb) x/c 0xa2254148
| 0xa2254148: 0 '\0'
| (gdb)
`----
I hope this is more informative.
-Dieter
--
Dieter Klünter | Systemberatung
http://www.dkluenter.de
GPG Key ID:8EF7B6C6
Pierangelo Masarati <ando(a)sys-net.it> writes:
> dieter(a)dkluenter.de wrote:
>
>> (gdb) bt
>> #0 0xb7a67139 in free () from /lib/libc.so.6
>> #1 0xb7ec128a in ber_memfree_x (p=0x2001, ctx=0x0) at memory.c:152
>> #2 0x0808f556 in ch_free ()
>> #3 0xb76f458c in ppolicy_restrict (op=0xa0a50d54, rs=0xa0a51148)
>> at ppolicy.c:1245
>
> I suspect this free occurs an internal operation initiated with
> connection_fake_init(); can you check, from the core, if the value of
> op->o_conn->c_conn_idx is -1?
Sorry, I'm a bit stupid.
(gdb) frame 3
#3 0xb76e758c in ppolicy_restrict (op=0xa09e4d54, rs=0xa09e5148) at ppolicy.c:1245
1245 ch_free( pwcons[op->o_conn->c_conn_idx].dn.bv_val );
(gdb)
-Dieter
--
Dieter Klünter | Systemberatung
http://www.dkluenter.de
GPG Key ID:8EF7B6C6
Pierangelo Masarati <ando(a)sys-net.it> writes:
> dieter(a)dkluenter.de wrote:
>
>> (gdb) bt
>> #0 0xb7a67139 in free () from /lib/libc.so.6
>> #1 0xb7ec128a in ber_memfree_x (p=0x2001, ctx=0x0) at memory.c:152
>> #2 0x0808f556 in ch_free ()
>> #3 0xb76f458c in ppolicy_restrict (op=0xa0a50d54, rs=0xa0a51148)
>> at ppolicy.c:1245
>
> I suspect this free occurs an internal operation initiated with
> connection_fake_init(); can you check, from the core, if the value of
> op->o_conn->c_conn_idx is -1?
sorry :-(
(gdb) gcore
*** buffer overflow detected ***: gdb terminated
======= Backtrace: =========
-Dieter
--
Dieter Klünter | Systemberatung
http://www.dkluenter.de
GPG Key ID:8EF7B6C6
dieter(a)dkluenter.de wrote:
> (gdb) bt
> #0 0xb7a67139 in free () from /lib/libc.so.6
> #1 0xb7ec128a in ber_memfree_x (p=0x2001, ctx=0x0) at memory.c:152
> #2 0x0808f556 in ch_free ()
> #3 0xb76f458c in ppolicy_restrict (op=0xa0a50d54, rs=0xa0a51148)
> at ppolicy.c:1245
I suspect this free occurs an internal operation initiated with
connection_fake_init(); can you check, from the core, if the value of
op->o_conn->c_conn_idx is -1?
p.
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
Email: pierangelo.masarati(a)sys-net.it
---------------------------------------
marg(a)rz.tu-clausthal.de wrote:
> Hello,
>
> fig. 3.3 in
>
> http://www.openldap.org/doc/admin24/config.html
>
> mentions "slurpd", while the text was updated to reflect syncrepl.
>
> bye
> Christian
Thanks, I haven't had time to update the pics yet.
--
Kind Regards,
Gavin Henry.
OpenLDAP Engineering Team.
E ghenry(a)OpenLDAP.org
Community developed LDAP software.
http://www.openldap.org/project/
Full_Name: Dieter Kluenter
Version: HEAD
OS: Linux
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (84.142.190.40)
core.ldif
olcAttributeTypes: ( 2.5.4.6 NAME ( 'c' 'countryName' )
DESC 'RFC2256: ISO-3166 country 2-letter code'
SUP name SINGLE-VALUE )
core.schema
attributetype ( 2.5.4.6 NAME 'c'
DESC 'RFC2256: ISO-3166 country 2-letter code'
SUP name
SYNTAX 1.3.6.1.4.1.1466.115.121.1.11
SINGLE-VALUE )
As far as I understand, core.schema is correct here.
-Dieter
Hello,
fig. 3.3 in
http://www.openldap.org/doc/admin24/config.html
mentions "slurpd", while the text was updated to reflect syncrepl.
bye
Christian
--
Christian Marg mail : mailto:marg@rz.tu-clausthal.de
Dezernat 2 TU Clausthal web : http://www.tu-clausthal.de
D-38678 Clausthal-Zellerfeld fon : 05323/72-2107
Germany jabber: ifcma(a)jabber.tu-clausthal.de