fir the sysfault tests : sysfault-2.1-vfsfault-transient tests fails with
"disk I/O Error".

I have noticed that the failure happens at ftruncate() syscall at the test 

test_syscall install {open ftruncate close read pread pread64 write
fallocate}

below sequence of lines are executed 

Breakpoint 1, ts_ftruncate (fd=7, n=297136) at ./src/test_syscall.c:273
273       if( tsIsFailErrno("ftruncate") ){
(gdb) break robust_ftruncate
Breakpoint 2 at 0x66b14: file sqlite3.c, line 23589.
(gdb) break unixTruncate
Breakpoint 3 at 0x68a94: file sqlite3.c, line 26349.
(gdb) continue
Continuing.

Breakpoint 3, unixTruncate (id=0x1741a0, nByte=0) at sqlite3.c:26349
26349     unixFile *pFile = (unixFile *)id;
(gdb) 
Continuing.

Breakpoint 2, robust_ftruncate (h=8, sz=0) at sqlite3.c:23589
23589     do{ rc = osFtruncate(h,sz); }while( rc<0 && errno==EINTR );
(gdb) 
Continuing.

Breakpoint 1, ts_ftruncate (fd=8, n=297136) at ./src/test_syscall.c:273
273       if( tsIsFailErrno("ftruncate") ){
(gdb) 
Continuing.

Breakpoint 3, unixTruncate (id=0x172840, nByte=0) at sqlite3.c:26349
26349     unixFile *pFile = (unixFile *)id;
(gdb) 
Continuing.

Breakpoint 2, robust_ftruncate (h=7, sz=0) at sqlite3.c:23589
23589     do{ rc = osFtruncate(h,sz); }while( rc<0 && errno==EINTR );
(gdb) 
Continuing.

Breakpoint 1, ts_ftruncate (fd=7, n=297136) at ./src/test_syscall.c:273
273       if( tsIsFailErrno("ftruncate") ){
(gdb) 
Continuing.

Breakpoint 3, unixTruncate (id=0x172840, nByte=0) at sqlite3.c:26349
26349     unixFile *pFile = (unixFile *)id;
(gdb) 
-----------------------------------

below are the variable values at unixLogErrorAtLine() function

unixLogErrorAtLine (errcode=1546, zFunc=0xfb8f4 "ftruncate", 
    zPath=0x1728b5 "/home/brijesh/SQLite-Target/test.db-journal",
iLine=26366)
    at sqlite3.c:24024
24024     return errcode;

(gdb) p errcode
$10 = 1546

(gdb) p iLine
$11 = 26366

(gdb) p zFunc
$12 = 0xfb8f4 "ftruncate"

(gdb) iErrno
Undefined command: "iErrno".  Try "help".

(gdb) p iErrno
$13 = 27


any one can explain me,
1. about the sysfault.test ?
2. what causes to log an error (i could see that multiple checking is made
by ts_truncate and robust_truncate) ?

Thank you



--
View this message in context: 
http://sqlite.1065341.n5.nabble.com/atof1-and-sysfault-test-failures-tp67827p67838.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