/ All files named "test/malloc.test"
Login

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

History for test/malloc.test

2018-01-24
06:30
[18dd1c41] part of check-in [49e58e64] Update a couple of test scripts so that they work on F2FS file-systems that support atomic transactions. (check-in: [49e58e64] user: dan branch: trunk, size: 27824)
2015-04-25
12:20
[21c21336] part of check-in [08ec9f2f] Fix an obscure memory leak that could follow an OOM in where.c. (check-in: [08ec9f2f] user: dan branch: trunk, size: 27789)
2014-08-14
14:02
[96939d2d] part of check-in [a608fd1d] Merge the pre-3.8.6 changes into the threads branch. (check-in: [a608fd1d] user: drh branch: threads, size: 27318)
2014-08-12
13:38
[4eb83876] part of check-in [4c291827] 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: [4c291827] user: dan branch: trunk, size: 26147)
2014-05-02
17:12
[ada8ae15] part of check-in [e15f4706] Fix some broken asserts in btree.c and vdbeaux.c that may fail following an OOM error. (check-in: [e15f4706] user: dan branch: threads, size: 27294)
2014-04-01
10:19
[26ae08a0] part of check-in [59cd5229] Fix a problem with OOM handling in the sorter code. (check-in: [59cd5229] user: dan branch: threads, size: 26698)
2013-03-21
21:20
[fd368e31] part of check-in [6f6e2d50] Many spelling fixes in comments. No changes to code. (check-in: [6f6e2d50] user: mistachkin branch: trunk, size: 26123)
2011-10-21
19:06
[bc745155] part of check-in [aed2bf7a] Purge lingering references to SQLITE_STAT2 from the code and test scripts. (check-in: [aed2bf7a] user: drh branch: trunk, size: 26122)
2011-08-02
00:57
[8c727fe2] part of check-in [9007586f] 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: [9007586f] user: mistachkin branch: winopen-retry-logic, size: 27144)
2011-06-14
14:18
[76017be6] part of check-in [0185c4b6] Fix a memory leak that can follow an OOM error in a user-function that uses sqlite3_set_auxdata(). (check-in: [0185c4b6] user: dan branch: trunk, size: 27158)
2011-04-05
02:21
[e56c9c33] part of check-in [57e0919b] Added ifcapable utf16 to a few test cases; (check-in: [57e0919b] user: shaneh branch: trunk, size: 26833)
2010-07-03
10:00
[927e6c86] part of check-in [62a10101] 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: [62a10101] user: dan branch: mistake, size: 26826)
2009-08-19
14:34
[d23580e1] part of check-in [aa728e06] Clean up sqlite_stat2 related code. Add test cases. (check-in: [aa728e06] user: dan branch: trunk, size: 26748)
2009-06-24
13:13
[7d7e1f04] part of check-in [3b8f9dec] 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: [3b8f9dec] user: drh branch: trunk, size: 25732)
2009-06-22
05:43
[2d33aed7] part of check-in [971a9650] If an OOM error occurs just after obtaining a shared lock on the database file, release the lock before returning. (CVS 6795) (check-in: [971a9650] user: danielk1977 branch: trunk, size: 25647)
2009-06-06
16:08
[3db0f384] part of check-in [4d129bee] Fix an error in the malloc.test test script causing a small buffer overread. (CVS 6725) (check-in: [4d129bee] user: danielk1977 branch: trunk, size: 24921)
2009-04-09
01:23
[cd2b9f51] part of check-in [0c41f7cf] 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: [0c41f7cf] user: drh branch: trunk, size: 24912)
2009-03-19
18:51
[7388109b] part of check-in [cc0d9256] Fix a couple of fairly obscure cases where an assert() could fail following a malloc failure. (CVS 6360) (check-in: [cc0d9256] user: danielk1977 branch: trunk, size: 24866)
2009-02-25
08:56
[8180b651] part of check-in [a3695b98] Minor changes and coverge tests for "SELECT count(*)" optimization. (CVS 6324) (check-in: [a3695b98] user: danielk1977 branch: trunk, size: 24250)
2009-02-04
08:17
[8e3ad667] part of check-in [72745bde] Fix a bug in malloc.test causing the exclusive permutation to fail. Changes to test code only. (CVS 6251) (check-in: [72745bde] user: danielk1977 branch: trunk, size: 23529)
2009-01-16
16:40
[22884064] part of check-in [9f07d2d9] 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: [9f07d2d9] user: danielk1977 branch: trunk, size: 23453)
2009-01-10
16:15
[95e94f8a] part of check-in [855c4093] Improve coverage of pager.c. (CVS 6158) (check-in: [855c4093] user: danielk1977 branch: trunk, size: 21045)
11:13
[86f378c5] part of check-in [3d7a8de2] Fix a bug in the previous commit - use SQL comments instead of Tcl comments in SQL blocks. (CVS 6155) (check-in: [3d7a8de2] user: danielk1977 branch: trunk, size: 20621)
11:10
[db0bed8b] part of check-in [000aedb0] Add a malloc failure test case that covers a few previously untested lines in pager.c (CVS 6154) (check-in: [000aedb0] user: danielk1977 branch: trunk, size: 20616)
2008-11-21
09:43
[6bfb1b95] part of check-in [4c765758] Fix an assert() failure that can occur after an OOM error. (CVS 5939) (check-in: [4c765758] user: danielk1977 branch: trunk, size: 19580)
2008-11-03
09:39
[248fc5e0] part of check-in [aca6b260] Modify an assert() statement to fix #3473. No other code changes. (CVS 5856) (check-in: [aca6b260] user: danielk1977 branch: trunk, size: 19517)
2008-10-06
05:32
[2fa35110] part of check-in [98ca5580] Allow INDEXED BY and NOT INDEXED clauses in SELECT statements. (CVS 5766) (check-in: [98ca5580] user: danielk1977 branch: trunk, size: 19403)
2008-09-23
16:41
[6ff6063f] part of check-in [046ef072] Always transform error code SQLITE_IOERR_NOMEM to SQLITE_NOMEM before returning. This was already happening in most places. (CVS 5738) (check-in: [046ef072] user: danielk1977 branch: trunk, size: 19075)
2008-09-22
17:22
[c5a70f6b] part of check-in [118dc0ba] Fix a memory leak that can follow a malloc failure in sqlite3_initialize. (CVS 5731) (check-in: [118dc0ba] user: danielk1977 branch: trunk, size: 18439)
2008-09-05
05:02
[cdc0bb86] part of check-in [0b8ee83f] Fix a problem in btree.c preventing an OOM error from being propagated up to the caller. (CVS 5677) (check-in: [0b8ee83f] user: danielk1977 branch: trunk, size: 18182)
2008-08-27
19:01
[f8727395] part of check-in [ce9c74ea] 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: [ce9c74ea] user: danielk1977 branch: trunk, size: 17319)
2008-07-07
14:56
[69f5bb5a] part of check-in [b96bcaa1] Test a couple of specific malloc() failures that were not tested before. (CVS 5350) (check-in: [b96bcaa1] user: danielk1977 branch: trunk, size: 17209)
2008-06-19
18:17
[ca6d4ebb] part of check-in [d22cd2a5] 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: [d22cd2a5] user: danielk1977 branch: trunk, size: 16614)
2008-04-17
14:16
[fa208f99] part of check-in [8efb7f4f] 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: [8efb7f4f] user: drh branch: trunk, size: 16605)
2008-04-03
10:13
[7b9eb061] part of check-in [fd97f876] 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: [fd97f876] user: danielk1977 branch: trunk, size: 16624)
2008-02-18
22:24
[7da6e318] part of check-in [63da5d97] 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: [63da5d97] user: drh branch: trunk, size: 16617)
2008-01-24
14:27
[13ab98fb] part of check-in [c6635a71] Fix a segfault that may follow a malloc failure during compilation of an INSTEAD OF trigger. (CVS 4749) (check-in: [c6635a71] user: danielk1977 branch: trunk, size: 16629)
2008-01-23
17:13
[72b7bec7] part of check-in [9d98a3f0] Fix another segfault that can occur following a malloc failure in the SQL compiler. (CVS 4748) (check-in: [9d98a3f0] user: danielk1977 branch: trunk, size: 16178)
15:44
[d596bd25] part of check-in [6bd8db38] Fix a couple of segfaults that could occur after a malloc() failure in the SQL compiler. (CVS 4747) (check-in: [6bd8db38] user: danielk1977 branch: trunk, size: 16010)
2008-01-19
23:50
[010b6054] part of check-in [010f7b78] Additional test coverage improvements. Test coverage now stands at 98.73%. (CVS 4731) (check-in: [010f7b78] user: drh branch: trunk, size: 15954)
2008-01-16
17:46
[760f346b] part of check-in [5807921f] Get all tests running without memory leaks. (CVS 4714) (check-in: [5807921f] user: drh branch: trunk, size: 15676)
2007-11-28
22:36
[debc0cb4] part of check-in [221aee72] 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: [221aee72] user: drh branch: trunk, size: 15666)
2007-11-16
14:55
[93fca577] part of check-in [c91bc8d3] Fix a crash that can occur after a malloc failure. Ticket #2775. (CVS 4547) (check-in: [c91bc8d3] user: danielk1977 branch: trunk, size: 15657)
2007-10-09
08:29
[16ee5574] part of check-in [07c00fff] Fixes to the test suite (no code changes) so that quick.test runs with OMIT_ATTACH builds. #2706. (CVS 4480) (check-in: [07c00fff] user: danielk1977 branch: trunk, size: 15642)
2007-10-03
15:02
[fc062a12] part of check-in [7d3f0b14] Add a test case to malloc.test. (CVS 4456) (check-in: [7d3f0b14] user: danielk1977 branch: trunk, size: 15579)
08:46
[17366a4f] part of check-in [12eca32a] Add automatic recovery from the pager "error-state". Also add a new error code - SQLITE_IOERR_NOMEM. (CVS 4454) (check-in: [12eca32a] user: danielk1977 branch: trunk, size: 14243)
2007-09-12
17:01
[51675aa9] part of check-in [c8405b15] Fixes for compilation/testing when the various OMIT macros are defined. (CVS 4423) (check-in: [c8405b15] user: danielk1977 branch: trunk, size: 13879)
2007-09-04
01:25
[5b4ac16e] part of check-in [1166f9c7] Fix the malloc-10 test in malloc.test so that it will run on windows when invoked from exclusive3.test. (CVS 4389) (check-in: [1166f9c7] user: drh branch: trunk, size: 13359)
2007-09-03
11:04
[bb1c95fb] part of check-in [c0ce6319] Handle transient malloc() failures in sqlite3CreateFunc(). (CVS 4371) (check-in: [c0ce6319] user: danielk1977 branch: trunk, size: 13261)
2007-08-29
12:31
[52306f05] part of check-in [e38ef81b] Modifications to the malloc failure tests to test transient and persistent failures. (CVS 4321) (check-in: [e38ef81b] user: danielk1977 branch: trunk, size: 13178)
2007-08-22
20:18
[dbfaedfc] part of check-in [db818430] The malloc.test script now passes all tests with no errors. (CVS 4271) (check-in: [db818430] user: drh branch: trunk, size: 13106)
2007-08-16
04:39
[42e71334] part of check-in [161643a6] 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: [161643a6] user: danielk1977 branch: trunk, size: 13064)
2007-05-30
10:36
[45a81af6] part of check-in [7522d2fb] Add some extra tests for malloc failure during expression parsing and execution using fuzzily generated SQL. (CVS 4043) (check-in: [7522d2fb] user: danielk1977 branch: trunk, size: 12985)
2007-04-19
11:09
[c468c018] part of check-in [8795d11c] Fix a bug whereby sqlite3_prepare_v2() could return both an out-of-memory error and a valid statement handle. (CVS 3858) (check-in: [8795d11c] user: danielk1977 branch: trunk, size: 16371)
2007-03-30
07:10
[d868a6b9] part of check-in [19fc3d78] Extra test cases to improve coverage of main.c. (CVS 3755) (check-in: [19fc3d78] user: danielk1977 branch: trunk, size: 16016)
2007-03-29
17:07
[2c39d97c] part of check-in [0b22ce36] Add a couple of test cases to improve coverage testing. (CVS 3747) (check-in: [0b22ce36] user: danielk1977 branch: trunk, size: 16017)
2007-03-26
12:26
[33020a87] part of check-in [12745490] Run some malloc() tests with exclusive-access mode. (CVS 3717) (check-in: [12745490] user: danielk1977 branch: trunk, size: 15865)
2007-03-17
10:26
[2f234703] part of check-in [c4be8d99] Modifications to crash-test infrastructure. (CVS 3695) (check-in: [c4be8d99] user: danielk1977 branch: trunk, size: 15855)
2006-10-18
23:26
[0eb9fcff] part of check-in [ee4894b4] Fix a problems that arise if malloc() fails while compiling SELECT statements within a TRIGGER. (CVS 3478) (check-in: [ee4894b4] user: drh branch: trunk, size: 15834)
2006-10-04
11:55
[7831ab6c] part of check-in [eef0ec0d] Tests cases automatically remove many of their temporary files. (CVS 3463) (check-in: [eef0ec0d] user: drh branch: trunk, size: 15735)
2006-07-11
12:40
[4d5d382e] part of check-in [eb91612f] Fix a NULL pointer deference following malloc failure. Bug discovered by klocwork. (CVS 3328) (check-in: [eb91612f] user: drh branch: trunk, size: 15652)
2006-06-26
12:50
[98a189ae] part of check-in [6a63f76c] Fix a file descriptor leak following malloc failure on DROP TABLE IF EXISTS. (CVS 3296) (check-in: [6a63f76c] user: drh branch: trunk, size: 15644)
2006-04-10
13:37
[684510c0] part of check-in [9d95750e] 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: [9d95750e] user: drh branch: trunk, size: 15572)
2006-04-05
11:57
[8580d8fe] part of check-in [3538a4e3] 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: [3538a4e3] user: drh branch: trunk, size: 15293)
2006-01-24
10:58
[7d875b2b] part of check-in [153940af] General test coverage improvements. (CVS 3022) (check-in: [153940af] user: danielk1977 branch: trunk, size: 14845)
2006-01-18
05:51
[ce6d1e7e] part of check-in [86eab9e5] Handle malloc() failures that occur in open16() and errmsg16(). (CVS 2967) (check-in: [86eab9e5] user: danielk1977 branch: trunk, size: 13986)
04:26
[095d23a3] part of check-in [95c5903f] Handle malloc() failures that occur inside create_collation() calls. (CVS 2966) (check-in: [95c5903f] user: danielk1977 branch: trunk, size: 12226)
2006-01-17
13:21
[34c2c0ce] part of check-in [0505405f] Various fixes that allow the malloc() failure tests to pass again. (CVS 2963) (check-in: [0505405f] user: danielk1977 branch: trunk, size: 11583)
2006-01-06
14:32
[6245418d] part of check-in [2529c2e1] 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: [2529c2e1] user: drh branch: trunk, size: 11540)
2005-12-06
12:52
[a5ed721c] part of check-in [e1606658] 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: [e1606658] user: danielk1977 branch: trunk, size: 11594)
2005-09-08
00:13
[666c77a8] part of check-in [bcc7d722] All regression tests now pass. But I am sure there must still be problems. New tests need to be added. (CVS 2666) (check-in: [bcc7d722] user: drh branch: trunk, size: 11208)
2005-08-19
01:07
[06d8dd2e] part of check-in [0b6cd5ac] More test coverage enhancements. (CVS 2600) (check-in: [0b6cd5ac] user: drh branch: trunk, size: 11209)
2005-01-22
03:39
[b7bc72bb] part of check-in [764b55ad] Test script changes: Bug fix and cleanup on ioerr tests. Also, don't use TCL "file copy" command on windows. (CVS 2264) (check-in: [764b55ad] user: danielk1977 branch: trunk, size: 11193)
2005-01-19
03:52
[180f7f7e] part of check-in [27cf8322] Another fix along the same lines as (2234) (CVS 2235) (check-in: [27cf8322] user: danielk1977 branch: trunk, size: 11207)
2005-01-13
13:35
[4f34764c] part of check-in [94cf91cc] Tidy up malloc.test a bit. (CVS 2207) (check-in: [94cf91cc] user: danielk1977 branch: trunk, size: 11163)
11:07
[a301c880] part of check-in [0428a148] Test cases to improve coverage of pager.c. (CVS 2205) (check-in: [0428a148] user: danielk1977 branch: trunk, size: 16687)
02:14
[73fa135d] part of check-in [8378455f] Fixes to 'configure' build system. Also extra coverage for main.c. (CVS 2204) (check-in: [8378455f] user: danielk1977 branch: trunk, size: 15694)
2005-01-12
13:04
[ad87a748] part of check-in [1c19e8bd] Fix a test bug introduce with the previous commit. (CVS 2203) (check-in: [1c19e8bd] user: danielk1977 branch: trunk, size: 15684)
12:44
[5a18f953] part of check-in [4e28c82a] Tests to improve coverage of main.c. (CVS 2202) (check-in: [4e28c82a] user: danielk1977 branch: trunk, size: 15013)
09:10
[c3985c0a] part of check-in [2b3e21ce] Tests to improve coverage of vdbeaux.c. (CVS 2201) (check-in: [2b3e21ce] user: danielk1977 branch: trunk, size: 13316)
07:15
[79c5e067] part of check-in [319bb4a9] Tests to improve coverage of vdbemem.c. (CVS 2200) (check-in: [319bb4a9] user: danielk1977 branch: trunk, size: 12000)
2005-01-11
13:02
[74b9d6b8] part of check-in [a6b45722] Test cases to improve coverage of vdbe.c. (CVS 2193) (check-in: [a6b45722] user: danielk1977 branch: trunk, size: 10489)
2005-01-03
01:33
[c20b7208] part of check-in [586acc85] Fix typos in comments in test code. (Oops. This check-in also picked up some unrelated changes to documentation.) (CVS 2175) (check-in: [586acc85] user: drh branch: trunk, size: 9626)
2004-11-20
19:18
[b4674cbb] part of check-in [519bc9d9] 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: [519bc9d9] user: drh branch: trunk, size: 9626)
2004-06-30
09:49
[769b240d] part of check-in [152e9940] Coverage tests for vacuum.c (CVS 1776) (check-in: [152e9940] user: danielk1977 branch: trunk, size: 9620)
2004-06-26
13:51
[a78617ce] part of check-in [3c8512bc] Fix a problem where a file was not being closed after a malloc() failure. (CVS 1741) (check-in: [3c8512bc] user: danielk1977 branch: trunk, size: 8213)
2004-06-19
00:16
[08220600] part of check-in [d705d051] 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: [d705d051] user: drh branch: trunk, size: 7587)
2004-05-27
17:22
[4e19b96d] part of check-in [287f8673] Remove the COPY command. (CVS 1477) (check-in: [287f8673] user: drh branch: trunk, size: 7582)
2004-02-14
01:39
[2cfcffb7] part of check-in [41b6ad78] Disable the malloc.test tests if not compiled with -DMEMORY_DEBUG (CVS 1239) (check-in: [41b6ad78] user: drh branch: trunk, size: 6903)
2002-05-23
02:09
[7ba32a9e] part of check-in [01ad352c] Fix some places where a malloc() failure would lead to a segfault. (CVS 580) (check-in: [01ad352c] user: drh branch: trunk, size: 6903)
2001-10-22
02:58
[70fdd081] part of check-in [f8328a5f] More changes for 2.0.7. (CVS 293) (check-in: [f8328a5f] user: drh branch: trunk, size: 5927)
2001-09-16
00:13
[f1400a8d] part of check-in [4e926efe] Disclaimed copyright. Preparing for release 2.0. (CVS 250) (check-in: [4e926efe] user: drh branch: trunk, size: 2632)
2001-04-12
23:21
[3daa97f6] part of check-in [3bde1284] More testing (CVS 209) (check-in: [3bde1284] user: drh branch: trunk, size: 3169)
2001-04-11
14:29
Added: [47777dd5] part of check-in [555351dd] :-) (CVS 208) (check-in: [555351dd] user: drh branch: trunk, size: 2393)