Re: [sqlite] Sqlite testing

2009-09-28 Thread Shane Harrelson
I'd like to help, but you've not provided any relevant information.
Obviously, in order to test, you're going to need to resolve your
build failure.  SQLite version, compiler, compiler options, compiler
output, etc. would all be useful towards this end.

-Shane


On Fri, Sep 25, 2009 at 12:17 AM, ydlu  wrote:
> I create the "Windows CE 6.0" OS image, so the Console command windows was
> included. I try to build "SQLite3.exe" but failed! So how to test SQLite3 on
> WIndows CE environment on every build?
>
> Thanks
>
> On Wed, Sep 23, 2009 at 8:03 AM, Shane Harrelson  wrote:
>>
>> On Wed, Sep 23, 2009 at 12:22 AM, Roger Binns 
>> wrote:
>> > -BEGIN PGP SIGNED MESSAGE-
>> > Hash: SHA1
>> >
>> > ydlu wrote:
>> >> I am Windows CE software developer, so I am really, really want to
>> >> learn how
>> >> you built and test "sqlite3.exe" in Windows CE platform. so I can run a
>> >> console command line in Windows CE enivroment.
>> >
>> > http://www.sqlite.org/testing.html
>> >
>> > Most likely TH3 is used.
>> >
>> > Roger
>>
>>
>> As Roger guessed, we do indeed use TH3
>> (http://www.sqlite.org/th3.html).   Most Windows CE platforms don't
>> include a "console", so the standard TCL based test fixture would be
>> tricky to port (PocketConsole would be would a tool you could use, but
>> it looks to be no longer available).  Additionally, providing access
>> to the 500+ test files on the test device would be cumbersome, as well
>> as having sufficient resources (memory, etc.) on the device to execute
>> all the tests.
>>
>> HTH.
>> -Shane
>> ___
>> sqlite-users mailing list
>> sqlite-users@sqlite.org
>> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>
>
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Sqlite testing

2009-09-28 Thread Shane Harrelson
I'd like to help, but you've not provided any relevant information.
Obviously, in order to test, you're going to need to resolve your
build failure.  SQLite version, compiler, compiler options, compiler
output, etc. would all be useful towards this end.

-Shane


On Fri, Sep 25, 2009 at 12:17 AM, ydlu  wrote:
> I create the "Windows CE 6.0" OS image, so the Console command windows was
> included. I try to build "SQLite3.exe" but failed! So how to test SQLite3 on
> WIndows CE environment on every build?
>
> Thanks
>
> On Wed, Sep 23, 2009 at 8:03 AM, Shane Harrelson  wrote:
>>
>> On Wed, Sep 23, 2009 at 12:22 AM, Roger Binns 
>> wrote:
>> > -BEGIN PGP SIGNED MESSAGE-
>> > Hash: SHA1
>> >
>> > ydlu wrote:
>> >> I am Windows CE software developer, so I am really, really want to
>> >> learn how
>> >> you built and test "sqlite3.exe" in Windows CE platform. so I can run a
>> >> console command line in Windows CE enivroment.
>> >
>> > http://www.sqlite.org/testing.html
>> >
>> > Most likely TH3 is used.
>> >
>> > Roger
>>
>>
>> As Roger guessed, we do indeed use TH3
>> (http://www.sqlite.org/th3.html).   Most Windows CE platforms don't
>> include a "console", so the standard TCL based test fixture would be
>> tricky to port (PocketConsole would be would a tool you could use, but
>> it looks to be no longer available).  Additionally, providing access
>> to the 500+ test files on the test device would be cumbersome, as well
>> as having sufficient resources (memory, etc.) on the device to execute
>> all the tests.
>>
>> HTH.
>> -Shane
>> ___
>> sqlite-users mailing list
>> sqlite-users@sqlite.org
>> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>
>
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Sqlite testing

2009-09-24 Thread ydlu
I create the "Windows CE 6.0" OS image, so the Console command windows was
included. I try to build "SQLite3.exe" but failed! So how to test SQLite3 on
WIndows CE environment on every build?

Thanks

On Wed, Sep 23, 2009 at 8:03 AM, Shane Harrelson  wrote:

> On Wed, Sep 23, 2009 at 12:22 AM, Roger Binns 
> wrote:
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA1
> >
> > ydlu wrote:
> >> I am Windows CE software developer, so I am really, really want to learn
> how
> >> you built and test "sqlite3.exe" in Windows CE platform. so I can run a
> >> console command line in Windows CE enivroment.
> >
> > http://www.sqlite.org/testing.html
> >
> > Most likely TH3 is used.
> >
> > Roger
>
>
> As Roger guessed, we do indeed use TH3
> (http://www.sqlite.org/th3.html).   Most Windows CE platforms don't
> include a "console", so the standard TCL based test fixture would be
> tricky to port (PocketConsole would be would a tool you could use, but
> it looks to be no longer available).  Additionally, providing access
> to the 500+ test files on the test device would be cumbersome, as well
> as having sufficient resources (memory, etc.) on the device to execute
> all the tests.
>
> HTH.
> -Shane
>  ___
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Sqlite testing

2009-09-23 Thread Shane Harrelson
On Wed, Sep 23, 2009 at 12:22 AM, Roger Binns  wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> ydlu wrote:
>> I am Windows CE software developer, so I am really, really want to learn how
>> you built and test "sqlite3.exe" in Windows CE platform. so I can run a
>> console command line in Windows CE enivroment.
>
> http://www.sqlite.org/testing.html
>
> Most likely TH3 is used.
>
> Roger


As Roger guessed, we do indeed use TH3
(http://www.sqlite.org/th3.html).   Most Windows CE platforms don't
include a "console", so the standard TCL based test fixture would be
tricky to port (PocketConsole would be would a tool you could use, but
it looks to be no longer available).  Additionally, providing access
to the 500+ test files on the test device would be cumbersome, as well
as having sufficient resources (memory, etc.) on the device to execute
all the tests.

HTH.
-Shane
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Sqlite testing

2009-09-22 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

ydlu wrote:
> I am Windows CE software developer, so I am really, really want to learn how
> you built and test "sqlite3.exe" in Windows CE platform. so I can run a
> console command line in Windows CE enivroment.

http://www.sqlite.org/testing.html

Most likely TH3 is used.

Roger
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkq5opYACgkQmOOfHg372QS4rQCg0thYdw8ktn25yl/lodhgW5kk
8+wAn1kMfNq2SVeYwkA43MeIltlTr1VU
=4JOd
-END PGP SIGNATURE-
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Sqlite testing

2009-09-22 Thread ydlu
Hi:
I am Windows CE software developer, so I am really, really want to learn how
you built and test "sqlite3.exe" in Windows CE platform. so I can run a
console command line in Windows CE enivroment.

thanks
Lu

On Thu, Sep 17, 2009 at 6:58 AM, D. Richard Hipp  wrote:

>
> On Sep 16, 2009, at 10:35 PM, James Cooper wrote:
>
> > Your web page www.sqlite.org/testing.html mentions that each release
> > must pass an extensive set of tests " on multiple platforms and
> > under multiple compile-time configurations", but I have not been
> > abel to find out what platforms are tested.  In particular do you
> > test on
> > · Solaris with the Sum compiler?
> > · SCO OpenServer with its native compiler?
> >
>
>
> We test on linux (x86, amd64), mac (x86), win32, win64, and wince.
>
> D. Richard Hipp
> d...@hwaci.com
>
>
>
> ___
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Sqlite testing

2009-09-17 Thread D . Richard Hipp

On Sep 16, 2009, at 10:35 PM, James Cooper wrote:

> Your web page www.sqlite.org/testing.html mentions that each release  
> must pass an extensive set of tests " on multiple platforms and  
> under multiple compile-time configurations", but I have not been  
> abel to find out what platforms are tested.  In particular do you  
> test on
> · Solaris with the Sum compiler?
> · SCO OpenServer with its native compiler?
>


We test on linux (x86, amd64), mac (x86), win32, win64, and wince.

D. Richard Hipp
d...@hwaci.com



___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


RE: [sqlite] sqlite testing with Boundschecker

2007-07-05 Thread James Dennett
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Sunday, July 01, 2007 11:11 AM
> To: sqlite-users@sqlite.org
> Subject: Re: [sqlite] sqlite testing with Boundschecker
> 
> "Damian Slee" <[EMAIL PROTECTED]> wrote:
> >
> > I have done some testing with 3.2 and now 3.4, visual studio2003 and
> > boundschecker (and XP).
> 
> Thank you for the report.
> 
> I have analyzed the errors reported by boundschecker and they
> all appear to be false postives.  The SQLite 3.4.0 code base
> is correct in all cases and boundchecker is complaining about
> problems that do not exist.
> 
> The following is typical:
> 
> >
> > Dangling Pointer: Pointer 0x010D9250, allocated by HeapAlloc, has
> already
> > been freed.
> >
> > Vdbe.c sqlite3VdbeExec Line 469
> >
> >   if( p->magic!=VDBE_MAGIC_RUN ) return SQLITE_MISUSE;
> >   assert( db->magic==SQLITE_MAGIC_BUSY );
> >   [pTos = p->pTos;]
> >   if( p->rc==SQLITE_NOMEM ){
> >
> 
> There are two pointers on the offending line: "p" and "pTos".  The
> p pointer appears to be valid.  Otherwise, the "return SQLITE_MISUSE"
> two lines above would have be taken.  Or at worst, the dereference
> of p two lines above should have triggered a similar error.  So
> apparently boundschecker is upset because SQLite is merely making
> a copy pointer to previously freed memory.  There really is no
> harm in this.  Nothing bad can happen unless the program actually
> tries to dereference the pointer - which it never does.

BoundsChecker is pedantically correct: code which reads the
value of such an indeterminate pointer has undefined behavior
according to the C standard.  Note that I do mean reading
the value of the pointer, not dereferencing it (which is
more obviously invalid).

As for whether it's worth setting the pointer to null after
the memory to which it pointed is freed, that's subjective.

-- James


-
To unsubscribe, send email to [EMAIL PROTECTED]
-



Re: [sqlite] sqlite testing with Boundschecker

2007-07-05 Thread Florian Weimer
> So apparently boundschecker is upset because SQLite is merely making
> a copy pointer to previously freed memory.  There really is no harm
> in this.  Nothing bad can happen unless the program actually tries
> to dereference the pointer - which it never does.

I don't think GCC makes this guarantee.  The standard certainly doesnt
require this; copying a pointer value after the object it points to
has been freed results in undefined behavior.

-
To unsubscribe, send email to [EMAIL PROTECTED]
-



Re: [sqlite] sqlite testing with Boundschecker

2007-07-01 Thread drh
"Damian Slee" <[EMAIL PROTECTED]> wrote:
> 
> I have done some testing with 3.2 and now 3.4, visual studio2003 and
> boundschecker (and XP). 

Thank you for the report.

I have analyzed the errors reported by boundschecker and they
all appear to be false postives.  The SQLite 3.4.0 code base
is correct in all cases and boundchecker is complaining about
problems that do not exist.

The following is typical:

> 
> Dangling Pointer: Pointer 0x010D9250, allocated by HeapAlloc, has already
> been freed.
> 
> Vdbe.c sqlite3VdbeExec Line 469
> 
>   if( p->magic!=VDBE_MAGIC_RUN ) return SQLITE_MISUSE;
>   assert( db->magic==SQLITE_MAGIC_BUSY );
>   [pTos = p->pTos;]
>   if( p->rc==SQLITE_NOMEM ){
> 

There are two pointers on the offending line: "p" and "pTos".  The
p pointer appears to be valid.  Otherwise, the "return SQLITE_MISUSE"
two lines above would have be taken.  Or at worst, the dereference
of p two lines above should have triggered a similar error.  So
apparently boundschecker is upset because SQLite is merely making
a copy pointer to previously freed memory.  There really is no
harm in this.  Nothing bad can happen unless the program actually
tries to dereference the pointer - which it never does.

--
D. Richard Hipp <[EMAIL PROTECTED]>


-
To unsubscribe, send email to [EMAIL PROTECTED]
-



[sqlite] sqlite testing with Boundschecker

2007-07-01 Thread Damian Slee
Hi,

I have done some testing with 3.2 and now 3.4, visual studio2003 and
boundschecker (and XP).  I get a few reported errors when I simply do the
.dump command with no db.  Happens on other times with a db, this is easier.
Line numbers are from the downloaded 3.4.0 source.  I don’t really know how
the vdbe works, so not sure how to start on solving the write overrun one…

 

Thanks,

damian

 

Vdbeaux.c sqlite3VdbeChangeP3 line 534

Memory block at address void* _Src = 0x0012C92C in argument 2 in memcpy is
too small, should be 17, was 16.

if( pKeyInfo ){

  unsigned char *aSortOrder;

  memcpy(pKeyInfo, zP3, nByte);

  aSortOrder = pKeyInfo->aSortOrder;

 

 

Write Overrun: Memory write to 0x010D8A88 (2) overruns destination block
0x010D89F8 (60) allocated by HeapAlloc.

Vdbe.c, sqlite3VdbeExec, Line 701.  This occurs when running sqlite3.exe
with no db, then executing .dump, then second breakpoint on the pTos->flags
line invokes this boundschecker error.  

case OP_Integer: {

  pTos++;

  pTos->flags = MEM_Int;

  pTos->u.i = pOp->p1;

  break;

}

 

Resource Leak Exiting Program: Handle 0x0014 allocated by TlsAlloc.

Os_win.c line 1730

if( !keyInit ){

sqlite3OsEnterMutex();

if( !keyInit ){

  key = TlsAlloc();

  if( key==0x ){

sqlite3OsLeaveMutex();

return 0;

  }

 

 

Dangling Pointer: Pointer 0x010D9250, allocated by HeapAlloc, has already
been freed.

Vdbe.c sqlite3VdbeExec Line 469

if( p->magic!=VDBE_MAGIC_RUN ) return SQLITE_MISUSE;

  assert( db->magic==SQLITE_MAGIC_BUSY );

  pTos = p->pTos;

  if( p->rc==SQLITE_NOMEM ){

 

 

 

Pointer Error:  Pointer 0x010DA9F0, used as an argument, is out of range; no
longer within block 0x010DAA30 (204), allocated by malloc.

Vdbeaux.c, sqlite3VdbeMakeReady line 889 

for(n=0; nnMem; n++){

p->aMem[n].flags = MEM_Null;

  }

 

  p->pTos = >aStack[-1];

  p->pc = -1;

  p->rc = SQLITE_OK;

 

similar error Cleanup, line 967

static void Cleanup(Vdbe *p){

  int i;

  if( p->aStack ){

releaseMemArray(p->aStack, 1 + (p->pTos - p->aStack));

p->pTos = >aStack[-1];

  }

  closeAllCursors(p);

 

 

Similar error  vdbe.c sqlite3VdbeExec, line2681

sqlite3VdbeMemIntegerify(pTos);

  iDb = pTos->u.i;

  assert( (pTos->flags & MEM_Dyn)==0 );

  pTos--;

  assert( iDb>=0 && iDbnDb );

 

 

Unrelated Pointer: Comparing two unrelated pointers 0x010D8A30 and
0x010D8A70.  Pointers are not within the same buffer.

Vdbe.c sqlite3VdbeExec line 983

static void Cleanup(Vdbe *p){

  int i;

  if( p->aStack ){

releaseMemArray(p->aStack, 1 + (p->pTos - p->aStack));

p->pTos = >aStack[-1];

  }

 

 

Unrelated Pointer: Comparing two unrelated pointers 0x010DAD10 and
0x010DACD0.  Pointers are not within the same buffer.

Vdbe.c sqlite3VdbeExec – line 983

  pFirstColumn = [0-pOp->p1];

  for(pMem = p->aStack; pMemaStack ){

releaseMemArray(p->aStack, 1 + (p->pTos - p->aStack));

p->pTos = >aStack[-1];

  }

 

 

Unrelated Pointer: Comparing two unrelated pointers 0x010DAD10 and
0x010DACD0.  Pointers are not within the same buffer.

Vdbe.c sqlite3VdbeExec line 983

pFirstColumn = [0-pOp->p1];

  for(pMem = p->aStack; pMem