[sqlite] mem1.zMalloc assertion fails

2013-03-05 Thread Μάριος Φραγκούλης
Hi All, I have compiled SQLite as part of a Linux kernel module (Linux version 3.2.0.35-generic) having set SQLITE_OMIT_FLOATING_POINT, SQLITE_THREADSAFE=0, SQLITE_OMIT_LOAD_EXTENSION, SQLITE_OMIT_BUILTIN_TEST and NDEBUG. I have configured SQLite to operate in-memory at all times by setting

Re: [sqlite] mem1.zMalloc assertion fails

2013-03-05 Thread Dan Kennedy
On 03/05/2013 07:19 PM, Μάριος Φραγκούλης wrote: Hi All, I have compiled SQLite as part of a Linux kernel module (Linux version 3.2.0.35-generic) having set SQLITE_OMIT_FLOATING_POINT, SQLITE_THREADSAFE=0, SQLITE_OMIT_LOAD_EXTENSION, SQLITE_OMIT_BUILTIN_TEST and NDEBUG. I have configured SQLite

Re: [sqlite] mem1.zMalloc assertion fails

2013-03-05 Thread Μάριος Φραγκούλης
I have not tapped the VVA_ONLY() definition. NDEBUG is included in the compilation options I use. Even if it wasn't included, SQLITE_DEBUG is not defined so SQLite would define NDEBUG in this case (if I understand correctly). It may be of interest that I have tapped some #if and #ifdef because of

Re: [sqlite] mem1.zMalloc assertion fails

2013-03-05 Thread Richard Hipp
On Tue, Mar 5, 2013 at 9:37 AM, Μάριος Φραγκούλης mfrank...@gmail.comwrote: I am using SQLite 3.6.22 . Why? That version is over 3 years old. The latest is 3.7.15.2 and 3.7.16 will be out soon. Any of the latest versions should be a drop-in replacement to 3.6.22 with the only noticeable

Re: [sqlite] mem1.zMalloc assertion fails

2013-03-05 Thread Dan Kennedy
On 03/05/2013 09:37 PM, Μάριος Φραγκούλης wrote: I have not tapped the VVA_ONLY() definition. NDEBUG is included in the compilation options I use. Even if it wasn't included, SQLITE_DEBUG is not defined so SQLite would define NDEBUG in this case (if I understand correctly). If I understand

Re: [sqlite] mem1.zMalloc assertion fails

2013-03-05 Thread Μάριος Φραγκούλης
You are absolutely right. I can't believe I didn't see that. Tested with no complaints. I will also update to latest version as noted. Thanks! 2013/3/5 Dan Kennedy danielk1...@gmail.com On 03/05/2013 09:37 PM, Μάριος Φραγκούλης wrote: I have not tapped the VVA_ONLY() definition. NDEBUG is