#1242 ✓duplicate
Postmodern

Strange segfault when creating a connection to an sqlite3 database.

Reported by Postmodern | April 14th, 2010 @ 07:19 AM

I've recently switched to 1.9.1p376 as my default version of Ruby, and the bugs have just been falling out of the sky. In a rails3 + dm-rails application I've been working on, a rake task (originally developed by other DM devs/users) which generates a Schema Diagram, began to cause SegFaults under 1.9.1. The SegFauls seem to occur when DataObjects connects to the local sqlite3 database file. The SegFault error is very repeatable.

Link to backtrace and rake task: http://gist.github.com/365718

Comments and changes to this ticket

  • Postmodern

    Postmodern April 14th, 2010 @ 07:24 AM

    Forgot to post the dependencies from the Gemfile.

    gem 'dm-rails',           '~> 0.10.2', :git => "#{datamapper}/dm-rails.git"
    
    # DataMapper adapters
    gem 'dm-do-adapter',      '~> 0.10.3', :git => "#{datamapper}/dm-do-adapter.git"
    gem 'dm-sqlite-adapter',  '~> 0.10.3', :git => "#{datamapper}/dm-sqlite-adapter.git"
    
    group(:doc) do
      # In order to use ruby-graphviz, you must also install the graphviz
      # utilities.
      gem 'ruby-graphviz', '0.9.10', :require => 'graphviz'
    end
    
  • Postmodern

    Postmodern April 18th, 2010 @ 01:07 AM

    This is probably related to ticket #1246. You can close this now.

  • Martin Gamsjaeger (snusnu)

    Martin Gamsjaeger (snusnu) April 30th, 2010 @ 08:08 AM

    • State changed from “new” to “duplicate”

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

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

Pages