Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Segmentation fault on 1.8.7 patchlevel 249 on xampp

#4953

Cannot create even the most simple project. The Welcome Aboard screen shows up alright but when I try to create via Windows 7 console the following:

ruby script/generate scaffold person title:string forenames:string surname:string parish_id:string

the outcome is as shown below.

c:\xampp\htdocs\church>rake db:migrate
(in c:/xampp/htdocs/church) C:/xampp/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/vend
or/i18n-0.3.7/i18n/core_ext/string/interpolate.rb:91: [BUG] Segmentation fault
ruby 1.8.7 (2010-01-10 patchlevel 249) [i386-mingw32]

Any advice would be welcome :)

Thanks,
Calum

Reported by Calum MacLeod · June 24th, 2010 @ 09:37 AM

State: invalid
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Damien MATHIEU
    Damien MATHIEU

    Could you provide the entire backtrace ?
    You'll get it with rake db:migrate --trace

    June 24th, 2010 @ 09:39 AM

  2. Calum MacLeod
    Calum MacLeod

    c:\xampp\htdocs\church>rake db:migrate --trace
    (in c:/xampp/htdocs/church) Invoke db:migrate (first_time) Invoke environment (first_time) Execute environment Execute db:migrate rake aborted!
    Mysql::Error: query: not connected: CREATE TABLE schema_migrations (version
    varchar(255) NOT NULL) ENGINE=InnoDB
    C:/xampp/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connec
    tion_adapters/abstract_adapter.rb:221:in log'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connec<br/> tion_adapters/mysql_adapter.rb:323:inexecute'
    C:/xampp/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connec
    tion_adapters/abstract/schema_statements.rb:109:in create_table'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connec<br/> tion_adapters/mysql_adapter.rb:477:increate_table'
    C:/xampp/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connec
    tion_adapters/abstract/schema_statements.rb:369:in initialize_schema_migrations<br/> _table'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/migrat<br/> ion.rb:441:ininitialize'
    C:/xampp/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/migrat
    ion.rb:401:in new'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/migrat<br/> ion.rb:401:inup'
    C:/xampp/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/migrat
    ion.rb:383:in migrate'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/tasks/databases.rake:112<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:incall'
    C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in execute'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:ineach'
    C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in execute'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:ininvoke_with
    call_chain'
    C:/xampp/ruby/lib/ruby/1.8/monitor.rb:242:in synchronize'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:ininvoke_with

    call_chain'
    C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in invoke'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:ininvoke_task
    ' C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in top_level'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:ineach'
    C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in top_level'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:instandard_ex
    ception_handling'
    C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in top_level'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:inrun'
    C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in standard_ex<br/> ception_handling'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:inrun'
    C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
    C:/xampp/ruby/bin/rake:19:in load'<br/> C:/xampp/ruby/bin/rake:19

    June 24th, 2010 @ 09:49 AM

  3. Rohit Arondekar
    Rohit Arondekar

    I don't know if this is still relevant but you could try the solution provided in this blog post -> http://halyph.blogspot.com/2009/08/rails-23-migration-issues-with-m...

    If it does work please update this ticket so that it can be closed.

    June 24th, 2010 @ 10:06 AM

  4. Calum MacLeod
    Calum MacLeod

    I downloaded the older libmySQL.dll and put it in c:\xampp\ruby\bin as advised in the post mentioned by Rohit Arondekar.

    Then, I merely issued the "rake db:migrate" command once more and it worked, straight away.

    Thanks, Rohit and HalypH !

    Calum

    This ticket should now be closed.

    June 24th, 2010 @ 10:15 AM

  5. Rohit Arondekar
    Rohit Arondekar
    • State changed from new to invalid

    Cheers :)

    June 24th, 2010 @ 10:20 AM