This project is archived and is in readonly mode.

#4535 ✓invalid
mica eked

bug when running rails

Reported by mica eked | May 5th, 2010 @ 07:08 AM

this segfault happens on both edge rails and rails3beta3
this happens after starting a server and requesting a page. sometimes it works, sometimes it does not (it works about 30% of the time)
also happens when i try to use other servers instead of webrick, such as thin

here is the console output:

mica-ekeds-mac:ink micaeked$ uname -a
Darwin mica-ekeds-mac 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26 11:57:13 PST 2010; root:xnu-1504.3.12~1/RELEASE_X86_64 x86_64
mica-ekeds-mac:ink micaeked$ rails s
=> Booting WEBrick
=> Rails 3.0.0.beta3 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2010-05-04 22:56:35] INFO  WEBrick 1.3.1
[2010-05-04 22:56:35] INFO  ruby 1.9.1 (2009-12-07) [i386-darwin10.2.0]
[2010-05-04 22:56:35] INFO  WEBrick::HTTPServer#start: pid=46644 port=3000
[BUG] Segmentation fault
ruby 1.9.1p376 (2009-12-07 revision 26041) [i386-darwin10.2.0]

-- control frame ----------
c:0024 p:87122 s:0143 b:0142 l:000141 d:000141 METHOD (null):412
c:0023 p:0024 s:0132 b:0132 l:000131 d:000131 METHOD /Users/micaeked/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/lib/active_
c:0022 p:0013 s:0126 b:0126 l:0017e0 d:0017e0 METHOD /Users/micaeked/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/action_dis
c:0021 p:0014 s:0122 b:0122 l:000121 d:000121 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.1.0/lib/rack/sendfile.rb:105
c:0020 p:0046 s:0112 b:0112 l:000111 d:000111 METHOD /Users/micaeked/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/action_dis
c:0019 p:0014 s:0108 b:0108 l:000107 d:000107 METHOD /Users/micaeked/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/action_dis
c:0018 p:0026 s:0100 b:0100 l:000099 d:000099 METHOD /Users/micaeked/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/rails/rack/l
c:0017 p:0031 s:0096 b:0096 l:000095 d:000095 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.1.0/lib/rack/runtime.rb:17
c:0016 p:0051 s:0087 b:0087 l:000086 d:000086 METHOD /Users/micaeked/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/lib/active_
c:0015 p:0013 s:0083 b:0083 l:000077 d:000082 BLOCK  /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.1.0/lib/rack/lock.rb:11
c:0014 p:0019 s:0081 b:0081 l:000080 d:000080 METHOD <internal:prelude>:8
c:0013 p:0052 s:0078 b:0078 l:000077 d:000077 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.1.0/lib/rack/lock.rb:11
c:0012 p:0189 s:0073 b:0073 l:000072 d:000072 METHOD /Users/micaeked/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/action_dis
c:0011 p:0032 s:0066 b:0066 l:000065 d:000065 METHOD /Users/micaeked/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/rails/applic
c:0010 p:0021 s:0062 b:0062 l:000061 d:000061 METHOD /Users/micaeked/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/rails/applic
c:0009 p:---- s:0057 b:0057 l:000056 d:000056 FINISH
c:0008 p:0014 s:0055 b:0055 l:000054 d:000054 METHOD /Users/micaeked/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/rails/rack/l
c:0007 p:0014 s:0050 b:0050 l:000049 d:000049 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.1.0/lib/rack/content_length.rb:13
c:0006 p:0320 s:0042 b:0042 l:000041 d:000041 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.1.0/lib/rack/handler/webrick.rb:48
c:0005 p:0256 s:0030 b:0030 l:000029 d:000029 METHOD /usr/local/lib/ruby/1.9.1/webrick/httpserver.rb:111
c:0004 p:0382 s:0020 b:0020 l:000019 d:000019 METHOD /usr/local/lib/ruby/1.9.1/webrick/httpserver.rb:70
c:0003 p:0123 s:0009 b:0009 l:001a98 d:000008 BLOCK  /usr/local/lib/ruby/1.9.1/webrick/server.rb:183
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:---- s:0002 b:0002 l:000001 d:000001 TOP   
---------------------------
-- Ruby level backtrace information-----------------------------------------
(null):412:in `'
/Users/micaeked/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/lib/active_support/callbacks.rb:88:in `run_callbacks'
/Users/micaeked/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/action_dispatch/middleware/callbacks.rb:44:in `call'
/usr/local/lib/ruby/gems/1.9.1/gems/rack-1.1.0/lib/rack/sendfile.rb:105:in `call'
/Users/micaeked/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
/Users/micaeked/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/action_dispatch/middleware/show_exceptions.rb:48:in `call'
/Users/micaeked/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/rails/rack/logger.rb:13:in `call'
/usr/local/lib/ruby/gems/1.9.1/gems/rack-1.1.0/lib/rack/runtime.rb:17:in `call'
/Users/micaeked/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
/usr/local/lib/ruby/gems/1.9.1/gems/rack-1.1.0/lib/rack/lock.rb:11:in `block in call'
<internal:prelude>:8:in `synchronize'
/usr/local/lib/ruby/gems/1.9.1/gems/rack-1.1.0/lib/rack/lock.rb:11:in `call'
/Users/micaeked/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/action_dispatch/middleware/static.rb:30:in `call'
/Users/micaeked/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/rails/application.rb:132:in `call'
/Users/micaeked/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/rails/application.rb:81:in `method_missing'
/Users/micaeked/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/rails/rack/log_tailer.rb:15:in `call'
/usr/local/lib/ruby/gems/1.9.1/gems/rack-1.1.0/lib/rack/content_length.rb:13:in `call'
/usr/local/lib/ruby/gems/1.9.1/gems/rack-1.1.0/lib/rack/handler/webrick.rb:48:in `service'
/usr/local/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
/usr/local/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
/usr/local/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'

-- C level backtrace information -------------------------------------------
0x100109fbd 0   ruby                                0x0000000100109fbd rb_vm_bugreport + 77
0x100028794 1   ruby                                0x0000000100028794 report_bug + 260
0x100028928 2   ruby                                0x0000000100028928 rb_bug + 200
0x1000b45d4 3   ruby                                0x00000001000b45d4 sigsegv + 132
0x7fff85dae80a 4   libSystem.B.dylib                   0x00007fff85dae80a _sigtramp + 26
0xffffffffffffffff 5   ???                                 0xffffffffffffffff 0x0 + 18446744073709551615
0x100101dc3 6   ruby                                0x0000000100101dc3 vm_exec + 1203
0x100103d30 7   ruby                                0x0000000100103d30 vm_call0 + 624
0x1000fb4d8 8   ruby                                0x00000001000fb4d8 rb_funcall2 + 296
0x1000fb828 9   ruby                                0x00000001000fb828 vm_method_missing + 184
0x1000fbb58 10  ruby                                0x00000001000fbb58 vm_call_method + 760
0x1000fcb2c 11  ruby                                0x00000001000fcb2c vm_exec_core + 3180
0x100101dc3 12  ruby                                0x0000000100101dc3 vm_exec + 1203
0x100103873 13  ruby                                0x0000000100103873 rb_vm_invoke_proc + 691
0x10010ea33 14  ruby                                0x000000010010ea33 thread_start_func_2 + 835
0x10010eb51 15  ruby                                0x000000010010eb51 thread_start_func_1 + 17
0x7fff85d878b6 16  libSystem.B.dylib                   0x00007fff85d878b6 _pthread_start + 331
0x7fff85d87769 17  libSystem.B.dylib                   0x00007fff85d87769 thread_start + 13

[NOTE]
You may encounter a bug of Ruby interpreter. Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

Abort trap
mica-ekeds-mac:ink micaeked$ rails -v
Rails 3.0.0.beta3
mica-ekeds-mac:ink micaeked$ bundle show rails
/Users/micaeked/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master

the only relevant line i could find is

/Users/micaeked/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/lib/active_support/callbacks.rb:88:in `run_callbacks'

but i have no idea what part of callbacks.rb:88 is causing it to break

    def run_callbacks(kind, *args, &block)
      send("_run_#{kind}_callbacks", *args, &block)
    end

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