From: Stewart Smith Date: July 20 2012 2:14am Subject: Re: [PATCH] Sid_map::Sid_map calls DBUG which may have unitialized THR_KEY_mysys and thus crash List-Archive: http://lists.mysql.com/internals/38554 Message-Id: <87629jdvr9.fsf@flamingspork.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable Davi Arnaut 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. =2D-=20 Stewart Smith --=-=-= Content-Type: application/pgp-signature -----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----- --=-=-=--