Hi all,

I'm using svn and sqlite3 on Mageia Linux 3/Cauldron with glibc-2.16-2.mga3.

today I noticed that svn checkout gave me the following by default:

<<<
shlomif@telaviv1:~$ svn co http://rpmlint.zarb.org/svn/trunk*** glibc detected 
*** svn: free(): invalid pointer: 0x0000000000c17820 ***
*** glibc detected *** svn: realloc(): invalid pointer: 0x0000000000c18740 ***
*** glibc detected *** svn: free(): invalid pointer: 0x0000000000c1e260 ***
svn: E200030: SQL logic error or missing database, executing statement 'CREATE 
TABLE REPOSITORY (   id INTEGER PRIMARY KEY AUTOINCREMENT,   root  TEXT UNIQUE 
NOT NULL,   uuid  TEXT NOT NULL   ); CREATE INDEX I_UUID ON REPOSITORY (uuid); 
CREATE INDEX I_ROOT ON REPOSITORY (root); CREATE TABLE WCROOT (   id  INTEGER 
PRIMARY KEY AUTOINCREMENT,   local_abspath  TEXT UNIQUE   ); CREATE UNIQUE 
INDEX I_LOCAL_ABSPATH ON WCROOT (local_abspath); CREATE TABLE PRISTINE (   
checksum  TEXT NOT NULL PRIMARY KEY,   compression  INTEGER,   size  INTEGER 
NOT NULL,   refcount  INTEGER NOT NULL,   md5_checksum  TEXT NOT NULL   ); 
CREATE TABLE ACTUAL_NODE (   wc_id  INTEGER NOT NULL REFERENCES WCROOT (id),   
local_relpath  TEXT NOT NULL,   parent_relpath  TEXT,   properties  BLOB,   
conflict_old  TEXT,   conflict_new  TEXT,   conflict_working  TEXT,   
prop_reject  TEXT,   changelist  TEXT,   text_mod  TEXT,   tree_conflict_data  
TEXT,   conflict_data  BLOB,   older_checksum  TEXT REFERENCES PRISTI
 NE (checksum),   left_checksum  TEXT REFERENCES PRISTINE (checksum),   
right_checksum  TEXT REFERENCES PRISTINE (checksum),   PRIMARY KEY (wc_id, 
local_relpath)   ); CREATE INDEX I_ACTUAL_PARENT ON ACTUAL_NODE (wc_id, 
parent_relpath); CREATE INDEX I_ACTUAL_CHANGELIST ON ACTUAL_NODE (changelist); 
CREATE TABLE LOCK (   repos_id  INTEGER NOT NULL REFERENCES REPOSITORY (id),   
repos_relpath  TEXT NOT NULL,   lock_token  TEXT NOT NULL,   lock_owner  TEXT,  
 lock_comment  TEXT,   lock_date  INTEGER,   PRIMARY KEY (repos_id, 
repos_relpath)   ); CREATE TABLE WORK_QUEUE (   id  INTEGER PRIMARY KEY 
AUTOINCREMENT,   work  BLOB NOT NULL   ); CREATE TABLE WC_LOCK (   wc_id  
INTEGER NOT NULL  REFERENCES WCROOT (id),   local_dir_relpath  TEXT NOT NULL,   
locked_levels  INTEGER NOT NULL DEFAULT -1,   PRIMARY KEY (wc_id, 
local_dir_relpath)  ); PRAGMA user_version = 29; '
shlomif@telaviv1:~$ 
>>>

I first suspected svn was the culprit, so I rebuilt it, but it still happened.
Then I tried build SQLite and running its tests and I got this (below). I
should note that svn works fine after I type "unset MALLOC_CHECK_" in the
console (don't know about the sqlite tests).

What is the underlying problem and how can it be fixed?

Regards,

        Shlomi Fish

[QUOTE]
shlomif@telaviv1:~$ cd ~/progs/Rpms/SOURCES/bld/
shlomif@telaviv1:~/progs/Rpms/SOURCES/bld$ make test
./libtool --mode=link gcc   -g -O2 -DSQLITE_OS_UNIX=1 -I. -I../sqlite/src 
-I../sqlite/ext/rtree -D_HAVE_SQLITE_CONFIG_H -DBUILD_sqlite -DNDEBUG  
-I/usr/include -DSQLITE_THREADSAFE=1 -DSQLITE_OMIT_LOAD_EXTENSION=1     
-DSQLITE_NO_SYNC=1 -DSQLITE_TEMP_STORE=1 -DTCLSH=1 -DSQLITE_TEST=1 
-DSQLITE_CRASH_TEST=1 -DSQLITE_SERVER=1 -DSQLITE_PRIVATE="" -DSQLITE_CORE  
-DBUILD_sqlite \
        -o testfixture ../sqlite/src/test1.c ../sqlite/src/test2.c 
../sqlite/src/test3.c ../sqlite/src/test4.c ../sqlite/src/test5.c 
../sqlite/src/test6.c ../sqlite/src/test7.c ../sqlite/src/test8.c 
../sqlite/src/test9.c ../sqlite/src/test_autoext.c ../sqlite/src/test_async.c 
../sqlite/src/test_backup.c ../sqlite/src/test_btree.c 
../sqlite/src/test_config.c ../sqlite/src/test_demovfs.c 
../sqlite/src/test_devsym.c ../sqlite/src/test_func.c 
../sqlite/src/test_fuzzer.c ../sqlite/src/test_hexio.c 
../sqlite/src/test_init.c ../sqlite/src/test_intarray.c 
../sqlite/src/test_journal.c ../sqlite/src/test_malloc.c 
../sqlite/src/test_multiplex.c ../sqlite/src/test_mutex.c 
../sqlite/src/test_onefile.c ../sqlite/src/test_osinst.c 
../sqlite/src/test_pcache.c ../sqlite/src/test_quota.c 
../sqlite/src/test_rtree.c ../sqlite/src/test_schema.c 
../sqlite/src/test_server.c ../sqlite/src/test_superlock.c 
../sqlite/src/test_syscall.c ../sqlite/src/test_stat.c 
../sqlite/src/test_tclvar.c ../sqlite/sr
 c/test_thread.c ../sqlite/src/test_vfs.c ../sqlite/src/test_wholenumber.c 
../sqlite/src/test_wsd.c ../sqlite/ext/fts3/fts3_term.c 
../sqlite/ext/fts3/fts3_test.c  ../sqlite/src/tclsqlite.c sqlite3.c 
-L/usr/lib64 -ltcl8.5 -ldl  -lieee -lm -lpthread 
libtool: link: gcc -g -O2 -DSQLITE_OS_UNIX=1 -I. -I../sqlite/src 
-I../sqlite/ext/rtree -D_HAVE_SQLITE_CONFIG_H -DBUILD_sqlite -DNDEBUG 
-I/usr/include -DSQLITE_THREADSAFE=1 -DSQLITE_OMIT_LOAD_EXTENSION=1 
-DSQLITE_NO_SYNC=1 -DSQLITE_TEMP_STORE=1 -DTCLSH=1 -DSQLITE_TEST=1 
-DSQLITE_CRASH_TEST=1 -DSQLITE_SERVER=1 -DSQLITE_PRIVATE= -DSQLITE_CORE 
-DBUILD_sqlite -o testfixture ../sqlite/src/test1.c ../sqlite/src/test2.c 
../sqlite/src/test3.c ../sqlite/src/test4.c ../sqlite/src/test5.c 
../sqlite/src/test6.c ../sqlite/src/test7.c ../sqlite/src/test8.c 
../sqlite/src/test9.c ../sqlite/src/test_autoext.c ../sqlite/src/test_async.c 
../sqlite/src/test_backup.c ../sqlite/src/test_btree.c 
../sqlite/src/test_config.c ../sqlite/src/test_demovfs.c 
../sqlite/src/test_devsym.c ../sqlite/src/test_func.c 
../sqlite/src/test_fuzzer.c ../sqlite/src/test_hexio.c 
../sqlite/src/test_init.c ../sqlite/src/test_intarray.c 
../sqlite/src/test_journal.c ../sqlite/src/test_malloc.c 
../sqlite/src/test_multiplex.c
  ../sqlite/src/test_mutex.c ../sqlite/src/test_onefile.c 
../sqlite/src/test_osinst.c ../sqlite/src/test_pcache.c 
../sqlite/src/test_quota.c ../sqlite/src/test_rtree.c 
../sqlite/src/test_schema.c ../sqlite/src/test_server.c 
../sqlite/src/test_superlock.c ../sqlite/src/test_syscall.c 
../sqlite/src/test_stat.c ../sqlite/src/test_tclvar.c 
../sqlite/src/test_thread.c ../sqlite/src/test_vfs.c 
../sqlite/src/test_wholenumber.c ../sqlite/src/test_wsd.c 
../sqlite/ext/fts3/fts3_term.c ../sqlite/ext/fts3/fts3_test.c 
../sqlite/src/tclsqlite.c sqlite3.c  -L/usr/lib64 -ltcl8.5 -ldl -lieee -lm 
-lpthread
./testfixture ../sqlite/test/veryquick.test
rtree1.test-closeallfiles... Ok
rtree1.test-sharedcachesetting... Ok
Time: rtree1.test 7 ms
Memory used:          now         24  max      69864  max-size      64000
Allocation count:     now          1  max         37
Page-cache used:      now          0  max          0  max-size       1024
Page-cache overflow:  now          0  max       1048
Scratch memory used:  now          0  max          0
Scratch overflow:     now          0  max          0  max-size          0
rtree2.test-closeallfiles... Ok
rtree2.test-sharedcachesetting... Ok
Time: rtree2.test 7 ms
Memory used:          now         24  max      69864  max-size      64000
Allocation count:     now          1  max         37
Page-cache used:      now          0  max          0  max-size       1024
Page-cache overflow:  now          0  max       1048
Scratch memory used:  now          0  max          0
Scratch overflow:     now          0  max          0  max-size          0
rtree4.test-closeallfiles... Ok
rtree4.test-sharedcachesetting... Ok
Time: rtree4.test 7 ms
Memory used:          now         24  max      69880  max-size      64000
Allocation count:     now          1  max         37
Page-cache used:      now          0  max          0  max-size       1024
Page-cache overflow:  now          0  max       1048
Scratch memory used:  now          0  max          0
Scratch overflow:     now          0  max          0  max-size          0
rtree5.test-closeallfiles... Ok
rtree5.test-sharedcachesetting... Ok
Time: rtree5.test 7 ms
Memory used:          now         24  max      69880  max-size      64000
Allocation count:     now          1  max         37
Page-cache used:      now          0  max          0  max-size       1024
Page-cache overflow:  now          0  max       1048
Scratch memory used:  now          0  max          0
Scratch overflow:     now          0  max          0  max-size          0
rtree6.test-closeallfiles... Ok
rtree6.test-sharedcachesetting... Ok
Time: rtree6.test 6 ms
Memory used:          now         24  max      69880  max-size      64000
Allocation count:     now          1  max         37
Page-cache used:      now          0  max          0  max-size       1024
Page-cache overflow:  now          0  max       1048
Scratch memory used:  now          0  max          0
Scratch overflow:     now          0  max          0  max-size          0
rtree7.test-closeallfiles... Ok
rtree7.test-sharedcachesetting... Ok
Time: rtree7.test 6 ms
Memory used:          now         24  max      69880  max-size      64000
Allocation count:     now          1  max         37
Page-cache used:      now          0  max          0  max-size       1024
Page-cache overflow:  now          0  max       1048
Scratch memory used:  now          0  max          0
Scratch overflow:     now          0  max          0  max-size          0
rtree8.test-closeallfiles... Ok
rtree8.test-sharedcachesetting... Ok
Time: rtree8.test 9 ms
Memory used:          now         24  max      69880  max-size      64000
Allocation count:     now          1  max         37
Page-cache used:      now          0  max          0  max-size       1024
Page-cache overflow:  now          0  max       1048
Scratch memory used:  now          0  max          0
Scratch overflow:     now          0  max          0  max-size          0
rtree9.test-closeallfiles... Ok
rtree9.test-sharedcachesetting... Ok
Time: rtree9.test 7 ms
Memory used:          now         24  max      69880  max-size      64000
Allocation count:     now          1  max         37
Page-cache used:      now          0  max          0  max-size       1024
Page-cache overflow:  now          0  max       1048
Scratch memory used:  now          0  max          0
Scratch overflow:     now          0  max          0  max-size          0
rtreeA.test-closeallfiles... Ok
rtreeA.test-sharedcachesetting... Ok
Time: rtreeA.test 6 ms
Memory used:          now         24  max      69880  max-size      64000
Allocation count:     now          1  max         37
Page-cache used:      now          0  max          0  max-size       1024
Page-cache overflow:  now          0  max       1048
Scratch memory used:  now          0  max          0
Scratch overflow:     now          0  max          0  max-size          0
rtreeB.test-closeallfiles... Ok
rtreeB.test-sharedcachesetting... Ok
Time: rtreeB.test 7 ms
Memory used:          now         24  max      69880  max-size      64000
Allocation count:     now          1  max         37
Page-cache used:      now          0  max          0  max-size       1024
Page-cache overflow:  now          0  max       1048
Scratch memory used:  now          0  max          0
Scratch overflow:     now          0  max          0  max-size          0
tkt3363.test-closeallfiles... Ok
tkt3363.test-sharedcachesetting... Ok
Time: tkt3363.test 7 ms
Memory used:          now         24  max      69880  max-size      64000
Allocation count:     now          1  max         37
Page-cache used:      now          0  max          0  max-size       1024
Page-cache overflow:  now          0  max       1048
Scratch memory used:  now          0  max          0
Scratch overflow:     now          0  max          0  max-size          0
8_3_names.test-closeallfiles... Ok
8_3_names.test-sharedcachesetting... Ok
Time: 8_3_names.test 7 ms
Memory used:          now         24  max      69880  max-size      64000
Allocation count:     now          1  max         37
Page-cache used:      now          0  max          0  max-size       1024
Page-cache overflow:  now          0  max       1048
Scratch memory used:  now          0  max          0
Scratch overflow:     now          0  max          0  max-size          0
aggerror-1.1...*** glibc detected *** ./testfixture: realloc(): invalid 
pointer: 0x00000000017010c0 ***

Error: SQL logic error or missing database
aggerror-1.2...
Error: no such table: t1
aggerror-1.3...
Expected: [1 {value of 40 handed to x_count}]
     Got: [1 {no such table: t1}]
aggerror-1.4...
Error: no such table: t1
aggerror-1.5...
Error: no such table: t1
aggerror-1.6...
Error: no such table: t1
aggerror.test-closeallfiles... Ok
aggerror.test-sharedcachesetting... Ok
Time: aggerror.test 9 ms
Memory used:          now         24  max      84304  max-size      64000
Allocation count:     now          1  max         79
Page-cache used:      now          0  max          0  max-size       1272
Page-cache overflow:  now          0  max       2336
Scratch memory used:  now          0  max          0
Scratch overflow:     now          0  max          0  max-size          0
alias.test-closeallfiles... Ok
alias.test-sharedcachesetting... Ok
Time: alias.test 6 ms
Memory used:          now         24  max      84304  max-size      64000
Allocation count:     now          1  max         79
Page-cache used:      now          0  max          0  max-size       1272
Page-cache overflow:  now          0  max       2336
Scratch memory used:  now          0  max          0
Scratch overflow:     now          0  max          0  max-size          0
alter-1.1...*** glibc detected *** ./testfixture: realloc(): invalid pointer: 
0x0000000001702910 ***

Error: SQL logic error or missing database
alter-1.2...*** glibc detected *** ./testfixture: realloc(): invalid pointer: 
0x00000000017051b0 ***
*** glibc detected *** ./testfixture: free(): invalid pointer: 
0x0000000001705210 ***

Error: SQL logic error or missing database
alter-1.3.0... Ok
alter-1.3...
Error: no such table: T1
alter-1.3.1... Ok
alter-1.4...
Error: no such table: -t1-
alter-1.5...
Error: no such table: objlist
alter-1.6...*** glibc detected *** ./testfixture: realloc(): invalid pointer: 
0x0000000001706b60 ***
*** glibc detected *** ./testfixture: free(): invalid pointer: 
0x0000000001706bc0 ***

Error: SQL logic error or missing database
alter-1.7-prep...
Expected: [1 {bad function}]
     Got: [0 {}]
alter-1.7...
Error: no such table: objlist
alter-1.8.1... Ok
alter-1.8.2...*** glibc detected *** ./testfixture: free(): invalid pointer: 
0x00000000017084a0 ***
*** glibc detected *** ./testfixture: free(): invalid pointer: 
0x000000000170bd10 ***
 Ok
alter-1.8.3... Ok
alter-1.8.4...*** glibc detected *** ./testfixture: realloc(): invalid pointer: 
0x0000000001712e90 ***

Error: SQL logic error or missing database
alter-1.8.5...
Error: no such table: t5
alter-1.8.6...
Error: no such table: t5
alter-1.8.7...*** glibc detected *** ./testfixture: realloc(): invalid pointer: 
0x0000000001701f80 ***
*** glibc detected *** ./testfixture: free(): invalid pointer: 
0x00000000017a2ce0 ***

Error: SQL logic error or missing database
alter-1.9.1... Ok
alter-1.9.2... Ok
alter-1.9.3...*** glibc detected *** ./testfixture: realloc(): invalid pointer: 
0x0000000001706d60 ***

Error: SQL logic error or missing database
alter-1.9.4...
Error: no such table: tbl2
alter-2.1... Ok
alter-2.2...*** glibc detected *** ./testfixture: realloc(): invalid pointer: 
0x00000000016e2d20 ***
*** glibc detected *** ./testfixture: free(): invalid pointer: 
0x00000000017050d0 ***

Error: SQL logic error or missing database
alter-2.3...
Expected: [1 {there is already another table or index with this name: i3}]
     Got: [1 {no such table: <t2>}]
alter-2.4... Ok
alter-2.5...
Expected: [1 {object name reserved for internal use: sqlite_t3}]
     Got: [1 {no such table: t3}]
alter-2.6...
Expected: [1 {near "(": syntax error}]
     Got: [1 {no such table: t3}]
alter-3.1.0...*** glibc detected *** ./testfixture: realloc(): invalid pointer: 
0x00000000017a6b60 ***
*** glibc detected *** ./testfixture: free(): invalid pointer: 
0x00000000017a6bc0 ***

Error: SQL logic error or missing database
alter-3.1.1...
Error: no such table: t6
alter-3.1.2...
Error: no such table: t6
alter-3.1.3...
Error: no such trigger: trig1
alter-3.1.4...
Error: no such table: main.t7
alter-3.1.5...
Error: no such table: t7
alter-3.1.6...
Error: no such trigger: trig2
alter-3.1.7...
Error: no such table: main.t8
alter-3.1.8...
Error: no such table: t8
alter-3.2.1... Ok
alter-3.2.2... Ok
alter-3.2.3... Ok
alter-3.2.4... Ok
alter-3.2.4... Ok
alter-3.2.5...*** glibc detected *** ./testfixture: free(): invalid pointer: 
0x000000000170c420 ***
 Ok
alter-3.2.6... Ok
alter-3.2.7...*** glibc detected *** ./testfixture: realloc(): invalid pointer: 
0x00000000017111a0 ***

Expected: [0 {}]
     Got: [1 {SQL logic error or missing database}]
alter-3.2.8... Ok
alter-3.2.9...*** glibc detected *** ./testfixture: free(): invalid pointer: 
0x000000000170a280 ***
 Ok
alter-3.2.10...
Error: no such table: t10
alter-3.3.1...
Error: table tbl1 already exists
alter-3.3.2...
Error: can't read "::TRIGGER": no such variable
alter-3.3.3...*** glibc detected *** ./testfixture: realloc(): invalid pointer: 
0x00000000017a5e90 ***
*** glibc detected *** ./testfixture: realloc(): invalid pointer: 
0x000000000170ac90 ***

Error: SQL logic error or missing database
alter-3.3.4...
Error: no such table: tbl2
alter-3.3.5...
Error: no such table: tbl2
alter-3.3.6...
Error: no such table: tbl3
alter-3.3.7...
Error: no such table: tbl3
alter-3.3.8... Ok
alter-4.1...
Error: table tbl1 already exists
alter-4.2...
Error: table tbl1 has 3 columns but 1 values were supplied
alter-4.3...*** glibc detected *** ./testfixture: realloc(): invalid pointer: 
0x000000000170f820 ***
*** glibc detected *** ./testfixture: realloc(): invalid pointer: 
0x00000000017a5110 ***

Error: SQL logic error or missing database
alter-4.4...
Error: no such table: tbl2
alter-5.1...
Error: table tbl1 already exists
alter-5.2...*** glibc detected *** ./testfixture: realloc(): invalid pointer: 
0x00000000016e2d80 ***
*** glibc detected *** ./testfixture: realloc(): invalid pointer: 
0x000000000170ca30 ***

Error: SQL logic error or missing database
alter-5.3... Ok
*** glibc detected *** ./testfixture: realloc(): invalid pointer: 
0x000000000170fb10 ***
make: *** [test] Segmentation fault
shlomif@telaviv1:~/progs/Rpms/SOURCES/bld$ 

[/QUOTE]
-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
Optimising Code for Speed - http://shlom.in/optimise

sed and awk make me sad and awkward.

Please reply to list if it's a mailing list post - http://shlom.in/reply .
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to