-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 05/13/2010 12:56 PM, Pavel Ivanov wrote: > Roger, '-g' flag doesn't necessarily mean SQLITE_DEBUG turned on and > doesn't mean all debugging stuff turned on. This flag (if we're > talking about gcc)
We aren't talking about gcc, but rather Python's distutils which is used to build the APSW extension. By default the extension building includes the SQLite amalgamation statically inside. When -g is supplied to the distutils build command (via setup.py if you are familiar with Python packages) then I have code that disables NDEBUG and enables SQLITE_DEBUG. For whatever reason Python's distutils always calls gcc with "-O2 -g" in normal or debug modes. > Obviously optimizer switched order of changing owner and nRef. So my > application is also prone to this kind of failure. You didn't compile with SQLITE_DEBUG in that disassembly. The owner and nRef fields are never even used in normal builds, just pointlessly updated. Roger -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkvsceoACgkQmOOfHg372QQIwQCgt2tPk3Yr69Eju/jvL+lZCdu4 ZQMAoOIQDd9uHmiRup813QW+kUhNfHAQ =LIMl -----END PGP SIGNATURE----- _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users