Below are the code path which is getting executed from the first hit of
breakpoint at "ts_ftruncate" to the next

i was wondering it was working fine with my ubuntu PC and now giving issue
in linux target.

Breakpoint 1, ts_ftruncate (fd=5, n=206456) at ./src/test_syscall.c:272
272     static int ts_ftruncate(int fd, off_t n){
(gdb) step
273       if( tsIsFailErrno("ftruncate") ){
(gdb) next
272     static int ts_ftruncate(int fd, off_t n){
(gdb) 
273       if( tsIsFailErrno("ftruncate") ){
(gdb) 
276       return orig_ftruncate(fd, n);
(gdb) 
unixTruncate (nByte=0, id=0x14c478) at sqlite3.c:26365
26365       pFile->lastErrno = errno;
(gdb) 
26366       return unixLogError(SQLITE_IOERR_TRUNCATE, "ftruncate",
pFile->zPath);
(gdb) 
unixTruncate (id=0x14c478, nByte=<optimized out>) at sqlite3.c:26383
26383   }
(gdb) 
unixTruncate (id=0x1, nByte=<optimized out>) at sqlite3.c:26348
26348   static int unixTruncate(sqlite3_file *id, i64 nByte){
(gdb) 
unixLogErrorAtLine (errcode=1546, zFunc=0xc8920 "ftruncate", 
    zPath=0x14c4e8 "/home/brijesh/mySQLtry/test.db-journal", iLine=26366)
    at sqlite3.c:23979
23979   ){
(gdb) 
23981     int iErrno = errno;             /* Saved syscall error number */
(gdb) 
24017     assert( errcode!=SQLITE_OK );
(gdb) 
23981     int iErrno = errno;             /* Saved syscall error number */
(gdb) 
24017     assert( errcode!=SQLITE_OK );
(gdb) 
24018     if( zPath==0 ) zPath = "";
(gdb) 
24019     sqlite3_log(errcode,
(gdb) 
24018     if( zPath==0 ) zPath = "";
(gdb) 
24019     sqlite3_log(errcode,
(gdb) 
24025   }
(gdb) 
pager_end_transaction (pPager=0x14c2e0, hasMaster=<optimized out>,
bCommit=1)
    at sqlite3.c:39301
39301         pPager->journalOff = 0;
(gdb) 
39331     sqlite3BitvecDestroy(pPager->pInJournal);
(gdb) 
39332     pPager->pInJournal = 0;
(gdb) 
39334     sqlite3PcacheCleanAll(pPager->pPCache);
(gdb) 
39332     pPager->pInJournal = 0;
(gdb) 
39333     pPager->nRec = 0;
(gdb) 
39334     sqlite3PcacheCleanAll(pPager->pPCache);
(gdb) 
39335     sqlite3PcacheTruncate(pPager->pPCache, pPager->dbSize);
(gdb) 
39337     if( pagerUseWal(pPager) ){
(gdb) 
39344     }else if( rc==SQLITE_OK && bCommit &&
pPager->dbFileSize>pPager->dbSize ){
(gdb) 
39355     if( !pPager->exclusiveMode 
(gdb) 
39356      && (!pagerUseWal(pPager) || sqlite3WalExclusiveMode(pPager->pWal,
0))
(gdb) 
39358       rc2 = pagerUnlockDb(pPager, SHARED_LOCK);
(gdb) 
39359       pPager->changeCountDone = 0;
(gdb) 
39364     return (rc==SQLITE_OK?rc2:rc);
(gdb) 
39361     pPager->eState = PAGER_READER;
(gdb) 
39364     return (rc==SQLITE_OK?rc2:rc);
(gdb) 
39361     pPager->eState = PAGER_READER;
(gdb) 
39362     pPager->setMaster = 0;
(gdb) 
39365   }
(gdb) 
sqlite3PagerCommitPhaseTwo (pPager=0x14c2e0) at sqlite3.c:43389
43389     return pager_error(pPager, rc);
(gdb) 
43390   }
(gdb) 
sqlite3PagerCommitPhaseTwo (pPager=0x1424c8) at sqlite3.c:43389
43389     return pager_error(pPager, rc);
(gdb) 
pager_error (pPager=0x14c2e0, rc=1546) at sqlite3.c:39190
39190     assert( rc==SQLITE_OK || !MEMDB );
(gdb) 
39188   static int pager_error(Pager *pPager, int rc){
(gdb) 
39190     assert( rc==SQLITE_OK || !MEMDB );
(gdb) 
39191     assert(
(gdb) 
39189     int rc2 = rc & 0xff;
(gdb) 
39196     if( rc2==SQLITE_FULL || rc2==SQLITE_IOERR ){
(gdb) 
39198       pPager->eState = PAGER_ERROR;
(gdb) 
39201   }
(gdb) 
sqlite3BtreeCommitPhaseTwo (bCleanup=1, p=0x1424c8) at sqlite3.c:51637
51637       if( rc!=SQLITE_OK && bCleanup==0 ){
(gdb) 
51641       pBt->inTransaction = TRANS_READ;
(gdb) 
51637       if( rc!=SQLITE_OK && bCleanup==0 ){
(gdb) 
51644     btreeEndTransaction(p);
(gdb) 
51646     return SQLITE_OK;
(gdb) 
51644     btreeEndTransaction(p);
(gdb) 
51645     sqlite3BtreeLeave(p);
(gdb) 
sqlite3BtreeCommitPhaseTwo (p=0x1424c8, bCleanup=1) at sqlite3.c:51647
51647   }
(gdb) 
vdbeCommit (p=0x132040, db=0x140ea8) at sqlite3.c:60633
60633       for(i=0; i<db->nDb; i++){ 
(gdb) 
60634         Btree *pBt = db->aDb[i].pBt;
(gdb) 
60635         if( pBt ){
(gdb) 
60633       for(i=0; i<db->nDb; i++){ 
(gdb) 
60634         Btree *pBt = db->aDb[i].pBt;
(gdb) 
60635         if( pBt ){
(gdb) 
60636           sqlite3BtreeCommitPhaseTwo(pBt, 1);
(gdb) 
Breakpoint 1, ts_ftruncate (fd=6, n=206456) at ./src/test_syscall.c:272
272     static int ts_ftruncate(int fd, off_t n){



--
View this message in context: 
http://sqlite.1065341.n5.nabble.com/TCL-Test-failures-on-ARM-tp67612p67659.html
Sent from the SQLite mailing list archive at Nabble.com.
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to