Issue #4675 has been updated by Shota Fukumori.

Priority changed from High to Normal

This is not "High" priority.

"High" is your priority, but we don't think this issue is "high" priority.
----------------------------------------
Bug #4675: rails script/server abort trap [BUG] Segmentation fault
http://redmine.ruby-lang.org/issues/4675

Author: james ivy
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: -


Ruby 1.8 and 1.9 makes this bug.  I have no idea how this began, but I cannot fix it.  Please help.  I'm trying to start rails server.

This information is for 1.9...

When I type script/server I see:
/_myshit/gems/gems/mongrel-1.1.5/lib/http11.bundle: [BUG] Segmentation fault
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.7.0]

-- control frame ----------
c:0023 p:-540842894 s:0091 b:0091 l:000090 d:000090 TOP   
c:0022 p:---- s:0089 b:0089 l:000088 d:000088 CFUNC  :require
c:0021 p:0013 s:0085 b:0085 l:000084 d:000084 METHOD <internal:lib/rubygems/custom_require>:29
c:0020 p:0012 s:0080 b:0080 l:000069 d:000079 BLOCK  /_myshit/gems/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156
c:0019 p:0055 s:0078 b:0078 l:000077 d:000077 METHOD /_myshit/gems/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:521
c:0018 p:0041 s:0070 b:0070 l:000069 d:000069 METHOD /_myshit/gems/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156
c:0017 p:0095 s:0064 b:0064 l:000063 d:000063 TOP    /_myshit/gems/gems/mongrel-1.1.5/lib/mongrel.rb:12
c:0016 p:---- s:0062 b:0062 l:000061 d:000061 FINISH
c:0015 p:---- s:0060 b:0060 l:000059 d:000059 CFUNC  :require
c:0014 p:0073 s:0056 b:0056 l:000052 d:000055 BLOCK  <internal:lib/rubygems/custom_require>:33
c:0013 p:0014 s:0053 b:0053 l:000052 d:000052 METHOD <internal:lib/rubygems/custom_require>:29
c:0012 p:0012 s:0048 b:0048 l:000037 d:000047 BLOCK  /_myshit/gems/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156
c:0011 p:0055 s:0046 b:0046 l:000045 d:000045 METHOD /_myshit/gems/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:521
c:0010 p:0041 s:0038 b:0038 l:000037 d:000037 METHOD /_myshit/gems/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156
c:0009 p:0011 s:0032 b:0032 l:000031 d:000031 TOP    /_myshit/gems/gems/rack-1.1.0/lib/rack/handler/mongrel.rb:1
c:0008 p:---- s:0030 b:0030 l:000029 d:000029 FINISH
c:0007 p:0202 s:0028 b:0028 l:002150 d:002150 TOP    /_myshit/gems/gems/rails-2.3.8/lib/commands/server.rb:48
c:0006 p:---- s:0017 b:0017 l:000016 d:000016 FINISH
c:0005 p:---- s:0015 b:0015 l:000014 d:000014 CFUNC  :require
c:0004 p:0013 s:0011 b:0011 l:000010 d:000010 METHOD <internal:lib/rubygems/custom_require>:29
c:0003 p:0038 s:0006 b:0006 l:0014e8 d:0023f8 EVAL   script/server:3
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:0014e8 d:0014e8 TOP   
---------------------------
-- Ruby level backtrace information ----------------------------------------
script/server:3:in `<main>'
<internal:lib/rubygems/custom_require>:29:in `require'
<internal:lib/rubygems/custom_require>:29:in `require'
/_myshit/gems/gems/rails-2.3.8/lib/commands/server.rb:48:in `<top (required)>'
/_myshit/gems/gems/rack-1.1.0/lib/rack/handler/mongrel.rb:1:in `<top (required)>'
/_myshit/gems/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `require'
/_myshit/gems/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:521:in `new_constants_in'
/_myshit/gems/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `block in require'
<internal:lib/rubygems/custom_require>:29:in `require'
<internal:lib/rubygems/custom_require>:33:in `rescue in require'
<internal:lib/rubygems/custom_require>:33:in `require'
/_myshit/gems/gems/mongrel-1.1.5/lib/mongrel.rb:12:in `<top (required)>'
/_myshit/gems/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `require'
/_myshit/gems/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:521:in `new_constants_in'
/_myshit/gems/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `block in require'
<internal:lib/rubygems/custom_require>:29:in `require'
<internal:lib/rubygems/custom_require>:29:in `require'

-- C level backtrace information -------------------------------------------

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

Abort trap





cat ~/Library/Logs/CrashReporter/ruby_2011-05-12-085307_dogs-macbook-pro.crash
Process:         ruby [43191]
Path:            /usr/local/bin/ruby
Identifier:      ruby
Version:         ??? (???)
Code Type:       X86-64 (Native)
Parent Process:  bash [42844]

Date/Time:       2011-05-12 08:53:07.526 -0500
OS Version:      Mac OS X 10.6.7 (10J869)
Report Version:  6

Exception Type:  EXC_BAD_ACCESS (SIGABRT)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Application Specific Information:
abort() called

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   libSystem.B.dylib             	0x00007fff82e635d6 __kill + 10
1   libSystem.B.dylib             	0x00007fff82f03cd6 abort + 83
2   ruby                          	0x000000010003710d rb_bug + 205
3   ruby                          	0x00000001000fc424 sigsegv + 132
4   libSystem.B.dylib             	0x00007fff82e7566a _sigtramp + 26
5   libruby.1.dylib               	0x0000000101f79e1c st_lookup + 26
6   libruby.1.dylib               	0x0000000101f4fca4 rb_intern + 66
7   libruby.1.dylib               	0x0000000101f0a1cc rb_define_module + 25
8   http11.bundle                 	0x00000001005ed52c Init_http11 + 16
9   ruby                          	0x0000000100000f93 dln_load + 275
10  ruby                          	0x0000000100161a8d rb_vm_call_cfunc + 205
11  ruby                          	0x0000000100040412 rb_require_safe + 994
12  ruby                          	0x0000000100177c73 vm_call_method + 931
13  ruby                          	0x0000000100163df4 vm_exec_core + 8276
14  ruby                          	0x000000010016bb23 vm_exec + 1507
15  ruby                          	0x000000010016bfc0 rb_iseq_eval + 368
16  ruby                          	0x000000010003f10c rb_load_internal + 300
17  ruby                          	0x000000010004044f rb_require_safe + 1055
18  ruby                          	0x0000000100177c73 vm_call_method + 931
19  ruby                          	0x0000000100163df4 vm_exec_core + 8276
20  ruby                          	0x000000010016bb23 vm_exec + 1507
21  ruby                          	0x000000010016bfc0 rb_iseq_eval + 368
22  ruby                          	0x000000010003f10c rb_load_internal + 300
23  ruby                          	0x000000010004044f rb_require_safe + 1055
24  ruby                          	0x00000001001412e3 rb_autoload_load + 147
25  ruby                          	0x0000000100143a47 rb_const_get_0 + 103
26  ruby                          	0x000000010016574f vm_exec_core + 14767
27  ruby                          	0x000000010016bb23 vm_exec + 1507
28  ruby                          	0x000000010016bfc0 rb_iseq_eval + 368
29  ruby                          	0x000000010003f10c rb_load_internal + 300
30  ruby                          	0x000000010004044f rb_require_safe + 1055
31  ruby                          	0x0000000100177c73 vm_call_method + 931
32  ruby                          	0x0000000100163df4 vm_exec_core + 8276
33  ruby                          	0x000000010016bb23 vm_exec + 1507
34  ruby                          	0x000000010016be2b rb_iseq_eval_main + 507
35  ruby                          	0x000000010003c362 ruby_exec_internal + 178
36  ruby                          	0x000000010003ecec ruby_run_node + 60
37  ruby                          	0x0000000100000e6f main + 79 (main.c:37)
38  ruby                          	0x0000000100000e14 start + 52

Thread 1:
0   libSystem.B.dylib             	0x00007fff82e4ff8a __semwait_signal + 10
1   libSystem.B.dylib             	0x00007fff82e53da1 _pthread_cond_wait + 1286
2   ruby                          	0x0000000100184626 thread_timer + 182
3   libSystem.B.dylib             	0x00007fff82e4e4f6 _pthread_start + 331
4   libSystem.B.dylib             	0x00007fff82e4e3a9 thread_start + 13

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x0000000000000000  rcx: 0x000000010053faa8  rdx: 0x0000000000000000
  rdi: 0x000000000000a8b7  rsi: 0x0000000000000006  rbp: 0x000000010053fac0  rsp: 0x000000010053faa8
   r8: 0x00007fff70474a40   r9: 0x0000000101e25a10  r10: 0x00007fff82e5f616  r11: 0x0000000000000202
  r12: 0x000000010053fad0  r13: 0x00000001001954f7  r14: 0x0000000000000000  r15: 0x00007fff5fbf9d70
  rip: 0x00007fff82e635d6  rfl: 0x0000000000000202  cr2: 0x00007fff7046c120

Binary Images:
       0x100000000 -        0x10020afe7 +ruby ??? (???) <ED7C78DC-2CBC-B93E-53C0-20B5584B9E74> /usr/local/bin/ruby
       0x1002e0000 -        0x1002e1fff +encdb.bundle ??? (???) <033380C5-1655-1A05-48F6-1DEB6CD9443D> /usr/local/lib/ruby/1.9.1/x86_64-darwin10.7.0/enc/encdb.bundle
       0x1002e4000 -        0x1002e5fff +transdb.bundle ??? (???) <A41F2988-27D0-FE22-07E0-173CC8C72B59> /usr/local/lib/ruby/1.9.1/x86_64-darwin10.7.0/enc/trans/transdb.bundle
       0x1002e8000 -        0x1002e9ff7 +etc.bundle ??? (???) <5582969C-7D43-C7A9-BD5F-1AD85DDCC7B1> /usr/local/lib/ruby/1.9.1/x86_64-darwin10.7.0/etc.bundle
       0x1002ee000 -        0x1002f3fff +stringio.bundle ??? (???) <13A23AD2-7137-B31E-CDFB-0302B6BE9E78> /usr/local/lib/ruby/1.9.1/x86_64-darwin10.7.0/stringio.bundle
       0x1002f8000 -        0x1002f9fe7 +euc_jp.bundle ??? (???) <05515788-CD2A-FFFB-612C-2AC0A66736B7> /usr/local/lib/ruby/1.9.1/x86_64-darwin10.7.0/enc/euc_jp.bundle
       0x1002fc000 -        0x1002fdfff +shift_jis.bundle ??? (???) <DAEB4E88-02B2-D69E-F5EF-CA9B32BADAA3> /usr/local/lib/ruby/1.9.1/x86_64-darwin10.7.0/enc/shift_jis.bundle
       0x100540000 -        0x10055aff7 +syck.bundle ??? (???) <9E4165FF-6803-2948-22A9-893E66B17F15> /usr/local/lib/ruby/1.9.1/x86_64-darwin10.7.0/syck.bundle
       0x100569000 -        0x100574fff +bigdecimal.bundle ??? (???) <A9E85023-934A-631D-F63C-2C135F80B76C> /usr/local/lib/ruby/1.9.1/x86_64-darwin10.7.0/bigdecimal.bundle
       0x10057a000 -        0x10057efff +iconv.bundle ??? (???) <7D181294-3417-FDB9-CB47-94B03CFB6BE1> /usr/local/lib/ruby/1.9.1/x86_64-darwin10.7.0/iconv.bundle
       0x100583000 -        0x1005adfff +nkf.bundle ??? (???) <0FA2A672-739E-1CCE-2B0A-3E6DF108B001> /usr/local/lib/ruby/1.9.1/x86_64-darwin10.7.0/nkf.bundle
       0x1005c6000 -        0x1005c6fff +utf_16be.bundle ??? (???) <A8C7FF6B-9FBF-92B8-9012-9505CFD50E93> /usr/local/lib/ruby/1.9.1/x86_64-darwin10.7.0/enc/utf_16be.bundle
       0x1005c9000 -        0x1005c9fff +utf_32be.bundle ??? (???) <F8BCEF6F-2F71-F3F2-6037-812818A284B8> /usr/local/lib/ruby/1.9.1/x86_64-darwin10.7.0/enc/utf_32be.bundle
       0x1005cc000 -        0x1005cfff7 +strscan.bundle ??? (???) <8FDA6132-AD57-0B2B-09E5-37CF564697AA> /usr/local/lib/ruby/1.9.1/x86_64-darwin10.7.0/strscan.bundle
       0x1005d4000 -        0x1005d7ff7 +parser.bundle ??? (???) <FF216B23-18FD-4123-287D-E410CE2659B5> /usr/local/lib/ruby/1.9.1/x86_64-darwin10.7.0/json/ext/parser.bundle
       0x1005db000 -        0x1005dbfff +utf_16le.bundle ??? (???) <CEDD62AF-F4E8-AAFC-9219-CD4329985F8D> /usr/local/lib/ruby/1.9.1/x86_64-darwin10.7.0/enc/utf_16le.bundle
       0x1005de000 -        0x1005defff +utf_32le.bundle ??? (???) <B781BDE1-E48E-B1B3-BD4E-E9DA609F0628> /usr/local/lib/ruby/1.9.1/x86_64-darwin10.7.0/enc/utf_32le.bundle
       0x1005e1000 -        0x1005e6fe7 +generator.bundle ??? (???) <B44F7006-4055-89EA-479F-4FD5D7ED17B5> /usr/local/lib/ruby/1.9.1/x86_64-darwin10.7.0/json/ext/generator.bundle
       0x1005ec000 -        0x1005efff7 +http11.bundle ??? (???) <ED53FE4D-6C8E-43A1-0F9B-9568F5E22EDC> /_myshit/gems/gems/mongrel-1.1.5/lib/http11.bundle
       0x100700000 -        0x10071fff7 +socket.bundle ??? (???) <93004203-1865-8B05-E45F-EB3AAF4995B0> /usr/local/lib/ruby/1.9.1/x86_64-darwin10.7.0/socket.bundle
       0x101f00000 -        0x101fc3fef  libruby.1.dylib 1.8.7 (compatibility 1.8.0) <1117DC3E-FCD3-6374-EF59-14328723E7D0> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/libruby.1.dylib
    0x7fff5fc00000 -     0x7fff5fc3bdef  dyld 132.1 (???) <69130DA3-7CB3-54C8-ABC5-423DECDD2AF7> /usr/lib/dyld
    0x7fff817c0000 -     0x7fff81876fff  libobjc.A.dylib 227.0.0 (compatibility 1.0.0) <99CB3A0F-64CF-1D16-70CD-8AED2EF06C30> /usr/lib/libobjc.A.dylib
    0x7fff82e14000 -     0x7fff82fd5fff  libSystem.B.dylib 125.2.10 (compatibility 1.0.0) <9BAEB2F2-B485-6349-E1AB-637FE12EE770> /usr/lib/libSystem.B.dylib
    0x7fff84e42000 -     0x7fff84e46ff7  libmathCommon.A.dylib 315.0.0 (compatibility 1.0.0) <95718673-FEEE-B6ED-B127-BCDBDB60D4E5> /usr/lib/system/libmathCommon.A.dylib
    0x7fff861eb000 -     0x7fff86268fef  libstdc++.6.dylib 7.9.0 (compatibility 7.0.0) <35ECA411-2C08-FD7D-11B1-1B7A04921A5C> /usr/lib/libstdc++.6.dylib
    0x7fff8708b000 -     0x7fff870d7fff  libauto.dylib ??? (???) <F7221B46-DC4F-3153-CE61-7F52C8C293CF> /usr/lib/libauto.dylib
    0x7fff8827b000 -     0x7fff88373ff7  libiconv.2.dylib 7.0.0 (compatibility 7.0.0) <44AADE50-15BC-BC6B-BEF0-5029A30766AC> /usr/lib/libiconv.2.dylib
    0x7fffffe00000 -     0x7fffffe01fff  libSystem.B.dylib ??? (???) <9BAEB2F2-B485-6349-E1AB-637FE12EE770> /usr/lib/libSystem.B.dylib



-- 
http://redmine.ruby-lang.org