Below is the code path just before the error below is given out / getting
printed
"
Expected: [0 ok]
     Got: [1 {nfail=1 rc=1 result=disk I/O error}]

"

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) 
39197       pPager->errCode = rc;
(gdb) 
39198       pPager->eState = PAGER_ERROR;
(gdb) 
39201   }
(gdb) 
sqlite3BtreeCommitPhaseTwo (bCleanup=0, 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) 
51645     sqlite3BtreeLeave(p);
(gdb) 
sqlite3BtreeCommitPhaseTwo (p=0x1424c8, bCleanup=0) at sqlite3.c:51647
51647   }
(gdb) 
vdbeCommit (p=0x130688, db=0x140ea8) at sqlite3.c:60485
60485       for(i=0; rc==SQLITE_OK && i<db->nDb; i++){
(gdb) 
60633       for(i=0; i<db->nDb; i++){ 
(gdb) 
sqlite3VdbeHalt (p=0x130688) at sqlite3.c:60879
60879           if( rc==SQLITE_BUSY && p->readOnly ){
(gdb) 
60882           }else if( rc!=SQLITE_OK ){
(gdb) 
60883             p->rc = rc;
(gdb) 
60884             sqlite3RollbackAll(db, SQLITE_OK);
(gdb) 
60911       if( eStatementOp ){
(gdb) 
60892         db->nStatement = 0;
(gdb) 
60911       if( eStatementOp ){
(gdb) 
60928       if( p->changeCntOn ){
(gdb) 
60929         if( eStatementOp!=SAVEPOINT_ROLLBACK ){
(gdb) 
60930           sqlite3VdbeSetChanges(db, p->nChange);
(gdb) 
60932           sqlite3VdbeSetChanges(db, 0);
(gdb) 
60934         p->nChange = 0;
60938       sqlite3VdbeLeave(p);
(gdb) 
60942     if( p->pc>=0 ){
(gdb) 
60943       db->activeVdbeCnt--;
(gdb) 
60942     if( p->pc>=0 ){
(gdb) 
60943       db->activeVdbeCnt--;
(gdb) 
60944       if( !p->readOnly ){
(gdb) 
60945         db->writeVdbeCnt--;
(gdb) 
60947       assert( db->activeVdbeCnt>=db->writeVdbeCnt );
(gdb) 
60949     p->magic = VDBE_MAGIC_HALT;
(gdb) 
60950     checkActiveVdbeCnt(db);
(gdb) 
60949     p->magic = VDBE_MAGIC_HALT;
(gdb) 
60950     checkActiveVdbeCnt(db);
(gdb) 
60951     if( p->db->mallocFailed ){
(gdb) 
60952       p->rc = SQLITE_NOMEM;
(gdb) 
60963     assert( db->activeVdbeCnt>0 || db->autoCommit==0 ||
db->nStatement==0 );
(gdb) 
60964     return (p->rc==SQLITE_BUSY ? SQLITE_BUSY : SQLITE_OK);
(gdb) 
60965   }
(gdb) 
sqlite3VdbeExec (p=0x130688) at sqlite3.c:64907
64907     assert( rc==SQLITE_BUSY || rc==SQLITE_OK || rc==SQLITE_ERROR );
(gdb) 
64908     if( rc==SQLITE_BUSY ){
(gdb) 
64911       assert( rc==SQLITE_OK || (p->rc&0xff)==SQLITE_CONSTRAINT );
(gdb) 
64912       assert( rc==SQLITE_OK || db->nDeferredCons>0 );
(gdb) 
64911       assert( rc==SQLITE_OK || (p->rc&0xff)==SQLITE_CONSTRAINT );
(gdb) 
64913       rc = p->rc ? SQLITE_ERROR : SQLITE_DONE;
(gdb) 
70404     db->lastRowid = lastRowid;
(gdb) 
70405     sqlite3VdbeLeave(p);
(gdb) 
70404     db->lastRowid = lastRowid;
(gdb) 
70405     sqlite3VdbeLeave(p);
(gdb) 
70444   }
(gdb) 
sqlite3Step (p=0x130688) at sqlite3.c:62345
62345       db->vdbeExecCnt--;
(gdb) 
62344       rc = sqlite3VdbeExec(p);
(gdb) 
62351     if( rc!=SQLITE_ROW && db->xProfile && !db->init.busy && p->zSql ){
(gdb) 
62345       db->vdbeExecCnt--;
(gdb) 
62351     if( rc!=SQLITE_ROW && db->xProfile && !db->init.busy && p->zSql ){
(gdb) 
62358     if( rc==SQLITE_DONE ){
(gdb) 
62367     if( SQLITE_NOMEM==sqlite3ApiExit(p->db, p->rc) ){
(gdb) 
62366     db->errCode = rc;
(gdb) 
62367     if( SQLITE_NOMEM==sqlite3ApiExit(p->db, p->rc) ){
(gdb) 
62368       p->rc = SQLITE_NOMEM;
(gdb) 
62378     assert( rc==SQLITE_ROW  || rc==SQLITE_DONE   || rc==SQLITE_ERROR 
(gdb) 
62381     assert( p->rc!=SQLITE_ROW && p->rc!=SQLITE_DONE );
(gdb) 
62382     if( p->isPrepareV2 && rc!=SQLITE_ROW && rc!=SQLITE_DONE ){
(gdb) 
62387       rc = sqlite3VdbeTransferError(p);
(gdb) 
62389     return (rc&db->errMask);
(gdb) 
sqlite3_step (pStmt=<optimized out>) at sqlite3.c:62418
62418     while( (rc = sqlite3Step(v))==SQLITE_SCHEMA
(gdb) 
62444     rc = sqlite3ApiExit(db, rc);
(gdb) 
62445     sqlite3_mutex_leave(db->mutex);
(gdb) 
62447   }
(gdb) 
dbEvalStep (p=0x7efff288) at ./src/tclsqlite.c:1401
1401          if( rcs==SQLITE_ROW ){
(gdb) 
1404          if( p->pArray ){
(gdb) 
1407          rcs = sqlite3_reset(pStmt);
(gdb) 
1409          pDb->nStep =
sqlite3_stmt_status(pStmt,SQLITE_STMTSTATUS_FULLSCAN_STEP,1);
(gdb) 
1407          rcs = sqlite3_reset(pStmt);
(gdb) 
1409          pDb->nStep =
sqlite3_stmt_status(pStmt,SQLITE_STMTSTATUS_FULLSCAN_STEP,1);
(gdb) 
1410          pDb->nSort = sqlite3_stmt_status(pStmt,SQLITE_STMTSTATUS_SORT,1);
(gdb) 
1409          pDb->nStep =
sqlite3_stmt_status(pStmt,SQLITE_STMTSTATUS_FULLSCAN_STEP,1);
(gdb) 
1410          pDb->nSort = sqlite3_stmt_status(pStmt,SQLITE_STMTSTATUS_SORT,1);
(gdb) 
1411          pDb->nIndex =
sqlite3_stmt_status(pStmt,SQLITE_STMTSTATUS_AUTOINDEX,1);
(gdb) 
1410          pDb->nSort = sqlite3_stmt_status(pStmt,SQLITE_STMTSTATUS_SORT,1);
(gdb) 
1411          pDb->nIndex =
sqlite3_stmt_status(pStmt,SQLITE_STMTSTATUS_AUTOINDEX,1);
(gdb) 
1412          dbReleaseColumnNames(p);
(gdb) 
1415          if( rcs!=SQLITE_OK ){
(gdb) 
1413          p->pPreStmt = 0;
(gdb) 
1415          if( rcs!=SQLITE_OK ){
(gdb) 
1418            dbReleaseStmt(pDb, pPreStmt, 1);
(gdb) 
1420            if( p->pDb->bLegacyPrepare && rcs==SQLITE_SCHEMA && zPrevSql ){
(gdb) 
1430            Tcl_SetObjResult(pDb->interp,
(gdb) 
1432            return TCL_ERROR;
(gdb) 
1441    }
(gdb) 
DbObjCmd (cd=0x14b2e8, interp=0x107198, objc=<optimized out>, objv=0x10802c)
    at ./src/tclsqlite.c:2254
2254            dbEvalRowInfo(&sEval, &nCol, 0);
(gdb) 
2251          while( TCL_OK==(rc = dbEvalStep(&sEval)) ){
(gdb) 
2259          dbEvalFinalize(&sEval);
(gdb) 
2260          if( rc==TCL_BREAK ){
(gdb) 
2264          Tcl_DecrRefCount(pRet);
(gdb) 
2863    }
(gdb) 
0x2aaf4348 in ?? ()
(gdb) 
Cannot find bounds of current function



--
View this message in context: 
http://sqlite.1065341.n5.nabble.com/TCL-Test-failures-on-ARM-tp67612p67662.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