Bug #2738

Segmentation fault - rake test

Added by sergeykish (Sergey Kish) about 10 years ago. Updated almost 9 years ago.

ruby -v:
ruby 1.9.1p378 (2010-01-10 revision 26273) [i686-linux]



I get permanent Segmentation fault on empty rails application with one test case.

~/project/rails$ rails test
~/project/rails$ cd test/
~/project/rails/test$ cp ../quacking-like-ar/test/functional/house_searches_test.rb test/functional/
~/project/rails/test$ rake db:migrate
(in /home/arch/project/rails/test)
~/project/rails/test$ rake test
(in /home/arch/project/rails/test)
/usr/bin/ruby -I"lib:test" "/usr/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake/rake_test_loader.rb"

/usr/bin/ruby -I"lib:test" "/usr/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/functional/house_searches_test.rb"
/usr/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5: [BUG] Segmentation fault
ruby 1.9.1p378 (2010-01-10 revision 26273) [i686-linux]

-- control frame ----------
c:0007 p:---- s:0018 b:0018 l:000017 d:000017 CFUNC :load
c:0006 p:0023 s:0014 b:0014 l:000adc d:000013 BLOCK /usr/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5
c:0005 p:---- s:0011 b:0011 l:000010 d:000010 FINISH
c:0004 p:---- s:0009 b:0009 l:000008 d:000008 CFUNC :each
c:0003 p:0015 s:0006 b:0006 l:000adc d:0013ec EVAL /usr/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:000adc d:000adc TOP

-- Ruby level backtrace information-----------------------------------------
/usr/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in load'
block in '
/usr/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in each'

-- C level backtrace information -------------------------------------------
0xb777d1b0 /usr/lib/ [0xb777d1b0]
0xb7699c61 /usr/lib/ [0xb7699c61]
0xb7699cfa /usr/lib/ [0xb7699cfa]
0xb77242bc /usr/lib/ [0xb77242bc]
0xb77dc40c [0xb77dc40c]
0xb76e7034 /usr/lib/ [0xb76e7034]
0xb76ef0c6 /usr/lib/ [0xb76ef0c6]
0xb778013b /usr/lib/ [0xb778013b]
0xb76db40d /usr/lib/ [0xb76db40d]
0xb76db488 /usr/lib/ [0xb76db488]
0xb7722dd0 /usr/lib/ [0xb7722dd0]
0xb769b289 /usr/lib/ [0xb769b289]
0xb7720cf5 /usr/lib/ [0xb7720cf5]
0xb7720d3c /usr/lib/ [0xb7720d3c]
0xb769de52 /usr/lib/ [0xb769de52]
0xb769dff7 /usr/lib/ [0xb769dff7]
0xb776ac08 /usr/lib/ [0xb776ac08]
0xb776af44 /usr/lib/ [0xb776af44]
0xb777743e /usr/lib/ [0xb777743e]
0xb7770a9e /usr/lib/ [0xb7770a9e]
0xb7773f13 /usr/lib/ [0xb7773f13]
0xb7778c4b /usr/lib/ [0xb7778c4b]
0xb7674db2 /usr/lib/ [0xb7674db2]
0xb776abed /usr/lib/ [0xb776abed]
0xb776af44 /usr/lib/ [0xb776af44]
0xb777743e /usr/lib/ [0xb777743e]
0xb7770a9e /usr/lib/ [0xb7770a9e]
0xb7773f13 /usr/lib/ [0xb7773f13]
0xb777418b /usr/lib/ [0xb777418b]
0xb769be77 /usr/lib/ [0xb769be77]
0xb769d496 /usr/lib/ [0xb769d496]
0x80486a8 /usr/bin/ruby(main+0x68) [0x80486a8]
0xb7510b86 /lib/ [0xb7510b86]
0x80485a1 /usr/bin/ruby() [0x80485a1]

You may encounter a bug of Ruby interpreter. Bug reports are welcome.
For details:

/usr/bin/ruby -I"lib:test" "/usr/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake/rake_test_loader.rb"

Errors running test:functionals!

It as Arch Linux

$ uname -a
Linux localhost 2.6.31-ARCH #1 SMP PREEMPT Tue Nov 10 19:48:17 CET 2009 i686 Intel(R) Atom(TM) CPU Z520 @ 1.33GHz GenuineIntel GNU/Linux

With a lot of gems

$ gem list

*** LOCAL GEMS ***

actionmailer (2.3.5)
actionpack (2.3.5)
activemerchant (1.5.0, 1.4.2)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
authlogic (2.1.3)
autotest-rails (4.1.0)
builder (2.1.2)
capistrano (2.5.14)
cgi_multipart_eof_fix (2.5.0)
configuration (1.1.0)
cucumber (0.6.2)
cucumber-rails (0.2.4)
daemons (1.0.10)
database_cleaner (0.4.3)
diff-lcs (1.1.2)
fastthread (1.0.7)
formtastic (0.9.7)
gem_plugin (0.2.3)
gemcutter (0.3.0)
haml (2.2.19, 2.2.17)
heroku (1.7.1, 1.6.5)
highline (1.5.2, 1.5.1)
hirb (0.2.9)
hoe (2.5.0)
hpricot (0.8.2)
httpclient (
json (1.2.0)
json_pure (1.2.0)
launchy (0.3.5)
mime-types (1.16)
mkrf (0.2.3)
mocha (0.9.8)
mysql (2.8.1)
net-scp (1.0.2)
net-sftp (2.0.4)
net-ssh (2.0.20, 2.0.19)
net-ssh-gateway (1.0.1)
nifty-generators (0.3.0)
nokogiri (1.4.1)
polyglot (0.2.9)
rack (1.1.0, 1.0.1)
rack-test (0.5.3)
rails (2.3.5)
rake (0.8.7)
rest-client (1.3.1, 1.3.0, 1.2.0)
rest-open-uri (1.0.0)
rspec (1.3.0)
rspec-rails (1.3.2)
rubyforge (2.0.3)
rubygems-update (1.3.5)
russian (0.2.5)
sinatra (0.9.4)
soap4r (1.5.8)
sqlite3-ruby (1.2.5)
term-ansicolor (1.0.4)
test-unit (1.2.3)
treetop (1.4.3)
unicode_utils (1.0.0)
webrat (0.7.0)
ZenTest (4.2.1)



house_searches_test.rb (875 Bytes) house_searches_test.rb sergeykish (Sergey Kish), 02/12/2010 04:44 AM

Updated by sergeykish (Sergey Kish) over 9 years ago

I'm sorry - it works good recompiled from source.
Looks like it was caused by blocked packages.
Please close the report.


Updated by matz (Yukihiro Matsumoto) over 9 years ago

  • Status changed from Open to Closed



Also available in: Atom PDF