Issue 8691 - slapd crashes during shutdown
Summary: slapd crashes during shutdown
Status: UNCONFIRMED
Alias: None
Product: LMDB
Classification: Unclassified
Component: liblmdb (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-11 11:29 UTC by derrick.mckee@gmail.com
Modified: 2020-03-23 15:50 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 derrick.mckee@gmail.com 2017-07-11 11:29:22 UTC
Full_Name: Derrick McKee
Version: OPENLDAP_REL_ENG_2_4_45
OS: Windows
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (2404:f801:8028:1::17f)


Compiling OpenLDAP using clang on Windows with MinGW results in a binary that
crashes during shutdown.  The issue is with mdb_txn_abort in
libraries/liblmdb/mdb.c.  The initial txn does have a non-null child, however,
the address is a garbage address (i.e. containing a mix of 1 and 0 bits set in
the upper 16 bits in a 64-bit pointer).  This seems to indicate that somewhere
the code is expecting a 0 initialized memory area, when it isn't.

How to recreate:

CC=clang CFLAGS="-m64" ./configure --without-threads --without-tls
make depend && make
(using CMD.exe) ./servers/slapd/slapd
<user hits Ctrl-c>