Issue #5986 has been updated by Yui NARUSE.


Luis Matta wrote:
> Please notice that the login screen works, is the screen just after the login.
> Standard User is : admin / example.com
> Password: password

I succeeded to reproduce with the login.
And I get the bottom of the backtrace of the segv as following.
Frames between 35852 and 35853 is odd because it should have event_callback on the middle of them.
This is not because of optimization of the compiler, because disas event_callback_wrapper shows
it doesn't call rb_funcall directly.

Anyway I doubt this is Third Party's Issue mainly EventMachine.

#35852 0x00000008009c8b8b in rb_funcall (recv=34493000200, mid=Variable "mid" is not available.
) at vm_eval.c:236
#35853 0x0000000800687f36 in event_callback_wrapper (a1=Variable "a1" is not available.
) at rubymain.cpp:162


...
#35821 0x00000008009d1e35 in exec_recursive_i (tag=Variable "tag" is not available.
) at thread.c:3940
#35822 0x00000008009d23ce in exec_recursive (func=0x8008ce0e0 <io_puts_ary>, obj=34410987160,
    pairid=0, arg=34391503720, outer=0) at thread.c:3991
#35823 0x00000008008cdeda in rb_io_puts (argc=1, argv=Variable "argv" is not available.
) at io.c:6406
#35824 0x00000008008ce138 in io_puts_ary (ary=34410987480, out=34391503720, recur=1) at io.c:6363
#35825 0x00000008009d1e35 in exec_recursive_i (tag=Variable "tag" is not available.
) at thread.c:3940
#35826 0x00000008009d23ce in exec_recursive (func=0x8008ce0e0 <io_puts_ary>, obj=34410987480,
    pairid=0, arg=34391503720, outer=0) at thread.c:3991
#35827 0x00000008008cdeda in rb_io_puts (argc=1, argv=Variable "argv" is not available.
) at io.c:6406
#35828 0x00000008009c7f73 in vm_call0 (th=0x801c18300, recv=Variable "recv" is not available.
) at vm_eval.c:79
#35829 0x00000008009ba210 in rb_funcall2 (recv=34391503720, mid=6192, argc=1, argv=0x801cf0338)
    at vm_eval.c:236
#35830 0x00000008009bc7e2 in vm_call_method (th=0x801c18300, cfp=0x801def5b0, num=Variable "num" is
not available.
)
    at vm_insnhelper.c:404
#35831 0x00000008009c2075 in vm_exec_core (th=0x801c18300, initial=Variable "initial" is not availab
le.
) at insns.def:1015
#35832 0x00000008009c6b2e in vm_exec (th=0x801c18300) at vm.c:1220
#35833 0x00000008009cb6dd in invoke_block_from_c (th=0x801c18300, block=0x82f3f5d80,
    self=34493119480, argc=1, argv=Variable "argv" is not available.
) at vm.c:624
#35834 0x00000008009cbc54 in rb_yield (val=34492746840) at vm.c:654
#35835 0x00000008008757bc in rb_ary_each (array=Variable "array" is not available.
) at array.c:1478
#35836 0x00000008009bc7e2 in vm_call_method (th=0x801c18300, cfp=0x801def7c0, num=Variable "num" is
not available.
)
    at vm_insnhelper.c:404
#35837 0x00000008009c2075 in vm_exec_core (th=0x801c18300, initial=Variable "initial" is not availab
le.
) at insns.def:1015
#35838 0x00000008009c6b2e in vm_exec (th=0x801c18300) at vm.c:1220
#35839 0x00000008009c81b2 in vm_call0 (th=0x801c18300, recv=34410946840, id=Variable "id" is not ava
ilable.
) at vm_eval.c:66
#35840 0x00000008009ba210 in rb_funcall2 (recv=34410946840, mid=384, argc=1, argv=0x7fffffff6860)
    at vm_eval.c:236
#35841 0x00000008009bc4b3 in vm_method_missing (th=0x801c18300, id=108558, recv=34410946840, num=Var
iable "num" is not available.
)
    at vm_insnhelper.c:458
#35842 0x00000008009bc960 in vm_call_method (th=0x801c18300, cfp=0x0, num=0, blockptr=0x82f3f5d80,
    flag=270, id=Variable "id" is not available.
) at vm_insnhelper.c:677
#35843 0x00000008009c2075 in vm_exec_core (th=0x801c18300, initial=Variable "initial" is not availab
le.
) at insns.def:1015
#35844 0x00000008009c6b2e in vm_exec (th=0x801c18300) at vm.c:1220
#35845 0x00000008009c81b2 in vm_call0 (th=0x801c18300, recv=34410981200, id=Variable "id" is not ava
ilable.
) at vm_eval.c:66
#35846 0x00000008009ba210 in rb_funcall2 (recv=34410981200, mid=384, argc=1, argv=0x7fffffff6e10)
    at vm_eval.c:236
#35847 0x00000008009bc4b3 in vm_method_missing (th=0x801c18300, id=108558, recv=34410981200, num=Var
iable "num" is not available.
)
    at vm_insnhelper.c:458
#35848 0x00000008009bc960 in vm_call_method (th=0x801c18300, cfp=0x0, num=0, blockptr=0x801def9f8,
    flag=0, id=Variable "id" is not available.
) at vm_insnhelper.c:677
#35849 0x00000008009c2075 in vm_exec_core (th=0x801c18300, initial=Variable "initial" is not availab
le.
) at insns.def:1015
#35850 0x00000008009c6b2e in vm_exec (th=0x801c18300) at vm.c:1220
#35851 0x00000008009c81b2 in vm_call0 (th=0x801c18300, recv=34493000200, id=Variable "id" is not ava
ilable.
) at vm_eval.c:66
#35852 0x00000008009c8b8b in rb_funcall (recv=34493000200, mid=Variable "mid" is not available.
) at vm_eval.c:236
#35853 0x0000000800687f36 in event_callback_wrapper (a1=Variable "a1" is not available.
) at rubymain.cpp:162

#35854 0x000000080068e238 in ConnectionDescriptor::_DispatchInboundData (this=0x82f4b4900, buffer=Va
riable "buffer" is not available.
)
    at ed.cpp:770
#35855 0x000000080068e2cf in ConnectionDescriptor::Read (this=0x82f4b4900) at ed.cpp:718
#35856 0x000000080068fc5f in EventMachine_t::_RunSelectOnce (this=0x82faad000) at em.cpp:859
#35857 0x0000000800690bbb in EventMachine_t::_RunOnce (this=Variable "this" is not available.
) at em.cpp:455
#35858 0x0000000800694fcc in EventMachine_t::Run (this=0x82faad000) at em.cpp:432
#35859 0x00000008006879a9 in t_run_machine_without_threads (self=Variable "self" is not available.
) at rubymain.cpp:185
#35860 0x00000008009bc7e2 in vm_call_method (th=0x801c18300, cfp=0x801defbe0, num=Variable "num" is not available.
)
    at vm_insnhelper.c:404
---Type <return> to continue, or q <return> to quit---
#35861 0x00000008009c2075 in vm_exec_core (th=0x801c18300, initial=Variable "initial" is not available.
) at insns.def:1015
#35862 0x00000008009c6b2e in vm_exec (th=0x801c18300) at vm.c:1220
#35863 0x00000008009c6f75 in rb_iseq_eval (iseqval=34405987000) at vm.c:1447
#35864 0x00000008008ad4bb in rb_load_internal (fname=34405995280, wrap=Variable "wrap" is not available.
) at load.c:310
#35865 0x00000008008ad621 in rb_f_load (argc=Variable "argc" is not available.
) at load.c:383
#35866 0x00000008009bc7e2 in vm_call_method (th=0x801c18300, cfp=0x801defef8, num=Variable "num" is not available.
)
    at vm_insnhelper.c:404
#35867 0x00000008009c2075 in vm_exec_core (th=0x801c18300, initial=Variable "initial" is not available.
) at insns.def:1015
#35868 0x00000008009c6b2e in vm_exec (th=0x801c18300) at vm.c:1220
#35869 0x00000008009c6df7 in rb_iseq_eval_main (iseqval=34401265640) at vm.c:1461
#35870 0x00000008008aaa0f in ruby_exec_internal (n=0x80279a7e8) at eval.c:204
#35871 0x00000008008aaa39 in ruby_exec_node (n=0x80279a7e8) at eval.c:251
#35872 0x00000008008ac62f in ruby_run_node (n=0x80279a7e8) at eval.c:244
#35873 0x0000000000400902 in main (argc=5, argv=0x7fffffffcbd0) at main.c:38
----------------------------------------
Bug #5986: Segmentation Fault
https://bugs.ruby-lang.org/issues/5986

Author: Luis Matta
Status: Feedback
Priority: Low
Assignee: 
Category: core
Target version: 1.9.3
ruby -v: ruby 1.9.3p68 (2012-02-08 revision 34493) [x86_64-linux]


Simply trying to render the home page of active-admin.

I have tested this on Ubuntu 10.04 LTS 64bits, using rvm ruby 1.9.3-head (with and without "rvm pkg install openssl"), and 1.9.2-head.
The structure: Nginx 1.0.11 (using ppa), RVM, Thin 1.3.1, Rails 3.2.1, ActiveAdmin 0.4, and stuff.
I am using SSL with a custom self-signed Certification Authority.

Thanks
(Since this broke my new production environment I have set it to Urgent - apologies if it is an abuse)


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