This project is archived and is in readonly mode.

#6125 ✓resolved
Sam Ruby

SQLite3::CorruptException: database disk image is malformed

Reported by Sam Ruby | December 7th, 2010 @ 08:25 PM | in 3.1

I have a highly repeatable scenario which produces the exception mentioned above.

It happens on 3.1 master, but not on 3-0-stable. It happens on some of my machines, but not all of them. It happens when I try it "manually" by visiting the application using a browser. Changing the scenario slightly changes the frequency of the problem -- simply adding a call to "rake test" or removing pagination or even mail can make the problem occur less frequently.

I've posted the scenario and a snapshot of the application just before the failure online: http://intertwingly.net/stories/2010/12/07/

To reproduce:

  • download and unpack either the zip or tgz file
  • edit Gemfile, and modify the paths
  • bundle install
  • rake db:migrate db:seed
  • rails server
  • visit the root page (localhost:3000)
  • click on the first Add to Cart button, then Checkout; then Place Order

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages