[sqlite] SQLite crashing

2016-01-26 Thread Clemens Ladisch
Igor Korot wrote: > sqlite.dll!sqlite3_mutex_enter(sqlite3_mutex * p) Line 19996 + 0xc > bytesC > sqlite.dll!sqlite3Close(sqlite3 * db, int forceZombie) Line 726 + 0xc > bytesC > sqlite.dll!sqlite3_close(sqlite3 * db) Line 772 + 0xe bytesC > sqlite.dll!SQLiteDat

[sqlite] sqldiff.c : 2 benign warnings in 64 bits builds

2016-01-26 Thread Stephan Beal
On Tue, Jan 26, 2016 at 6:40 PM, Scott Robison wrote: > On Tue, Jan 26, 2016 at 8:21 AM, Stephan Beal > wrote: > > fwiw, in case this matters: size_t has an unspecified size and it's not > in > > C89. It's defined by C99 in stddef.h > > > > size_t (and ptrdiff_t) are both in C89/C90 in stddef.h.

[sqlite] Can't open database via symlink

2016-01-26 Thread Harald Hanche-Olsen
-Original Message- From:?Richard Hipp Date:?26 January 2016 at 16:29:01 > On 1/25/16, Harald Hanche-Olsen wrote: > > I have discovered that opening a database via a symlink works only if the > > symlink is in the current directory. > > We think this problem is now fixed on trunk. Can yo

[sqlite] sqldiff.c : 2 benign warnings in 64 bits builds

2016-01-26 Thread Stephan Beal
On Tue, Jan 26, 2016 at 3:47 PM, J Decker wrote: > should be (size_t) instead of (int) though... since size_t will retain > the precision... and then back propagate the change to the function > return type and the things receiving the return... then you don't need > the cast anyway. > fwiw, in c

[sqlite] Bug: Successfully committed transaction rolled back after power failure

2016-01-26 Thread Howard Chu
Richard Hipp wrote: > On 1/25/16, Howard Chu wrote: >> >> This is actually quite an unusual requirement; on older Unix systems you >> couldn't even *open* a directory, let alone obtain write access to it or >> fsync it. > > Yeah. When the SQLITE_DISABLE_DIRSYNC compile-time option is present, > w

[sqlite] Bug: Successfully committed transaction rolled back after power failure

2016-01-26 Thread Warren Young
On Jan 25, 2016, at 8:47 AM, Richard Hipp wrote: > > The feedback I receive is that most users of SQLite would much rather > avoid the extra directory syncs, even if it means having the last > transaction rollback following a power loss. Why not do the directory fsync in sqlite3_close_v2()? As

[sqlite] SQLite crashing

2016-01-26 Thread Clemens Ladisch
Igor Korot wrote: > sqlite.dll!sqlite3_mutex_enter(sqlite3_mutex * p) Line 19996 + 0xc > bytesC > sqlite.dll!sqlite3Close(sqlite3 * db, int forceZombie) Line 726 + 0xc > bytesC > sqlite.dll!sqlite3_close(sqlite3 * db) Line 772 + 0xe bytesC > sqlite.dll!SQLiteDat

[sqlite] SQLite crashing

2016-01-26 Thread Teg
Hello Igor, https://msdn.microsoft.com/en-us/library/ms235460.aspx?f=255&MSPPError=-2147217396 This discussed in more details what I originally posted about. >>A related problem can occur when you allocate memory (either >>explicitly with new or malloc, or implicitly with strdup, >>strstreambuf:

[sqlite] SQLite crashing

2016-01-26 Thread Igor Korot
Hi, Clemens, On Tue, Jan 26, 2016 at 7:14 AM, Clemens Ladisch wrote: > Igor Korot wrote: >> sqlite.dll!sqlite3_mutex_enter(sqlite3_mutex * p) Line 19996 + 0xc >> bytesC >> sqlite.dll!sqlite3Close(sqlite3 * db, int forceZombie) Line 726 + 0xc >> bytesC >> sqlite.dll!sqli

[sqlite] sqldiff.c : 2 benign warnings in 64 bits builds

2016-01-26 Thread Olivier Mascia
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 842 bytes Desc: Message signed with OpenPGP using GPGMail URL: <http://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-users/attachments/20160126/1f34142f/attachment.pgp>

[sqlite] SQLite crashing

2016-01-26 Thread Scott Robison
On Mon, Jan 25, 2016 at 2:44 PM, Teg wrote: > >>Are you sure you're not somehow double-freeing the sqlite handle? > >>Especially at close I've seen exit() end up calling atexit() methods > >>multiple times in some circumstances... > > "newed" objects never fires the destructor unless you manually

[sqlite] Fw: new message

2016-01-26 Thread ronny.dier...@telenet.be
Hey! Open message ronny.dierckx at telenet.be

[sqlite] sqldiff.c : 2 benign warnings in 64 bits builds

2016-01-26 Thread Scott Robison
On Tue, Jan 26, 2016 at 8:21 AM, Stephan Beal wrote: > On Tue, Jan 26, 2016 at 3:47 PM, J Decker wrote: > > > should be (size_t) instead of (int) though... since size_t will retain > > the precision... and then back propagate the change to the function > > return type and the things receiving th

[sqlite] Can't open database via symlink

2016-01-26 Thread Richard Hipp
On 1/25/16, Harald Hanche-Olsen wrote: > I have discovered that opening a database via a symlink works only if the > symlink is in the current directory. We think this problem is now fixed on trunk. Can you please try with the latest trunk code (you can download an amalgamation snapshot from htt

[sqlite] sqldiff.c : 2 benign warnings in 64 bits builds

2016-01-26 Thread J Decker
should be (size_t) instead of (int) though... since size_t will retain the precision... and then back propagate the change to the function return type and the things receiving the return... then you don't need the cast anyway. On Tue, Jan 26, 2016 at 3:37 AM, Richard Hipp wrote: > On 1/26/16, Oli

[sqlite] sqldiff.c : 2 benign warnings in 64 bits builds

2016-01-26 Thread Richard Hipp
On 1/26/16, Olivier Mascia wrote: > Hello, > > Using (3.10.2), as was the case with 3.10.0, there are two warnings (VS.2015 > at least, /W3 only) compiling in 64 bits: > Fixed 12 days ago on trunk. https://www.sqlite.org/src/info/74808a79ea3194f6 -- D. Richard Hipp drh at sqlite.org