SQLite

All files named ”test/malloc.test”
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History for test/malloc.test

2025-03-27
14:32
[f7781c8151] part of check-in [f96a5346e3] In Tcl, always use eq/ne for comparing strings, not ==/!= (check-in: [f96a5346e3] user: jan.nijtmans branch: cygwin-fixes, size: 27826)
2018-01-24
06:30
[18dd1c4188] part of check-in [49e58e645e] Update a couple of test scripts so that they work on F2FS file-systems that support atomic transactions. (check-in: [49e58e645e] user: dan branch: trunk, size: 27824)
2015-04-25
12:20
[21c213365f] part of check-in [08ec9f2f5a] Fix an obscure memory leak that could follow an OOM in where.c. (check-in: [08ec9f2f5a] user: dan branch: trunk, size: 27789)
2014-08-14
14:02
[96939d2d1a] part of check-in [a608fd1d52] Merge the pre-3.8.6 changes into the threads branch. (check-in: [a608fd1d52] user: drh branch: threads, size: 27318)
2014-08-12
13:38
[4eb83876df] part of check-in [4c29182722] If SQLITE_TEST_REALLOC_STRESS is defined, extend the op-code array used by virtual-machine programs by one element at a time, instead of doubling its size with each realloc(). (check-in: [4c29182722] user: dan branch: trunk, size: 26147)
2014-05-02
17:12
[ada8ae1519] part of check-in [e15f47064b] Fix some broken asserts in btree.c and vdbeaux.c that may fail following an OOM error. (check-in: [e15f47064b] user: dan branch: threads, size: 27294)
2014-04-01
10:19
[26ae08a09c] part of check-in [59cd5229e2] Fix a problem with OOM handling in the sorter code. (check-in: [59cd5229e2] user: dan branch: threads, size: 26698)
2013-03-21
21:20
[fd368e31fe] part of check-in [6f6e2d5094] Many spelling fixes in comments. No changes to code. (check-in: [6f6e2d5094] user: mistachkin branch: trunk, size: 26123)
2011-10-21
19:06
[bc745155ff] part of check-in [aed2bf7a3c] Purge lingering references to SQLITE_STAT2 from the code and test scripts. (check-in: [aed2bf7a3c] user: drh branch: trunk, size: 26122)
2011-08-02
00:57
[8c727fe29f] part of check-in [9007586fda] Add retry logic for AV defense to winOpen. Also, refactor test suite to allow the key Tcl file operations (e.g. copy and delete) to be retried. (check-in: [9007586fda] user: mistachkin branch: winopen-retry-logic, size: 27144)
2011-06-14
14:18
[76017be66c] part of check-in [0185c4b689] Fix a memory leak that can follow an OOM error in a user-function that uses sqlite3_set_auxdata(). (check-in: [0185c4b689] user: dan branch: trunk, size: 27158)
2011-04-05
02:21
[e56c9c3358] part of check-in [57e0919b08] Added ifcapable utf16 to a few test cases; (check-in: [57e0919b08] user: shaneh branch: trunk, size: 26833)
2010-07-03
10:00
[927e6c8668] part of check-in [62a1010177] Fix an assert() in pager.c added by the previous commit. And various problems with test scripts in autovacuum and in-memory journal mode. (check-in: [62a1010177] user: dan branch: mistake, size: 26826)
2009-08-19
14:34
[d23580e15c] part of check-in [aa728e06ce] Clean up sqlite_stat2 related code. Add test cases. (check-in: [aa728e06ce] user: dan branch: trunk, size: 26748)
2009-06-24
13:13
[7d7e1f04e6] part of check-in [3b8f9dec24] Disable the new malloc-37 test when locking_mode==exclusive. The test basically works, but sometimes reports "database is locked" instead of "out of memory" and that messes up the error reporting. (CVS 6811) (check-in: [3b8f9dec24] user: drh branch: trunk, size: 25732)
2009-06-22
05:43
[2d33aed76c] part of check-in [971a9650f6] If an OOM error occurs just after obtaining a shared lock on the database file, release the lock before returning. (CVS 6795) (check-in: [971a9650f6] user: danielk1977 branch: trunk, size: 25647)
2009-06-06
16:08
[3db0f384c4] part of check-in [4d129bee69] Fix an error in the malloc.test test script causing a small buffer overread. (CVS 6725) (check-in: [4d129bee69] user: danielk1977 branch: trunk, size: 24921)
2009-04-09
01:23
[cd2b9f515b] part of check-in [0c41f7cff4] Enhance sqlite3_shutdown() so that it automatically invokes sqlite3_reset_auto_extension(). This is a harmless no-op if applications are already calling sqlite3_reset_auto_extension() prior to sqlite3_shutdown(). And it prevents possible memory corruption if they do not. So it works either way. Most of the changes are to the test cases. (CVS 6475) (check-in: [0c41f7cff4] user: drh branch: trunk, size: 24912)
2009-03-19
18:51
[7388109bcc] part of check-in [cc0d925669] Fix a couple of fairly obscure cases where an assert() could fail following a malloc failure. (CVS 6360) (check-in: [cc0d925669] user: danielk1977 branch: trunk, size: 24866)
2009-02-25
08:56
[8180b651cc] part of check-in [a3695b98f6] Minor changes and coverge tests for "SELECT count(*)" optimization. (CVS 6324) (check-in: [a3695b98f6] user: danielk1977 branch: trunk, size: 24250)
2009-02-04
08:17
[8e3ad667ef] part of check-in [72745bde90] Fix a bug in malloc.test causing the exclusive permutation to fail. Changes to test code only. (CVS 6251) (check-in: [72745bde90] user: danielk1977 branch: trunk, size: 23529)
2009-01-16
16:40
[228840643d] part of check-in [9f07d2d922] Fix a change-counter bug similar to #3584. This one is much more obscure though, requiring a transient IO or malloc error to occur while running in exclusive mode. (CVS 6189) (check-in: [9f07d2d922] user: danielk1977 branch: trunk, size: 23453)
2009-01-10
16:15
[95e94f8a3d] part of check-in [855c4093cf] Improve coverage of pager.c. (CVS 6158) (check-in: [855c4093cf] user: danielk1977 branch: trunk, size: 21045)
11:13
[86f378c522] part of check-in [3d7a8de248] Fix a bug in the previous commit - use SQL comments instead of Tcl comments in SQL blocks. (CVS 6155) (check-in: [3d7a8de248] user: danielk1977 branch: trunk, size: 20621)
11:10
[db0bed8b55] part of check-in [000aedb047] Add a malloc failure test case that covers a few previously untested lines in pager.c (CVS 6154) (check-in: [000aedb047] user: danielk1977 branch: trunk, size: 20616)
2008-11-21
09:43
[6bfb1b9518] part of check-in [4c765758c1] Fix an assert() failure that can occur after an OOM error. (CVS 5939) (check-in: [4c765758c1] user: danielk1977 branch: trunk, size: 19580)
2008-11-03
09:39
[248fc5e0be] part of check-in [aca6b260c0] Modify an assert() statement to fix #3473. No other code changes. (CVS 5856) (check-in: [aca6b260c0] user: danielk1977 branch: trunk, size: 19517)
2008-10-06
05:32
[2fa3511085] part of check-in [98ca5580f5] Allow INDEXED BY and NOT INDEXED clauses in SELECT statements. (CVS 5766) (check-in: [98ca5580f5] user: danielk1977 branch: trunk, size: 19403)
2008-09-23
16:41
[6ff6063f75] part of check-in [046ef07261] Always transform error code SQLITE_IOERR_NOMEM to SQLITE_NOMEM before returning. This was already happening in most places. (CVS 5738) (check-in: [046ef07261] user: danielk1977 branch: trunk, size: 19075)
2008-09-22
17:22
[c5a70f6b9c] part of check-in [118dc0ba08] Fix a memory leak that can follow a malloc failure in sqlite3_initialize. (CVS 5731) (check-in: [118dc0ba08] user: danielk1977 branch: trunk, size: 18439)
2008-09-05
05:02
[cdc0bb8675] part of check-in [0b8ee83f2e] Fix a problem in btree.c preventing an OOM error from being propagated up to the caller. (CVS 5677) (check-in: [0b8ee83f2e] user: danielk1977 branch: trunk, size: 18182)
2008-08-27
19:01
[f87273951a] part of check-in [ce9c74eaab] If any error occurs during sqlite3_open(), move the database handle into "sick" state. When in the sick state the user can use sqlite3_errcode() and sqlite3_errmsg(), but not much else. (CVS 5628) (check-in: [ce9c74eaab] user: danielk1977 branch: trunk, size: 17319)
2008-07-07
14:56
[69f5bb5a13] part of check-in [b96bcaa197] Test a couple of specific malloc() failures that were not tested before. (CVS 5350) (check-in: [b96bcaa197] user: danielk1977 branch: trunk, size: 17209)
2008-06-19
18:17
[ca6d4ebb98] part of check-in [d22cd2a59f] Move the malloc() failure simulation out of malloc.c and into a separate sqlite3_mem_methods interface. Still some related changes to come. (CVS 5250) (check-in: [d22cd2a59f] user: danielk1977 branch: trunk, size: 16614)
2008-04-17
14:16
[fa208f99ed] part of check-in [8efb7f4ffb] In exclusive locking mode, commit by zeroing the first 28 bytes of the journal file, not by truncating the journal. Overwriting is much faster than truncating. (CVS 5023) (check-in: [8efb7f4ffb] user: drh branch: trunk, size: 16605)
2008-04-03
10:13
[7b9eb0617f] part of check-in [fd97f8762c] Change the allocator in mem2.c (used when SQLITE_MEMDEBUG is defined) so that allocations are not rounded up to the nearest 4 byte boundary. Fix a couple of errors in malloc.test related to sqlite3OsAccess() returning -1. (CVS 4956) (check-in: [fd97f8762c] user: danielk1977 branch: trunk, size: 16624)
2008-02-18
22:24
[7da6e318b0] part of check-in [63da5d9754] Add the memory fault simulator to mem5.c. Enable soft heap limit on mem5.c. Limit the size of hash tables and the vdbefifo when using mem5.c. (CVS 4795) (check-in: [63da5d9754] user: drh branch: trunk, size: 16617)
2008-01-24
14:27
[13ab98fb05] part of check-in [c6635a71db] Fix a segfault that may follow a malloc failure during compilation of an INSTEAD OF trigger. (CVS 4749) (check-in: [c6635a71db] user: danielk1977 branch: trunk, size: 16629)
2008-01-23
17:13
[72b7bec790] part of check-in [9d98a3f0dd] Fix another segfault that can occur following a malloc failure in the SQL compiler. (CVS 4748) (check-in: [9d98a3f0dd] user: danielk1977 branch: trunk, size: 16178)
15:44
[d596bd25b1] part of check-in [6bd8db3839] Fix a couple of segfaults that could occur after a malloc() failure in the SQL compiler. (CVS 4747) (check-in: [6bd8db3839] user: danielk1977 branch: trunk, size: 16010)
2008-01-19
23:50
[010b60540c] part of check-in [010f7b780c] Additional test coverage improvements. Test coverage now stands at 98.73%. (CVS 4731) (check-in: [010f7b780c] user: drh branch: trunk, size: 15954)
2008-01-16
17:46
[760f346ba1] part of check-in [5807921f5a] Get all tests running without memory leaks. (CVS 4714) (check-in: [5807921f5a] user: drh branch: trunk, size: 15676)
2007-11-28
22:36
[debc0cb41b] part of check-in [221aee72be] Add the {quote: StrAccum} object for accumulating strings. Revamp xprintf to use the new object. Rewrite the group_concat() function to use the new object. Productize and test the group_concat() function. (CVS 4578) (check-in: [221aee72be] user: drh branch: trunk, size: 15666)
2007-11-16
14:55
[93fca57780] part of check-in [c91bc8d333] Fix a crash that can occur after a malloc failure. Ticket #2775. (CVS 4547) (check-in: [c91bc8d333] user: danielk1977 branch: trunk, size: 15657)
2007-10-09
08:29
[16ee557422] part of check-in [07c00fffe5] Fixes to the test suite (no code changes) so that quick.test runs with OMIT_ATTACH builds. #2706. (CVS 4480) (check-in: [07c00fffe5] user: danielk1977 branch: trunk, size: 15642)
2007-10-03
15:02
[fc062a1233] part of check-in [7d3f0b149b] Add a test case to malloc.test. (CVS 4456) (check-in: [7d3f0b149b] user: danielk1977 branch: trunk, size: 15579)
08:46
[17366a4f76] part of check-in [12eca32a6a] Add automatic recovery from the pager "error-state". Also add a new error code - SQLITE_IOERR_NOMEM. (CVS 4454) (check-in: [12eca32a6a] user: danielk1977 branch: trunk, size: 14243)
2007-09-12
17:01
[51675aa9db] part of check-in [c8405b15c0] Fixes for compilation/testing when the various OMIT macros are defined. (CVS 4423) (check-in: [c8405b15c0] user: danielk1977 branch: trunk, size: 13879)
2007-09-04
01:25
[5b4ac16e0e] part of check-in [1166f9c7d1] Fix the malloc-10 test in malloc.test so that it will run on windows when invoked from exclusive3.test. (CVS 4389) (check-in: [1166f9c7d1] user: drh branch: trunk, size: 13359)
2007-09-03
11:04
[bb1c95fb53] part of check-in [c0ce631964] Handle transient malloc() failures in sqlite3CreateFunc(). (CVS 4371) (check-in: [c0ce631964] user: danielk1977 branch: trunk, size: 13261)
2007-08-29
12:31
[52306f056e] part of check-in [e38ef81b85] Modifications to the malloc failure tests to test transient and persistent failures. (CVS 4321) (check-in: [e38ef81b85] user: danielk1977 branch: trunk, size: 13178)
2007-08-22
20:18
[dbfaedfca7] part of check-in [db818430e9] The malloc.test script now passes all tests with no errors. (CVS 4271) (check-in: [db818430e9] user: drh branch: trunk, size: 13106)
2007-08-16
04:39
[42e71334eb] part of check-in [161643a694] Add a test for malloc() failure when compiling a trigger step of the form "INSERT INTO ... SELECT ...". Currently causes a segfault. (CVS 4232) (check-in: [161643a694] user: danielk1977 branch: trunk, size: 13064)
2007-05-30
10:36
[45a81af632] part of check-in [7522d2fb32] Add some extra tests for malloc failure during expression parsing and execution using fuzzily generated SQL. (CVS 4043) (check-in: [7522d2fb32] user: danielk1977 branch: trunk, size: 12985)
2007-04-19
11:09
[c468c018ee] part of check-in [8795d11c3c] Fix a bug whereby sqlite3_prepare_v2() could return both an out-of-memory error and a valid statement handle. (CVS 3858) (check-in: [8795d11c3c] user: danielk1977 branch: trunk, size: 16371)
2007-03-30
07:10
[d868a6b98b] part of check-in [19fc3d7896] Extra test cases to improve coverage of main.c. (CVS 3755) (check-in: [19fc3d7896] user: danielk1977 branch: trunk, size: 16016)
2007-03-29
17:07
[2c39d97c8d] part of check-in [0b22ce3637] Add a couple of test cases to improve coverage testing. (CVS 3747) (check-in: [0b22ce3637] user: danielk1977 branch: trunk, size: 16017)
2007-03-26
12:26
[33020a8779] part of check-in [1274549037] Run some malloc() tests with exclusive-access mode. (CVS 3717) (check-in: [1274549037] user: danielk1977 branch: trunk, size: 15865)
2007-03-17
10:26
[2f234703cd] part of check-in [c4be8d9949] Modifications to crash-test infrastructure. (CVS 3695) (check-in: [c4be8d9949] user: danielk1977 branch: trunk, size: 15855)
2006-10-18
23:26
[0eb9fcffa8] part of check-in [ee4894b499] Fix a problems that arise if malloc() fails while compiling SELECT statements within a TRIGGER. (CVS 3478) (check-in: [ee4894b499] user: drh branch: trunk, size: 15834)
2006-10-04
11:55
[7831ab6ceb] part of check-in [eef0ec0d7a] Tests cases automatically remove many of their temporary files. (CVS 3463) (check-in: [eef0ec0d7a] user: drh branch: trunk, size: 15735)
2006-07-11
12:40
[4d5d382e40] part of check-in [eb91612f46] Fix a NULL pointer deference following malloc failure. Bug discovered by klocwork. (CVS 3328) (check-in: [eb91612f46] user: drh branch: trunk, size: 15652)
2006-06-26
12:50
[98a189ae3d] part of check-in [6a63f76c8d] Fix a file descriptor leak following malloc failure on DROP TABLE IF EXISTS. (CVS 3296) (check-in: [6a63f76c8d] user: drh branch: trunk, size: 15644)
2006-04-10
13:37
[684510c0e6] part of check-in [9d95750e85] Follow-up to check-in (3164). Make sure SQLITE_NOMEM is returned after a memory allocation failure. It is not sufficent to return an "out of memory" error message. The return code needs to be SQLITE_NOMEM. (CVS 3172) (check-in: [9d95750e85] user: drh branch: trunk, size: 15572)
2006-04-05
11:57
[8580d8fe1f] part of check-in [3538a4e30f] Make sure SQLITE_NOMEM is reported out on a malloc failure in an ATTACH even if the malloc failure reports within a nested calls to sqlite3_prepare(). (CVS 3164) (check-in: [3538a4e30f] user: drh branch: trunk, size: 15293)
2006-01-24
10:58
[7d875b2b59] part of check-in [153940af5a] General test coverage improvements. (CVS 3022) (check-in: [153940af5a] user: danielk1977 branch: trunk, size: 14845)
2006-01-18
05:51
[ce6d1e7e79] part of check-in [86eab9e53d] Handle malloc() failures that occur in open16() and errmsg16(). (CVS 2967) (check-in: [86eab9e53d] user: danielk1977 branch: trunk, size: 13986)
04:26
[095d23a384] part of check-in [95c5903f36] Handle malloc() failures that occur inside create_collation() calls. (CVS 2966) (check-in: [95c5903f36] user: danielk1977 branch: trunk, size: 12226)
2006-01-17
13:21
[34c2c0ce7f] part of check-in [0505405fb9] Various fixes that allow the malloc() failure tests to pass again. (CVS 2963) (check-in: [0505405fb9] user: danielk1977 branch: trunk, size: 11583)
2006-01-06
14:32
[6245418d1b] part of check-in [2529c2e11f] Change the OS interface layer to use traditional direct function call implementations instead of the more complicated virtual function table. Omit the asynchronous I/O demo. (CVS 2870) (check-in: [2529c2e11f] user: drh branch: trunk, size: 11540)
2005-12-06
12:52
[a5ed721cf7] part of check-in [e1606658f1] Some elements of the new malloc() failure handling. Not all cases work properly yet. Also, library is not threadsafe if malloc() fails right now. (CVS 2800) (check-in: [e1606658f1] user: danielk1977 branch: trunk, size: 11594)
2005-09-08
00:13
[666c77a878] part of check-in [bcc7d722ce] All regression tests now pass. But I am sure there must still be problems. New tests need to be added. (CVS 2666) (check-in: [bcc7d722ce] user: drh branch: trunk, size: 11208)
2005-08-19
01:07
[06d8dd2ed8] part of check-in [0b6cd5acc0] More test coverage enhancements. (CVS 2600) (check-in: [0b6cd5acc0] user: drh branch: trunk, size: 11209)
2005-01-22
03:39
[b7bc72bb16] part of check-in [764b55adb5] Test script changes: Bug fix and cleanup on ioerr tests. Also, don't use TCL "file copy" command on windows. (CVS 2264) (check-in: [764b55adb5] user: danielk1977 branch: trunk, size: 11193)
2005-01-19
03:52
[180f7f7e19] part of check-in [27cf83224c] Another fix along the same lines as (2234) (CVS 2235) (check-in: [27cf83224c] user: danielk1977 branch: trunk, size: 11207)
2005-01-13
13:35
[4f34764cf8] part of check-in [94cf91cc5d] Tidy up malloc.test a bit. (CVS 2207) (check-in: [94cf91cc5d] user: danielk1977 branch: trunk, size: 11163)
11:07
[a301c880f6] part of check-in [0428a14801] Test cases to improve coverage of pager.c. (CVS 2205) (check-in: [0428a14801] user: danielk1977 branch: trunk, size: 16687)
02:14
[73fa135dac] part of check-in [8378455f32] Fixes to 'configure' build system. Also extra coverage for main.c. (CVS 2204) (check-in: [8378455f32] user: danielk1977 branch: trunk, size: 15694)
2005-01-12
13:04
[ad87a748a7] part of check-in [1c19e8bdca] Fix a test bug introduce with the previous commit. (CVS 2203) (check-in: [1c19e8bdca] user: danielk1977 branch: trunk, size: 15684)
12:44
[5a18f95321] part of check-in [4e28c82ada] Tests to improve coverage of main.c. (CVS 2202) (check-in: [4e28c82ada] user: danielk1977 branch: trunk, size: 15013)
09:10
[c3985c0a5a] part of check-in [2b3e21ce2e] Tests to improve coverage of vdbeaux.c. (CVS 2201) (check-in: [2b3e21ce2e] user: danielk1977 branch: trunk, size: 13316)
07:15
[79c5e0676a] part of check-in [319bb4a906] Tests to improve coverage of vdbemem.c. (CVS 2200) (check-in: [319bb4a906] user: danielk1977 branch: trunk, size: 12000)
2005-01-11
13:02
[74b9d6b8e6] part of check-in [a6b4572207] Test cases to improve coverage of vdbe.c. (CVS 2193) (check-in: [a6b4572207] user: danielk1977 branch: trunk, size: 10489)
2005-01-03
01:33
[c20b7208d8] part of check-in [586acc85b1] Fix typos in comments in test code. (Oops. This check-in also picked up some unrelated changes to documentation.) (CVS 2175) (check-in: [586acc85b1] user: drh branch: trunk, size: 9626)
2004-11-20
19:18
[b4674cbb5a] part of check-in [519bc9d997] Rig the sqliteMalloc() routine so that we can make it fail multiple times in a row. Modify the malloc.test procedure to make malloc fail in this way and verify that the failures are still handled correctly. (CVS 2121) (check-in: [519bc9d997] user: drh branch: trunk, size: 9626)
2004-06-30
09:49
[769b240d89] part of check-in [152e9940b9] Coverage tests for vacuum.c (CVS 1776) (check-in: [152e9940b9] user: danielk1977 branch: trunk, size: 9620)
2004-06-26
13:51
[a78617ce82] part of check-in [3c8512bc54] Fix a problem where a file was not being closed after a malloc() failure. (CVS 1741) (check-in: [3c8512bc54] user: danielk1977 branch: trunk, size: 8213)
2004-06-19
00:16
[082206002c] part of check-in [d705d051be] Change the name of the TCL command from "sqlite" to "sqlite3" so that both SQLite version 2 and SQLite version 3 can be used by Tcl at the same time. (CVS 1626) (check-in: [d705d051be] user: drh branch: trunk, size: 7587)
2004-05-27
17:22
[4e19b96d9c] part of check-in [287f86731c] Remove the COPY command. (CVS 1477) (check-in: [287f86731c] user: drh branch: trunk, size: 7582)
2004-02-14
01:39
[2cfcffb7c8] part of check-in [41b6ad78a6] Disable the malloc.test tests if not compiled with -DMEMORY_DEBUG (CVS 1239) (check-in: [41b6ad78a6] user: drh branch: trunk, size: 6903)
2002-05-23
02:09
[7ba32a9ebd] part of check-in [01ad352c3c] Fix some places where a malloc() failure would lead to a segfault. (CVS 580) (check-in: [01ad352c3c] user: drh branch: trunk, size: 6903)
2001-10-22
02:58
[70fdd0812e] part of check-in [f8328a5f11] More changes for 2.0.7. (CVS 293) (check-in: [f8328a5f11] user: drh branch: trunk, size: 5927)
2001-09-16
00:13
[f1400a8d00] part of check-in [4e926efe2b] Disclaimed copyright. Preparing for release 2.0. (CVS 250) (check-in: [4e926efe2b] user: drh branch: trunk, size: 2632)
2001-04-12
23:21
[3daa97f6a9] part of check-in [3bde128418] More testing (CVS 209) (check-in: [3bde128418] user: drh branch: trunk, size: 3169)
2001-04-11
14:29
Added: [47777dd569] part of check-in [555351dd19] :-) (CVS 208) (check-in: [555351dd19] user: drh branch: trunk, size: 2393)