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

RE: back-sql with PostgreSQL on FreeBSD



> Thanks for your promptly reply,
>
> I have applied the following patch with little success.
>
> --- servers/slapd/back-sql/schema-map.c.orig    Wed Jan 21 02:44:21 2004
> +++ servers/slapd/back-sql/schema-map.c Thu Mar 18 22:42:33 2004
> @@ -453,7 +453,6 @@
>                 SQLFreeStmt( at_sth, SQL_CLOSE );
>         }
>         backsql_FreeRow( &oc_row );
> -       SQLFreeStmt( at_sth, SQL_DROP );
>         SQLFreeStmt( oc_sth, SQL_DROP );
>         si->bsql_flags |= BSQLF_SCHEMA_LOADED;
>         Debug( LDAP_DEBUG_TRACE, "<==load_schema_map()\n", 0, 0, 0 );
>
> And according to slapd log it crashes somewhere later, as
> <==load_schema_map() line in the debug.
>
> <==load_schema_map()
> <==backsql_get_db_conn()
> ==>backsql_free_db_conn()
> backsql_free_db_conn(): closing db connection
> ==>backsql_close_db_conn()
> slapd in free(): error: chunk is already free
> Abort trap (core dumped)

can you produce a stack backtrace, then?  free() is called so many times
in slapd!  In a while I'll be able to test it on my system and try to
debug this problem.

p.

-- 
Pierangelo Masarati
mailto:pierangelo.masarati@sys-net.it