Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3d67a0577aa8a150ff93832f45c5c55f6a9b594f
Ticket: 3607718fffffffffffffffffffffffffffffffff
HAVE_USLEEP not enabled in packaged sqlite3
User & Date: mbecroft on 2013-03-12 01:50:48
Changes

  1. assignee changed to: "stwo"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    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.
    
    
  4. foundin changed to: "current: 8.6.0"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "mbecroft"
  10. subsystem changed to: "53. Configuration and Build Tools"
  11. title changed to: "HAVE_USLEEP not enabled in packaged sqlite3"
  12. type changed to: "Bug"