Skip to content
Tcl Source Code View Ticket
Login

View Ticket

HAVE_USLEEP not enabled in packaged sqlite3

Closed / Fixed3607718fffffffffffffffffffffffffffffffffCreated 14 years agoUpdated 14 years ago
Descriptionplain2013-03-12 01:50:48
OS Platform and Version: GNU/Linux, verified on Gentoo and Debian 5

Problem behaviour:

The sqlite3 library packaged with Tcl 8.6.0 is built with HAVE_USLEEP undefined, even though it is available on the system. This leads to unexpectedly poor concurrency since sqlite waits for a minimum of 1 second before retrying access to a locked database.

Expected behaviour:

The sqlite3 library is buil twith HAVE_USLEEP defined when this system call is available, leading to expected concurrency behaviour.

The problem can be worked around by building with the following command:

CFLAGS='-DHAVE_USLEEP=1' make

The affected function is sqliteDefaultBusyCallback(), which conditionally compiles different code depending on whether usleep() is available.
dgpplain2013-03-13 02:36:24
Please test the sqlite3 3.7.15.2 distribution now
available at

  ftp://ftp.tcl.tk/pub/tcl/tcl8_6/

If it's correctly fixed this bug, I'll announce
its release.
mbecroftplain2013-03-13 04:02:10
Thanks, the new version now works as expected on my Linux system. I don't know about on other systems though.
dgpplain2013-03-19 00:12:20
allow_comments - 1

The new sqlite3.7.16 distribution should also
have this bug fixed.
Log in (anonymous is fine) to add a comment.