Re: [sqlite] TCL Test failures on ARM

2013-04-03 Thread Bk
Hi, Thank you all for the reply. i am still wondering why setting DSQLITE_DISABLE_LFS=1 had no effect on the code when we have a clear #ifndef ? , 1) if my application does not need LFS , how do i really make it here (system uses : Linux nitrogen6x 3.0.15-ts-armv7l) ? i was getting

Re: [sqlite] TCL Test failures on ARM

2013-04-02 Thread Simon Slavin
On 2 Apr 2013, at 8:33am, Bk wrote: > 1) i am using Linux 32bit on the embedded device, is it okey to give > "-D_FILE_OFFSET_BITS=64 " ? Yep. Theoretically it may be a little slower or lack backward compatibility, but if it compiles at all, it should be fine. The other

Re: [sqlite] TCL Test failures on ARM

2013-04-02 Thread Bk
Hi, i have noticed that the tests pass if built with below command TCC = armv7l-timesys-linux-gnueabi-gcc -D_FILE_OFFSET_BITS=64 -DSQLITE_OS_UNIX=1 -I. -I${TOP}/src -I${TOP}/ext/rtree Where i have added "-D_FILE_OFFSET_BITS=64" . 1) i am using Linux 32bit on the embedded device, is it

Re: [sqlite] TCL Test failures on ARM

2013-04-01 Thread Dan Kennedy
On 04/01/2013 01:15 PM, Bk wrote: I have updated make file with "TCC = armv7l-timesys-linux-gnueabi-gcc -g -DSQLITE_OS_UNIX=1 -DSQLITE_DISABLE_LFS=1 -I. -I${TOP}/src -I${TOP}/ext/rtree" The test still fails with DSQLITE_DISABLE_LFS=1 with same error sysfault-2.setup... Ok ftruncate: : File

Re: [sqlite] TCL Test failures on ARM

2013-04-01 Thread Michael Black
What's the ulimit for file sizes on your system? You might be hitting that. -Original Message- From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org] On Behalf Of Bk Sent: Monday, April 01, 2013 1:16 AM To: sqlite-users@sqlite.org Subject: Re: [sqlite] TCL Test

Re: [sqlite] TCL Test failures on ARM

2013-04-01 Thread Bk
I have updated make file with "TCC = armv7l-timesys-linux-gnueabi-gcc -g -DSQLITE_OS_UNIX=1 -DSQLITE_DISABLE_LFS=1 -I. -I${TOP}/src -I${TOP}/ext/rtree" The test still fails with DSQLITE_DISABLE_LFS=1 with same error sysfault-2.setup... Ok ftruncate: : File too large ftruncate: : File too

Re: [sqlite] TCL Test failures on ARM

2013-03-29 Thread Dan Kennedy
On 03/29/2013 04:35 PM, Bk wrote: The perror("ftruncate") is printing ftruncate: : File too large . i have a 2GB card in the embedded device with 50% mem free. Seems like EFBIG. What value is actually being passed as the second argument to the system ftruncate() call? Does the test pass if

Re: [sqlite] TCL Test failures on ARM

2013-03-29 Thread Bk
The perror("ftruncate") is printing ftruncate: : File too large . i have a 2GB card in the embedded device with 50% mem free. Below is the output window shows when the test executed. sysfault-2.setup... Ok ftruncate: : File too large ftruncate: : File too large ftruncate: : File too large

Re: [sqlite] TCL Test failures on ARM

2013-03-28 Thread Dan Kennedy
On 03/28/2013 02:18 PM, Bk wrote: Hi, The osFtruncate is not returning zero value. And what is it setting errno to? At line 23440, when rc is non-zero, what does perror("ftruncate") print? Dan. i have put breakpoint at ts_ftruncate abd robust_ftruncate (gdb) break robust_ftruncate

Re: [sqlite] TCL Test failures on ARM

2013-03-28 Thread Bk
Hi, The osFtruncate is not returning zero value. i have put breakpoint at ts_ftruncate abd robust_ftruncate (gdb) break robust_ftruncate Breakpoint 2 at 0x636ec: file sqlite3.c, line 23439. (gdb) continue Continuing. Breakpoint 2, robust_ftruncate (h=7, sz=0) at sqlite3.c:23439 23439

Re: [sqlite] TCL Test failures on ARM

2013-03-28 Thread Bk
Hi, The osFtruncate is not returning non zero value. i have put breakpoint at ts_ftruncate abd robust_ftruncate (gdb) break robust_ftruncate Breakpoint 2 at 0x636ec: file sqlite3.c, line 23439. (gdb) continue Continuing. Breakpoint 2, robust_ftruncate (h=7, sz=0) at sqlite3.c:23439 23439

Re: [sqlite] TCL Test failures on ARM

2013-03-18 Thread Drake Wilson
Quoth Bk , on 2013-03-17 21:25:21 -0700: > can some one point out what went wrong here ? Community lists do not provide guaranteed responses, and repeatedly hassling the list with requests for one is unlikely to make you any friends. Certainly I haven't responded because

Re: [sqlite] TCL Test failures on ARM

2013-03-17 Thread Bk
can some one point out what went wrong here ? -- View this message in context: http://sqlite.1065341.n5.nabble.com/TCL-Test-failures-on-ARM-tp67612p67741.html Sent from the SQLite mailing list archive at Nabble.com. ___ sqlite-users mailing list

Re: [sqlite] TCL Test failures on ARM

2013-03-14 Thread Bk
Hi, can any one tel me how can i fix this issue ? Thank you Brijesh -- View this message in context: http://sqlite.1065341.n5.nabble.com/TCL-Test-failures-on-ARM-tp67612p67727.html Sent from the SQLite mailing list archive at Nabble.com. ___

Re: [sqlite] TCL Test failures on ARM

2013-03-14 Thread bkk
Does it have anything to do with platform ? i am not sure though , because i am new to ARM and sqlite. Thanks Brijesh -- View this message in context: http://sqlite.1065341.n5.nabble.com/TCL-Test-failures-on-ARM-tp67612p67709.html Sent from the SQLite mailing list archive at Nabble.com.

Re: [sqlite] TCL Test failures on ARM

2013-03-14 Thread Dan Kennedy
On 03/13/2013 01:03 PM, bkk wrote: Hi, Below is the code sequence after making a breakpoint at robust_ftruncate() i could see that "robust_ftruncate" and "ts_ftruncate" is called couple of times before the error is given to the user Breakpoint 2, ts_ftruncate (fd=5, n=297136) at

Re: [sqlite] TCL Test failures on ARM

2013-03-14 Thread bkk
Appreciate if someone can point out what’s going wrong with these tests -- View this message in context: http://sqlite.1065341.n5.nabble.com/TCL-Test-failures-on-ARM-tp67612p67707.html Sent from the SQLite mailing list archive at Nabble.com. ___

Re: [sqlite] TCL Test failures on ARM

2013-03-13 Thread bkk
below is the backtrace after first hit at robust_ftruncate() (first hit after ts_ftruncate()) Breakpoint 1, ts_ftruncate (fd=5, 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.

Re: [sqlite] TCL Test failures on ARM

2013-03-13 Thread bkk
Details provided helps to understand the problem ? while executing below line the failures are created. "faultsim_test_result {0 {abc def ghi truncate abc def ghi jkl mno pqr 2}}" i tried debugging this issue but could not really succeed. Thank you Brijesh -- View this message in context:

Re: [sqlite] TCL Test failures on ARM

2013-03-13 Thread bkk
Above code / details helps to understand the problem ??? -- View this message in context: http://sqlite.1065341.n5.nabble.com/TCL-Test-failures-on-ARM-tp67612p67699.html Sent from the SQLite mailing list archive at Nabble.com. ___ sqlite-users

Re: [sqlite] TCL Test failures on ARM

2013-03-13 Thread bkk
Hi, Below is the code sequence after making a breakpoint at robust_ftruncate() i could see that "robust_ftruncate" and "ts_ftruncate" is called couple of times before the error is given to the user Breakpoint 2, ts_ftruncate (fd=5, n=297136) at ./src/test_syscall.c:273 273 if(

Re: [sqlite] TCL Test failures on ARM

2013-03-12 Thread bkk
i tried putting break point at robust_ftruncate() but it was not successful (gdb) break robust_ftruncate Function "robust_ftruncate" not defined. the symbol table of testfixture was not having "robust_ftruncate" when i read the testfixture(attached)". does it have anything to do with

Re: [sqlite] TCL Test failures on ARM

2013-03-12 Thread Dan Kennedy
On 03/13/2013 11:52 AM, bkk wrote: i tried putting break point at robust_ftruncate() but it was not successful (gdb) break robust_ftruncate Function "robust_ftruncate" not defined. the symbol table of testfixture was not having this i believe. does it have anything to do with crosscompiling ?

Re: [sqlite] TCL Test failures on ARM

2013-03-12 Thread bkk
i tried putting break point at robust_ftruncate() but it was not successful (gdb) break robust_ftruncate Function "robust_ftruncate" not defined. the symbol table of testfixture was not having this i believe. does it have anything to do with crosscompiling ? below are the commands i used for

Re: [sqlite] TCL Test failures on ARM

2013-03-12 Thread bkk
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

Re: [sqlite] TCL Test failures on ARM

2013-03-12 Thread bkk
below is the stack trace at the begining of second hit at the break point Breakpoint 1, ts_ftruncate (fd=6, n=206456) at ./src/test_syscall.c:272 272 static int ts_ftruncate(int fd, off_t n){ (gdb) backtrace #0 ts_ftruncate (fd=6, n=206456) at ./src/test_syscall.c:272 #1 0x000627f0 in

Re: [sqlite] TCL Test failures on ARM

2013-03-12 Thread bkk
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

Re: [sqlite] TCL Test failures on ARM

2013-03-12 Thread Dan Kennedy
On 03/12/2013 06:45 PM, bkk wrote: Below is the backtrace from the gdb when the failure happened. Seems odd to me. Assuming this is happening within the sysfault-2.1 test case, then the first stack should be setting errno to EINTR. Causing the robust_ftruncate() function to retry

Re: [sqlite] TCL Test failures on ARM

2013-03-12 Thread bkk
Below is the backtrace from the gdb when the failure happened. #0 tsIsFail () at ./src/test_syscall.c:163 #1 0x000324b4 in tsIsFailErrno (zFunc=0xc8920 "ftruncate") at ./src/test_syscall.c:196 #2 0x0003268c in ts_ftruncate (fd=5, n=206456) at ./src/test_syscall.c:273 #3 0x000627f0 in

Re: [sqlite] TCL Test failures on ARM

2013-03-11 Thread Dan Kennedy
On 03/12/2013 10:48 AM, bkk wrote: Has anyone came across same problem ? Appreciate if someone can point out what’s going wrong with these tests Is there something odd about trying to write to errno on this platform? These tests depend on function tsIsFailErrno() in file test_syscall.c being

Re: [sqlite] TCL Test failures on ARM

2013-03-11 Thread bkk
Has anyone came across same problem ? Appreciate if someone can point out what’s going wrong with these tests -- View this message in context: http://sqlite.1065341.n5.nabble.com/TCL-Test-failures-on-ARM-tp67612p67637.html Sent from the SQLite mailing list archive at Nabble.com.

Re: [sqlite] TCL Test failures on ARM

2013-03-11 Thread bkk
Any one knows how to fix it ? -- View this message in context: http://sqlite.1065341.n5.nabble.com/TCL-Test-failures-on-ARM-tp67612p67621.html Sent from the SQLite mailing list archive at Nabble.com. ___ sqlite-users mailing list

Re: [sqlite] TCL Test failures on ARM

2013-03-10 Thread bkk
yes there were 142 in each of those tests, that is, transient.1... to transient.142... in each of the sets i mentioned above -- View this message in context: http://sqlite.1065341.n5.nabble.com/TCL-Test-failures-on-ARM-tp67612p67614.html Sent from the SQLite mailing list archive at

Re: [sqlite] TCL Test failures on ARM

2013-03-10 Thread Dan Kennedy
On 03/11/2013 10:52 AM, bkk wrote: Hi, When i executed the TCL: tests on my ARM board (nitrogen 6X) the below tests are failing with the message Expected: [0 ok] Got: [1 {nfail=1 rc=1 result=disk I/O error}] sysfault-2.1-vfsfault-transient

[sqlite] TCL Test failures on ARM

2013-03-10 Thread bkk
Hi, When i executed the TCL: tests on my ARM board (nitrogen 6X) the below tests are failing with the message Expected: [0 ok] Got: [1 {nfail=1 rc=1 result=disk I/O error}] sysfault-2.1-vfsfault-transient memsubsys1.sysfault-2.1-vfsfault-transient