Hello Richard

I'm using a heavily-modified version of threadtest1.c from the SQLite
test suite to run on my embedded platform. I think Noah may be on to
something (thanks Noah!) - I looked at the stacktrace and found that the
specific sqlite3OsRead() call he mentioned was triggering my bad VFS
read.

Are previous versions of the amalgamation source available? I'd be happy
to try 3.6.8 and 3.6.9 to see at which version this issue appeared.

Cheers,
Dave.


-----Original Message-----
From: D. Richard Hipp [mailto:[email protected]] 
Sent: 16 January 2009 15:30
To: General Discussion of SQLite Database
Subject: Re: [sqlite] reading beyond end of file


On Jan 16, 2009, at 5:38 PM, Dave Toll wrote:

> Hello list
>
>
>
> I recently upgraded from SQLite 3.6.7 to 3.6.10 and I'm now noticing
> some apparently undesirable behaviour. I'm running on an embedded  
> system
> with my own VFS implementation, and I see in my tests that SQLite is  
> now
> trying to read journal files at an offset beyond the end of the  
> file. Is
> anyone aware of any recent changes that could cause this scenario?
> Should this case be handled within the VFS implementation?
>


For testing this, I added an assert() to the unix VFS which will fire  
if it ever tries to read past the end of a journal file.  Then I ran  
our test suite.  The assert() never fired.  So in our test suite, at  
least, SQLite never reads past the end of a a journal file.

I'm curious to know what you are doing to provoke it to read past the  
end of a journal file.....

D. Richard Hipp
[email protected]


_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to