Hi,
We are facing dynamic memory pool corruption issue while using SQLite. Based on 
our investigation we suspect SQLite freeing memory bypassing the memory 
management API'S registered as below.

We have registered the memory allocation routines as below.
static const sqlite3_mem_methods mqxmem = {
        mqxMalloc,
        mqxFree,
        mqxRealloc,
        mqxSize,
        mqxRoundup,
        mqxInit,
        mqxShutdown,
        NULL
    };
sqlite3_config(SQLITE_CONFIG_MALLOC, &mqxmem);

Despite this, is there any sort of configurations by which SQLite might still 
use its own or standard library APIs to allocate/reallocate or free the memory, 
bypassing the memory management APIs registered above?
We are using SQLite version 3.7.10 running on Freescale MQX hosted on ARM A5 
Cortex processor.
We have enabled SQLITE_ENABLE_MEMORY_MANAGEMENT configuration and using 
sqlite3_release_memory()<https://www.sqlite.org/c3ref/release_memory.html> very 
often, after every fetch/write operations.

Thanks & Regards,
Ganesan.S
_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to