Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
database/sql: Sqlite database locks up when using database/sql across multiple go routines. #2887
What steps will reproduce the problem? 1. Build and run http://pastebin.com/CymKMXja (io/signal -> exp/signal for default) 2. Open in web browser http://127.0.0.1:7777 3. Click "Again" submit button multiple times in quick succession. What is the expected output? The form continuing to appear with running total. What do you see instead? No data Received error in browser. On command line: 2012/02/06 22:55:09 http: panic serving 127.0.0.1:38887: database is locked Which compiler are you using (5g, 6g, 8g, gccgo)? 6g Which operating system are you using? Ubuntu 11.10 Which revision are you using? (hg identify) 7c35ab6ef473 tip Please provide any additional information below. Problem doesn't seem to appear with sleep removed, yet should not make a difference as DB should not be locked whilst goroutine is sleeping. Also, once DB locks, it is only freed on quitting the program. Lastly, I've never had it write lock, only read lock.