/ File History
Login

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

History of test/malloc.test

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