Issue #11114 has been updated by Luke Harris.


so how do I fix this? uninstall and reinstall ruby?


----------------------------------------
Bug #11114: rails server crash 
https://bugs.ruby-lang.org/issues/11114#change-52312

* Author: Luke Harris
* Status: Rejected
* Priority: Immediate
* Assignee: 
* ruby -v: 2.2.1
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
Trying to run rails server

Process:               ruby [481]
Path:                  /Users/USER/*/ruby
Identifier:            ruby
Version:               ???
Code Type:             X86-64 (Native)
Parent Process:        bash [373]
Responsible:           Terminal [370]
User ID:               501

Date/Time:             2015-05-02 18:05:52.195 -0500
OS Version:            Mac OS X 10.10.1 (14B25)
Report Version:        11
Anonymous UUID:        1B786070-5C73-4319-1C93-80F5DFE79BAF


Time Awake Since Boot: 610 seconds

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGABRT)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000418

VM Regions Near 0x418:
--> 
    __TEXT                 0000000102f49000-00000001037b2000 [ 8612K] r-x/rwx SM=COW  /Users/USER/*

Application Specific Information:
abort() called

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	0x00007fff8fdc1282 __pthread_kill + 10
1   libsystem_c.dylib             	0x00007fff8ebc1b73 abort + 129
2   ruby                          	0x00000001030a5c99 die + 9
3   ruby                          	0x00000001030a5ece rb_bug_context + 558
4   ruby                          	0x000000010317e2f3 sigsegv + 83
5   libsystem_platform.dylib      	0x00007fff8ebf5f1a _sigtramp + 26
6   libruby.2.0.0.dylib           	0x0000000103cc849f ruby_xmalloc + 17
7   libruby.2.0.0.dylib           	0x0000000103d6191e st_init_strcasetable + 16
8   libruby.2.0.0.dylib           	0x0000000103c8a3aa rb_enc_init + 29
9   libruby.2.0.0.dylib           	0x0000000103c8aff7 rb_usascii_encoding + 21
10  libruby.2.0.0.dylib           	0x0000000103d0c824 rb_intern + 23
11  libruby.2.0.0.dylib           	0x0000000103ca13f6 rb_define_module + 16
12  sqlite3_native.bundle         	0x0000000103c801f7 Init_sqlite3_native + 19 (sqlite3.c:76)
13  ruby                          	0x0000000103068072 dln_load + 226
14  ruby                          	0x00000001031f4aa2 rb_vm_call_cfunc + 418
15  ruby                          	0x00000001030b34e9 rb_require_internal + 1593
16  ruby                          	0x00000001030b2d58 rb_f_require + 24
17  ruby                          	0x00000001031ffbdb vm_call_cfunc + 1547
18  ruby                          	0x00000001031fef50 vm_call_method + 880
19  ruby                          	0x00000001031e3ebd vm_exec_core + 12621
20  ruby                          	0x00000001031f36f1 vm_exec + 129
21  ruby                          	0x00000001031f362d rb_iseq_eval + 285
22  ruby                          	0x00000001030b3ed7 rb_load_internal0 + 311
23  ruby                          	0x00000001030b3424 rb_require_internal + 1396
24  ruby                          	0x00000001030b2d58 rb_f_require + 24
25  ruby                          	0x00000001031ffbdb vm_call_cfunc + 1547
26  ruby                          	0x00000001031e3ebd vm_exec_core + 12621
27  ruby                          	0x00000001031f36f1 vm_exec + 129
28  ruby                          	0x00000001031f8844 invoke_block_from_c + 2180
29  ruby                          	0x00000001031efaf0 rb_yield + 192
30  ruby                          	0x000000010306aaa9 rb_ary_each + 89
31  ruby                          	0x00000001031ffbdb vm_call_cfunc + 1547
32  ruby                          	0x00000001031e3ce8 vm_exec_core + 12152
33  ruby                          	0x00000001031f36f1 vm_exec + 129
34  ruby                          	0x00000001031f8844 invoke_block_from_c + 2180
35  ruby                          	0x00000001031efaf0 rb_yield + 192
36  ruby                          	0x000000010306aaa9 rb_ary_each + 89
37  ruby                          	0x00000001031ffbdb vm_call_cfunc + 1547
38  ruby                          	0x00000001031fef50 vm_call_method + 880
39  ruby                          	0x00000001031e3ce8 vm_exec_core + 12152
40  ruby                          	0x00000001031f36f1 vm_exec + 129
41  ruby                          	0x00000001031f362d rb_iseq_eval + 285
42  ruby                          	0x00000001030b3ed7 rb_load_internal0 + 311
43  ruby                          	0x00000001030b3424 rb_require_internal + 1396
44  ruby                          	0x00000001030b2d58 rb_f_require + 24
45  ruby                          	0x00000001031ffbdb vm_call_cfunc + 1547
46  ruby                          	0x00000001031fef50 vm_call_method + 880
47  ruby                          	0x00000001031e3ebd vm_exec_core + 12621
48  ruby                          	0x00000001031f36f1 vm_exec + 129
49  ruby                          	0x00000001031f8844 invoke_block_from_c + 2180
50  ruby                          	0x00000001031efaf0 rb_yield + 192
51  ruby                          	0x000000010310dcfe rb_obj_tap + 14
52  ruby                          	0x00000001031ffbdb vm_call_cfunc + 1547
53  ruby                          	0x00000001031fef50 vm_call_method + 880
54  ruby                          	0x00000001031e3ce8 vm_exec_core + 12152
55  ruby                          	0x00000001031f36f1 vm_exec + 129
56  ruby                          	0x00000001031f362d rb_iseq_eval + 285
57  ruby                          	0x00000001030b3ed7 rb_load_internal0 + 311
58  ruby                          	0x00000001030b3424 rb_require_internal + 1396
59  ruby                          	0x00000001030b2d58 rb_f_require + 24
60  ruby                          	0x00000001031ffbdb vm_call_cfunc + 1547
61  ruby                          	0x00000001031fef50 vm_call_method + 880
62  ruby                          	0x00000001031e3ebd vm_exec_core + 12621
63  ruby                          	0x00000001031f36f1 vm_exec + 129
64  ruby                          	0x00000001031f362d rb_iseq_eval + 285
65  ruby                          	0x00000001030b3ed7 rb_load_internal0 + 311
66  ruby                          	0x00000001030b3b8a rb_f_load + 186
67  ruby                          	0x00000001031ffbdb vm_call_cfunc + 1547
68  ruby                          	0x00000001031fef50 vm_call_method + 880
69  ruby                          	0x00000001031e3ebd vm_exec_core + 12621
70  ruby                          	0x00000001031f36f1 vm_exec + 129
71  ruby                          	0x00000001031f362d rb_iseq_eval + 285
72  ruby                          	0x00000001030b3ed7 rb_load_internal0 + 311
73  ruby                          	0x00000001030b3b8a rb_f_load + 186
74  ruby                          	0x00000001031ffbdb vm_call_cfunc + 1547
75  ruby                          	0x00000001031fef50 vm_call_method + 880
76  ruby                          	0x00000001031e3ebd vm_exec_core + 12621
77  ruby                          	0x00000001031f36f1 vm_exec + 129
78  ruby                          	0x00000001031f362d rb_iseq_eval + 285
79  ruby                          	0x00000001030b3ed7 rb_load_internal0 + 311
80  ruby                          	0x00000001030b3424 rb_require_internal + 1396
81  ruby                          	0x00000001030b2d58 rb_f_require + 24
82  ruby                          	0x00000001031ffbdb vm_call_cfunc + 1547
83  ruby                          	0x00000001031fef50 vm_call_method + 880
84  ruby                          	0x00000001031e3ebd vm_exec_core + 12621
85  ruby                          	0x00000001031f36f1 vm_exec + 129
86  ruby                          	0x00000001031f362d rb_iseq_eval + 285
87  ruby                          	0x00000001030b3ed7 rb_load_internal0 + 311
88  ruby                          	0x00000001030b3b8a rb_f_load + 186
89  ruby                          	0x00000001031ffbdb vm_call_cfunc + 1547
90  ruby                          	0x00000001031fef50 vm_call_method + 880
91  ruby                          	0x00000001031e3ebd vm_exec_core + 12621
92  ruby                          	0x00000001031f36f1 vm_exec + 129
93  ruby                          	0x00000001031f46e8 rb_iseq_eval_main + 504
94  ruby                          	0x00000001030aec84 ruby_exec_internal + 148
95  ruby                          	0x00000001030aebae ruby_run_node + 78
96  ruby                          	0x0000000102f5b73f main + 79
97  ruby                          	0x0000000102f4a134 start + 52

Thread 1:: ruby-timer-thr
0   libsystem_kernel.dylib        	0x00007fff8fdc25be poll + 10
1   libsystem_pthread.dylib       	0x00007fff964b32fc _pthread_body + 131
2   libsystem_pthread.dylib       	0x00007fff964b3279 _pthread_start + 176
3   libsystem_pthread.dylib       	0x00007fff964b14b1 thread_start + 13

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x0000000000000006  rcx: 0x00007fe3cb8ec7f8  rdx: 0x0000000000000000
  rdi: 0x0000000000000f0f  rsi: 0x0000000000000006  rbp: 0x00007fe3cb8ec820  rsp: 0x00007fe3cb8ec7f8
   r8: 0x00007fe3cb8ec7d0   r9: 0x00007fff7dbd0300  r10: 0x0000000008000000  r11: 0x0000000000000206
  r12: 0x00007fe3cb8ec950  r13: 0x0000000000000062  r14: 0x00007fff7dbd0300  r15: 0x00000001033b98b5
  rip: 0x00007fff8fdc1282  rfl: 0x0000000000000206  cr2: 0x00007fff7ca81fd8
  
Logical CPU:     0
Error Code:      0x02000148
Trap Number:     133


Binary Images:
       0x102f49000 -        0x1037b1fc7 +ruby (???) <E8A32EB7-C3FC-3A1B-90F8-F497D7B0BCAB> /Users/USER/*/ruby
       0x103a32000 -        0x103c3bfff +nokogiri.bundle (0) <FDA38932-D1DE-34F9-9345-2BEFC6BA24BD> /Users/USER/*/nokogiri.bundle
       0x103c7d000 -        0x103c81fff +sqlite3_native.bundle (0) <9946F7B9-F2B8-31E9-B7DA-465642933DE7> /Users/USER/*/sqlite3_native.bundle
       0x103c88000 -        0x103e34ff7  libruby.2.0.0.dylib (106) <02E09C37-483F-37BC-87DA-2347D619FAF9> /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/libruby.2.0.0.dylib
    0x7fff6f639000 -     0x7fff6f66f837  dyld (353.2.1) <4696A982-1500-34EC-9777-1EF7A03E2659> /usr/lib/dyld
    0x7fff8d908000 -     0x7fff8d911ff7  libsystem_notify.dylib (133.1.1) <61147800-F320-3DAA-850C-BADF33855F29> /usr/lib/system/libsystem_notify.dylib
    0x7fff8dba9000 -     0x7fff8dbaafff  libDiagnosticMessagesClient.dylib (100) <2EE8E436-5CDC-34C5-9959-5BA218D507FB> /usr/lib/libDiagnosticMessagesClient.dylib
    0x7fff8dbd5000 -     0x7fff8dbd6ffb  libremovefile.dylib (35) <3485B5F4-6CE8-3C62-8DFD-8736ED6E8531> /usr/lib/system/libremovefile.dylib
    0x7fff8df62000 -     0x7fff8df92fff  libsystem_m.dylib (3086.1) <1E12AB45-6D96-36D0-A226-F24D9FB0D9D6> /usr/lib/system/libsystem_m.dylib
    0x7fff8df98000 -     0x7fff8df99fff  libSystem.B.dylib (1213) <DA954461-EC6A-3DF0-8551-6FC810627627> /usr/lib/libSystem.B.dylib
    0x7fff8e299000 -     0x7fff8e29eff7  libmacho.dylib (862) <126CA2ED-DE91-308F-8881-B9DAEC3C63B6> /usr/lib/system/libmacho.dylib
    0x7fff8e6ff000 -     0x7fff8e727fff  libsystem_info.dylib (459) <B85A85D5-8530-3A93-B0C3-4DEC41F79478> /usr/lib/system/libsystem_info.dylib
    0x7fff8ea95000 -     0x7fff8ea96fff  libffi.dylib (18.1) <0F6C6A4D-1210-3585-8DA1-B8A94B9924A5> /usr/lib/libffi.dylib
    0x7fff8eabf000 -     0x7fff8eb13fff  libc++.1.dylib (120) <1B9530FD-989B-3174-BB1C-BDC159501710> /usr/lib/libc++.1.dylib
    0x7fff8eb64000 -     0x7fff8ebf0fff  libsystem_c.dylib (1044.1.2) <C185E862-7424-3210-B528-6B822577A4B8> /usr/lib/system/libsystem_c.dylib
    0x7fff8ebf1000 -     0x7fff8ebf9fff  libsystem_platform.dylib (63) <64E34079-D712-3D66-9CE2-418624A5C040> /usr/lib/system/libsystem_platform.dylib
    0x7fff8ec29000 -     0x7fff8ec29ff7  libkeymgr.dylib (28) <77845842-DE70-3CC5-BD01-C3D14227CED5> /usr/lib/system/libkeymgr.dylib
    0x7fff8eca9000 -     0x7fff8ecbaff7  libsystem_coretls.dylib (35.1.2) <EBBF7EF6-80D8-3F8F-825C-B412BD6D22C0> /usr/lib/system/libsystem_coretls.dylib
    0x7fff8f2fc000 -     0x7fff8f327fff  libc++abi.dylib (125) <88A22A0F-87C6-3002-BFBA-AC0F2808B8B9> /usr/lib/libc++abi.dylib
    0x7fff8fa5a000 -     0x7fff8fb4cff7  libiconv.2.dylib (42) <2A06D02F-8B76-3864-8D96-64EF5B40BC6C> /usr/lib/libiconv.2.dylib
    0x7fff8fd9d000 -     0x7fff8fda5fff  libsystem_dnssd.dylib (561.1.1) <62B70ECA-E40D-3C63-896E-7F00EC386DDB> /usr/lib/system/libsystem_dnssd.dylib
    0x7fff8fda6000 -     0x7fff8fdaafff  libsystem_stats.dylib (163.1.4) <1DB04436-5974-3F16-86CC-5FF5F390339C> /usr/lib/system/libsystem_stats.dylib
    0x7fff8fdab000 -     0x7fff8fdc8fff  libsystem_kernel.dylib (2782.1.97) <93E0E0A9-75B6-3904-BB4E-4BC7C05F4B6B> /usr/lib/system/libsystem_kernel.dylib
    0x7fff9070f000 -     0x7fff90715ff7  libsystem_networkextension.dylib (167.1.10) <29AB225B-D7FB-30ED-9600-65D44B9A9442> /usr/lib/system/libsystem_networkextension.dylib
    0x7fff91b38000 -     0x7fff91b7eff7  libauto.dylib (186) <A260789B-D4D8-316A-9490-254767B8A5F1> /usr/lib/libauto.dylib
    0x7fff9207a000 -     0x7fff9207bfff  libsystem_secinit.dylib (18) <581DAD0F-6B63-3A48-B63B-917AF799ABAA> /usr/lib/system/libsystem_secinit.dylib
    0x7fff92b5d000 -     0x7fff92b6eff7  libz.1.dylib (55) <88C7C7DE-04B8-316F-8B74-ACD9F3DE1AA1> /usr/lib/libz.1.dylib
    0x7fff92cd6000 -     0x7fff92ce1fff  libcommonCrypto.dylib (60061) <D381EBC6-69D8-31D3-8084-5A80A32CB748> /usr/lib/system/libcommonCrypto.dylib
    0x7fff92da5000 -     0x7fff92dddffb  libsystem_network.dylib (411) <C0B2313D-47BE-38A9-BEE6-2634A4F5E14B> /usr/lib/system/libsystem_network.dylib
    0x7fff94225000 -     0x7fff94229fff  libcache.dylib (69) <45E9A2E7-99C4-36B2-BEE3-0C4E11614AD1> /usr/lib/system/libcache.dylib
    0x7fff94767000 -     0x7fff9476fffb  libcopyfile.dylib (118.1.2) <0C68D3A6-ACDD-3EF3-991A-CC82C32AB836> /usr/lib/system/libcopyfile.dylib
    0x7fff94770000 -     0x7fff94772ff7  libutil.dylib (38) <471AD65E-B86E-3C4A-8ABD-B8665A2BCE3F> /usr/lib/libutil.dylib
    0x7fff9482c000 -     0x7fff9482cff7  liblaunch.dylib (559.1.22) <8A988924-8BE7-35FE-BF7D-322E90EFE49E> /usr/lib/system/liblaunch.dylib
    0x7fff94a04000 -     0x7fff94a06fff  libsystem_configuration.dylib (699.1.5) <9FBA1CE4-97D0-347E-A443-93ED94512E92> /usr/lib/system/libsystem_configuration.dylib
    0x7fff94cb7000 -     0x7fff94cb9ff7  libsystem_coreservices.dylib (9) <41B7C578-5A53-31C8-A96F-C73E030B0938> /usr/lib/system/libsystem_coreservices.dylib
    0x7fff9531a000 -     0x7fff95336ff7  libsystem_malloc.dylib (53.1.1) <19BCC257-5717-3502-A71F-95D65AFA861B> /usr/lib/system/libsystem_malloc.dylib
    0x7fff9616d000 -     0x7fff9619dff7  libncurses.5.4.dylib (44) <F09809A4-53B9-3E91-A8FA-D3F584C03AA3> /usr/lib/libncurses.5.4.dylib
    0x7fff9619e000 -     0x7fff9619eff7  libunc.dylib (29) <5676F7EA-C1DF-329F-B006-D2C3022B7D70> /usr/lib/system/libunc.dylib
    0x7fff962de000 -     0x7fff96306fff  libxpc.dylib (559.1.22) <9437C02E-A07B-38C8-91CB-299FAA63083D> /usr/lib/system/libxpc.dylib
    0x7fff964b0000 -     0x7fff964b9fff  libsystem_pthread.dylib (105.1.4) <26B1897F-0CD3-30F3-B55A-37CB45062D73> /usr/lib/system/libsystem_pthread.dylib
    0x7fff971a4000 -     0x7fff97389267  libobjc.A.dylib (646) <3B60CD90-74A2-3A5D-9686-B0772159792A> /usr/lib/libobjc.A.dylib
    0x7fff97702000 -     0x7fff97703ff7  libsystem_blocks.dylib (65) <9615D10A-FCA7-3BE4-AA1A-1B195DACE1A1> /usr/lib/system/libsystem_blocks.dylib
    0x7fff978b2000 -     0x7fff97c48fff  com.apple.CoreFoundation (6.9 - 1151.16) <F2B088AF-A5C6-3FAE-9EB4-7931AF6359E4> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7fff9804c000 -     0x7fff98066ff7  liblzma.5.dylib (7) <1D03E875-A7C0-3028-814C-3C27F7B7C079> /usr/lib/liblzma.5.dylib
    0x7fff9818f000 -     0x7fff98191ff7  libquarantine.dylib (76) <DC041627-2D92-361C-BABF-A869A5C72293> /usr/lib/system/libquarantine.dylib
    0x7fff98220000 -     0x7fff9824aff7  libdispatch.dylib (442.1.4) <502CF32B-669B-3709-8862-08188225E4F0> /usr/lib/system/libdispatch.dylib
    0x7fff982e6000 -     0x7fff9835cfe7  libcorecrypto.dylib (233.1.2) <E1789801-3985-3949-B736-6B3378873301> /usr/lib/system/libcorecrypto.dylib
    0x7fff98524000 -     0x7fff9853aff7  libsystem_asl.dylib (267) <F153AC5B-0542-356E-88C8-20A62CA704E2> /usr/lib/system/libsystem_asl.dylib
    0x7fff9972d000 -     0x7fff99732ff7  libunwind.dylib (35.3) <BE7E51A0-B6EA-3A54-9CCA-9D88F683A6D6> /usr/lib/system/libunwind.dylib
    0x7fff99a9e000 -     0x7fff99aa5ff7  libcompiler_rt.dylib (35) <BF8FC133-EE10-3DA6-9B90-92039E28678F> /usr/lib/system/libcompiler_rt.dylib
    0x7fff9ab2c000 -     0x7fff9ab2eff7  libsystem_sandbox.dylib (358.1.1) <DB9962EF-8898-31CC-9B87-E01F8CE74C9D> /usr/lib/system/libsystem_sandbox.dylib
    0x7fff9b360000 -     0x7fff9b363ff7  libdyld.dylib (353.2.1) <19FAF435-C165-3374-9DEF-D7BBA7D61DB6> /usr/lib/system/libdyld.dylib
    0x7fff9b364000 -     0x7fff9b36afff  libsystem_trace.dylib (72.1.3) <A9E6B7D8-C327-3742-AC54-86C94218B1DF> /usr/lib/system/libsystem_trace.dylib
    0x7fff9b3ad000 -     0x7fff9b592ff3  libicucore.A.dylib (531.30) <EF0E7544-E317-3550-A962-6AE65E78AF17> /usr/lib/libicucore.A.dylib
    0x7fff9b96c000 -     0x7fff9baaefff  libsqlite3.dylib (168) <7B580EB9-9260-35FE-AE2F-276A2C242BAB> /usr/lib/libsqlite3.dylib

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 198
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=97.4M resident=46.9M(48%) swapped_out_or_unallocated=50.5M(52%)
Writable regions: Total=65.0M written=24.9M(38%) resident=33.8M(52%) swapped_out=0K(0%) unallocated=31.2M(48%)
 
REGION TYPE                      VIRTUAL
===========                      =======
Kernel Alloc Once                     4K
MALLOC                             56.2M
MALLOC (admin)                       16K
STACK GUARD                           4K
Stack                              64.0M
VM_ALLOCATE                          12K
__DATA                             1792K
__LINKEDIT                         71.4M
__TEXT                             25.9M
__UNICODE                           544K
shared memory                         4K
===========                      =======
TOTAL                             219.9M




-- 
https://bugs.ruby-lang.org/