[Date Prev][Date Next]
Re: (ITS#8350) lmdb SIGBUS error on full partition and possible double free issue
- To: openldap-its@OpenLDAP.org
- Subject: Re: (ITS#8350) lmdb SIGBUS error on full partition and possible double free issue
- From: email@example.com
- Date: Fri, 15 Jan 2016 07:59:59 +0000
- Auto-submitted: auto-generated (OpenLDAP-ITS)
> I'm not sure if this next one is an issue or just incorrect usage on my part.
> So take with a grain of salt.
> After getting an EIO (deliberate out of storage space) from a mdb_txn_commit,
> the transaction would be mdb_txn_abort()ed. I then would close then env which
> would get a SIGABORT from a double-free on the env_close0 with env->txn0.
The docs say quite clearly, after txn_commit the txn must not be used again.
It has already been freed so you cannot use it with txn_abort.
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/