Re: [PATCH] Sid_map::Sid_map calls DBUG which may have unitialized THR_KEY_mysys and thus crash

Stewart Smith <[email protected]> Fri, 20 Jul 2012 12:14:18 +1000
Newsgroups gmane.comp.db.mysql.devel
Message-ID <[email protected]>
Davi Arnaut <[email protected]> writes:
> For what it's worth, I think the best thing here is to not use DBUG at
> all inside constructors of static objects, let's not rely on the order
> of initialization. This problems keeps popping up again and again, it
> might be worth tweaking DBUG to abort if used inside a constructor.

I completely agree - that would be the best way by far. Things can
simply too easily not be inited correctly.

-- 
Stewart Smith
signature.asc (application/pgp-signature, 835 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBAgAGBQJQCL76AAoJEP08notdpDyvFawP/1ZG6KQ8p/+qiIs8pfb+s+XV
DHzgDgLxN1o3j6muETkFC6KonxuVUEhWivso8uzcrBKCx04fSTNJ1vPhnF1zHCbV
/NtV8+RbcEaUo1mBCvcPCMyzGS3Kij+xjQYPuomolfve8lNFy5SORn0xCCvLJZXq
s4gHqei0rokw+iAmLeddbEVu46N3yiskWClUXSRE/GSyIjAMHl141U16uZOqXx5I
IFbm3Q/BYkAtbEddzVSzNwihDF1HsRhnYyxWNVWDgeqFoQnrz+bayz1qS/fee48E
OVY3Su+Ktj/WVR9X6AgTTMh4wUD2aCMZ6UOedUXgLpnKEpRfi42KA0P/3quwGi/Q
npShGatXqm2/UbskVTXM1zEmrstzDO9JnirK8FtXToGBMGLI5KgZF2dwKKdFXc+4
RkPLEo7B1OY/74vMooHCzQ+RTDGA8KP1pC5JxehCg4uzVMXMu4n3NJOvUU5A+Pzd
2UoWQGf6cuTZGZo8x7ipIpe+/cnGmPXa+XjfV9mQG/yIsAZ6u3wheWl3ht+0zo4V
+7K1s6fnmUvuuRkCQ1A+pYvFzafJrFpxgUyJ/HXQ8UyVCt47SX+R0S4202+nAkmA
AL4NQlaj2hH6XFXt01KwJwhlcouhbs4NraphaMrY3nASaGzptmxiWd8sUZDCKckZ
XEeQwS2O/eCY2ur4QQcC
=Quz1
-----END PGP SIGNATURE-----