-
Double free if INFORMATION_SCHEMA init() fails
--5vNYLRcllDrimb99
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Hi,
While trying to prevent InnoDB INFORMATION_SCHEMA plugins from
starting if the main innodb plugin is not started (problem described
here: http://venublog.com/2008/04/23/simpl...odb-plugin-10/)
I encountered a double free bug: http://bugs.mysql.com/36399
The problem Venu reported consists of the following:
1. INSTALL PLUGIN innodb_trx
2. (main innodb storage engine plugin is not loaded)
3. SELECT * FROM INFORMATION_SCHEMA.innodb_trx <-- crash
The solution is to prevent innodb_trx plugin from starting if the innodb
plugin is not started, but then, because of the double free bug
(http://bugs.mysql.com/36399) it will be like this:
1. INSTALL PLUGIN innodb_trx <-- crash becasue of Bug#36399
Can someone take a look at http://bugs.mysql.com/36399? It is somewhat
obvious and I crafted a patch that fixes it...
Thanks!
--=20
Vasil Dimov
moc.elcaro@vomid.lisav Software Developer @ Oracle/Innobase Oy
gro.DSBeerF@dv Committer @ FreeBSD.org
gro.d5v@dv Home @ Sofia, Bulgaria
--5vNYLRcllDrimb99
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
iEYEARECAAYFAkgXNnoACgkQFw6SP/bBpCDapACcCuas0Uh646RuQFXwN6jeHV8P
8ngAn0mWcLC6rHo59Q8FmZBj94pO9fBv
=hEkp
-----END PGP SIGNATURE-----
--5vNYLRcllDrimb99--