Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1372906

Summary: ruby segfault when upgrading to 6.2.1
Product: Red Hat Satellite Reporter: Pavel Moravec <pmoravec>
Component: UpgradesAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WORKSFORME QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: high    
Version: 6.2.0CC: bbuckingham, inecas, jcallaha
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-14 14:05:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
foreman-debug taken just after failed upgrade none

Description Pavel Moravec 2016-09-03 15:03:09 UTC
Created attachment 1197437 [details]
foreman-debug taken just after failed upgrade

Description of problem:
6.2.0 -> 6.2.1 upgrade hit ruby segfault during migrate_foreman step:

..
[ INFO 2016-09-03 16:53:50 main] Upgrade Step: migrate_foreman...
[DEBUG 2016-09-03 16:54:28 main] true

[DEBUG 2016-09-03 16:55:11 main]
[ERROR 2016-09-03 16:55:50 main] /opt/rh/rh-ror41/root/usr/share/gems/gems/actionpack-4.1.5/lib/action_dispatch/journey/gtg/builder.rb:135: [BUG] Segmentation fault at 0x000000000000a8
ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]

-- Control frame information -----------------------------------------------
c:0107 p:---- s:0454 e:000453 CFUNC  :initialize
c:0106 p:---- s:0452 e:000451 CFUNC  :new
..


Version-Release number of selected component (if applicable):
Sat 6.2.0 -> 6.2.1 migration


How reproducible:
???


Steps to Reproduce:
1. n.a., seen once on my Satellite


Actual results:
segfault as above


Expected results:
no segfault


Additional info:
foreman-debug attached

Comment 2 Pavel Moravec 2016-09-03 18:39:40 UTC
Another segfault during:

rake katello:upgrades:3.0:update_subscription_facet_backend_data

See /var/spool/abrt/ccpp-2016-09-03-17:25:03-16055 on same machine.

Comment 3 Pavel Moravec 2016-09-04 08:17:31 UTC
Backtrace:

(gdb) bt
#0  0x00007f558c10d5f7 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00007f558c10ece8 in __GI_abort () at abort.c:90
#2  0x00007f558ce61d27 in die () at error.c:395
#3  rb_bug (fmt=fmt@entry=0x7f558cf9d37f "rb_gc_mark(): %p is T_NONE") at error.c:411
#4  0x00007f558ce7d75b in gc_mark_children (objspace=objspace@entry=0x1007ae0, obj=168723632) at gc.c:4253
#5  0x00007f558ce7fdf3 in gc_mark_stacked_objects (count=<optimized out>, incremental=<optimized out>, objspace=<optimized out>)
    at gc.c:4281
#6  gc_mark_stacked_objects_all (objspace=<optimized out>) at gc.c:4323
#7  gc_marks_rest (objspace=objspace@entry=0x1007ae0) at gc.c:5145
#8  0x00007f558ce803b0 in gc_marks (full_mark=<optimized out>, objspace=0x1007ae0) at gc.c:5205
#9  gc_start (objspace=0x1007ae0, full_mark=<optimized out>, immediate_mark=<optimized out>, immediate_sweep=<optimized out>, 
    reason=<optimized out>) at gc.c:5954
#10 0x00007f558ce80deb in garbage_collect (reason=512, immediate_sweep=0, immediate_mark=0, full_mark=0, objspace=0x1007ae0)
    at gc.c:5872
#11 garbage_collect_with_gvl (objspace=0x1007ae0, full_mark=0, immediate_mark=0, immediate_sweep=0, reason=512) at gc.c:6106
#12 0x00007f558ce80f1d in objspace_malloc_increase (objspace=objspace@entry=0x1007ae0, new_size=<optimized out>, 
    old_size=old_size@entry=0, type=type@entry=MEMOP_TYPE_MALLOC, mem=0xa0e8500) at gc.c:7271
#13 0x00007f558ce8100a in objspace_xmalloc (objspace=0x1007ae0, size=<optimized out>, size@entry=64) at gc.c:7363
#14 0x00007f558ce81099 in ruby_xmalloc (size=size@entry=64) at gc.c:7425
#15 0x00007f557c5edadf in newobj_i (tpval=<optimized out>, data=0x8ee2f40) at object_tracing.c:97
#16 0x00007f558cf87f79 in tp_call_trace (tpval=114045760, trace_arg=<optimized out>) at vm_trace.c:997
#17 0x00007f558cf882d5 in exec_hooks_body (trace_arg=0x7ffc80e19e40, list=<optimized out>, th=0x10076e0) at vm_trace.c:259
#18 0x00007f558cf88716 in exec_hooks_unprotected (th=th@entry=0x10076e0, list=<optimized out>, 
    trace_arg=trace_arg@entry=0x7ffc80e19e40) at vm_trace.c:282
#19 0x00007f558cf887a2 in rb_threadptr_exec_event_hooks_orig (trace_arg=trace_arg@entry=0x7ffc80e19e40, pop_p=pop_p@entry=0)
    at vm_trace.c:323
#20 0x00007f558cf893a7 in rb_threadptr_exec_event_hooks (trace_arg=trace_arg@entry=0x7ffc80e19e40) at vm_trace.c:382
#21 0x00007f558ce1fbad in gc_event_hook_body (event=event@entry=1048576, data=data@entry=119911320, objspace=0x1007ae0) at gc.c:1616
#22 0x00007f558ce81a54 in newobj_of (klass=klass@entry=0, flags=flags@entry=28, v1=v1@entry=0, v2=v2@entry=0, v3=v3@entry=168723632)
    at gc.c:1700
#23 0x00007f558ce81e67 in rb_node_newnode (type=type@entry=NODE_ARGS, a0=a0@entry=0, a1=a1@entry=0, a2=a2@entry=168723632)
    at gc.c:1721
---Type <return> to continue, or q <return> to quit---
#24 0x00007f558cebf422 in node_newnode (parser=0x8ff20e0, a2=168723632, a1=0, a0=0, type=NODE_ARGS) at parse.y:8545
#25 new_args_tail_gen (parser=parser@entry=0x8ff20e0, k=k@entry=0x0, kr=kr@entry=0, b=b@entry=0) at parse.y:9775
#26 0x00007f558cecd747 in ruby_yyparse (parser=parser@entry=0x8ff20e0) at parse.y:4554
#27 0x00007f558ced68b0 in yycompile0 (arg=arg@entry=150937824) at parse.y:5514
#28 0x00007f558cf894a7 in rb_suppress_tracing (func=func@entry=0x7f558ced67b0 <yycompile0>, arg=arg@entry=150937824) at vm_trace.c:406
#29 0x00007f558cebe38f in yycompile (parser=parser@entry=0x8ff20e0, fname=fname@entry=119441680, line=line@entry=1) at parse.y:5547
#30 0x00007f558cec6215 in rb_parser_compile_file_path (vparser=vparser@entry=119441560, fname=fname@entry=119441680, 
    file=file@entry=119441520, start=start@entry=1) at parse.y:5687
#31 0x00007f558cf16473 in load_file_internal2 (argp_v=argp_v@entry=140722470760560) at ruby.c:1655
#32 0x00007f558ce67340 in rb_protect (proc=proc@entry=0x7f558cf163b0 <load_file_internal2>, data=data@entry=140722470760560, 
    state=state@entry=0x7ffc80e1ae20) at eval.c:876
#33 0x00007f558cf14632 in load_file_internal (arg=arg@entry=140722470760560) at ruby.c:1709
#34 0x00007f558ce67568 in rb_ensure (b_proc=b_proc@entry=0x7f558cf14560 <load_file_internal>, data1=data1@entry=140722470760560, 
    e_proc=e_proc@entry=0x7f558cf14080 <restore_lineno>, data2=<optimized out>) at eval.c:907
#35 0x00007f558cf162e9 in load_file (opt=0x7ffc80e1b0a0, script=0, fname=119441680, parser=<optimized out>) at ruby.c:1751
#36 rb_load_file_str (fname_v=fname_v@entry=119441680) at ruby.c:1766
#37 0x00007f558ce69a83 in rb_load_internal0 (th=0x10076e0, fname=119441680, wrap=wrap@entry=0) at load.c:610
#38 0x00007f558ce6b502 in rb_load_internal (wrap=0, fname=<optimized out>) at load.c:643
#39 rb_require_internal (fname=119441840, fname@entry=119442040, safe=0) at load.c:1004
#40 0x00007f558ce6b6c9 in rb_require_safe (fname=119442040, safe=<optimized out>) at load.c:1052
#41 0x00007f558cf6e98f in vm_call_cfunc_with_frame (ci=0x10076e0, reg_cfp=0x7f558d47bd00, th=0x10076e0) at vm_insnhelper.c:1382
#42 vm_call_cfunc (th=th@entry=0x10076e0, reg_cfp=reg_cfp@entry=0x7f558d47bd00, ci=ci@entry=0x13d3050) at vm_insnhelper.c:1475
#43 0x00007f558cf846fe in vm_call_method (ci=0x13d3050, cfp=0x7f558d47bd00, th=0x10076e0) at vm_insnhelper.c:1691
#44 vm_call_general (th=0x10076e0, reg_cfp=0x7f558d47bd00, ci=<optimized out>) at vm_insnhelper.c:1846
#45 0x00007f558cf7343a in vm_exec_core (th=th@entry=0x10076e0, initial=initial@entry=0) at insns.def:1054
#46 0x00007f558cf77d95 in vm_exec (th=0x10076e0) at vm.c:1400
#47 0x00007f558cf79659 in rb_iseq_eval (iseqval=119442440) at vm.c:1657
#48 0x00007f558ce69ae7 in rb_load_internal0 (th=0x10076e0, fname=119444480, wrap=wrap@entry=0) at load.c:614
#49 0x00007f558ce6b502 in rb_load_internal (wrap=0, fname=<optimized out>) at load.c:643
#50 rb_require_internal (fname=119444600, fname@entry=119444840, safe=0) at load.c:1004
#51 0x00007f558ce6b6c9 in rb_require_safe (fname=119444840, safe=<optimized out>) at load.c:1052
#52 0x00007f558cf6e98f in vm_call_cfunc_with_frame (ci=0x10076e0, reg_cfp=0x7f558d47bf30, th=0x10076e0) at vm_insnhelper.c:1382
---Type <return> to continue, or q <return> to quit---
#53 vm_call_cfunc (th=th@entry=0x10076e0, reg_cfp=reg_cfp@entry=0x7f558d47bf30, ci=ci@entry=0x13d3050) at vm_insnhelper.c:1475
#54 0x00007f558cf846fe in vm_call_method (ci=0x13d3050, cfp=0x7f558d47bf30, th=0x10076e0) at vm_insnhelper.c:1691
#55 vm_call_general (th=0x10076e0, reg_cfp=0x7f558d47bf30, ci=<optimized out>) at vm_insnhelper.c:1846
#56 0x00007f558cf7343a in vm_exec_core (th=th@entry=0x10076e0, initial=initial@entry=0) at insns.def:1054
#57 0x00007f558cf77d95 in vm_exec (th=0x10076e0) at vm.c:1400
#58 0x00007f558cf79659 in rb_iseq_eval (iseqval=119452280) at vm.c:1657
#59 0x00007f558ce69ae7 in rb_load_internal0 (th=0x10076e0, fname=119282400, wrap=wrap@entry=0) at load.c:614
#60 0x00007f558ce6b502 in rb_load_internal (wrap=0, fname=<optimized out>) at load.c:643
#61 rb_require_internal (fname=119282840, fname@entry=119283160, safe=0) at load.c:1004
#62 0x00007f558ce6b6c9 in rb_require_safe (fname=119283160, safe=<optimized out>) at load.c:1052
#63 0x00007f558cf6e98f in vm_call_cfunc_with_frame (ci=0x10076e0, reg_cfp=0x7f558d47c1b0, th=0x10076e0) at vm_insnhelper.c:1382
#64 vm_call_cfunc (th=th@entry=0x10076e0, reg_cfp=reg_cfp@entry=0x7f558d47c1b0, ci=ci@entry=0x13d3050) at vm_insnhelper.c:1475
#65 0x00007f558cf846fe in vm_call_method (ci=0x13d3050, cfp=0x7f558d47c1b0, th=0x10076e0) at vm_insnhelper.c:1691
#66 vm_call_general (th=0x10076e0, reg_cfp=0x7f558d47c1b0, ci=<optimized out>) at vm_insnhelper.c:1846
#67 0x00007f558cf7343a in vm_exec_core (th=th@entry=0x10076e0, initial=initial@entry=0) at insns.def:1054
#68 0x00007f558cf77d95 in vm_exec (th=th@entry=0x10076e0) at vm.c:1400
#69 0x00007f558cf798d4 in vm_call0_body (th=0x10076e0, ci=ci@entry=0x7ffc80e1cf90, argv=0x7ffc80e1d038) at vm_eval.c:180
#70 0x00007f558cf7ec2d in vm_call0 (defined_class=<optimized out>, me=<optimized out>, argv=<optimized out>, argc=1, id=2753, 
    recv=66867920, th=<optimized out>) at vm_eval.c:59
#71 rb_call0 (self=<optimized out>, scope=CALL_FCALL, argv=0x7ffc80e1d018, argc=1, mid=2753, recv=66867920) at vm_eval.c:349
#72 rb_call (scope=CALL_FCALL, argv=0x7ffc80e1d018, argc=1, mid=2753, recv=recv@entry=66867920) at vm_eval.c:611
#73 rb_funcallv (recv=recv@entry=66867920, mid=2753, argc=argc@entry=1, argv=argv@entry=0x7ffc80e1d038) at vm_eval.c:826
#74 0x00007f558cf51954 in rb_const_missing (klass=klass@entry=66867920, name=107260684) at variable.c:1493
#75 0x00007f558cf5323b in rb_const_get_0 (klass=66867920, id=id@entry=418987, exclude=exclude@entry=1, recurse=recurse@entry=1, 
    visibility=visibility@entry=1) at variable.c:1880
#76 0x00007f558cf53335 in rb_public_const_get_from (klass=<optimized out>, id=id@entry=418987) at variable.c:1904
#77 0x00007f558cf7138c in vm_get_ev_const (th=0x10076e0, is_defined=0, id=418987, orig_klass=<optimized out>, iseq=<optimized out>)
    at vm_insnhelper.c:441
#78 vm_exec_core (th=th@entry=0x10076e0, initial=initial@entry=0) at insns.def:199
#79 0x00007f558cf77d95 in vm_exec (th=th@entry=0x10076e0) at vm.c:1400
#80 0x00007f558cf7b785 in invoke_block_from_c (th=0x10076e0, block=<optimized out>, self=<optimized out>, argc=<optimized out>, 
    argv=0x7ffc80e1d6a8, blockptr=<optimized out>, cref=0x643afc0, defined_class=17230960, splattable=1) at vm.c:813
---Type <return> to continue, or q <return> to quit---
#81 0x00007f558cf7c5a0 in vm_yield_with_cref (cref=<optimized out>, argv=0x7ffc80e1d6a8, argc=1, th=0x10076e0) at vm.c:845
#82 yield_under (under=under@entry=105073080, self=self@entry=105075640, values=values@entry=52) at vm_eval.c:1567
#83 0x00007f558cf7c74c in specific_eval (argc=0, argv=0x7f558d37d4a0, klass=105073080, self=105075640) at vm_eval.c:1612
#84 0x00007f558cf6e98f in vm_call_cfunc_with_frame (ci=0x10076e0, reg_cfp=0x7f558d47c520, th=0x10076e0) at vm_insnhelper.c:1382
#85 vm_call_cfunc (th=th@entry=0x10076e0, reg_cfp=reg_cfp@entry=0x7f558d47c520, ci=ci@entry=0x878dbc0) at vm_insnhelper.c:1475
#86 0x00007f558cf846fe in vm_call_method (ci=0x878dbc0, cfp=0x7f558d47c520, th=0x10076e0) at vm_insnhelper.c:1691
#87 vm_call_general (th=0x10076e0, reg_cfp=0x7f558d47c520, ci=<optimized out>) at vm_insnhelper.c:1846
#88 0x00007f558cf720c7 in vm_exec_core (th=th@entry=0x10076e0, initial=initial@entry=0) at insns.def:1024
#89 0x00007f558cf77d95 in vm_exec (th=th@entry=0x10076e0) at vm.c:1400
#90 0x00007f558cf7b785 in invoke_block_from_c (th=0x10076e0, block=<optimized out>, self=<optimized out>, argc=<optimized out>, 
    argv=0x7ffc80e1def8, blockptr=<optimized out>, cref=0x6434968, defined_class=17230960, splattable=1) at vm.c:813
#91 0x00007f558cf7c5a0 in vm_yield_with_cref (cref=<optimized out>, argv=0x7ffc80e1def8, argc=1, th=0x10076e0) at vm.c:845
#92 yield_under (under=under@entry=105073080, self=self@entry=105075640, values=values@entry=52) at vm_eval.c:1567
#93 0x00007f558cf7c74c in specific_eval (argc=0, argv=0x7f558d37d450, klass=105073080, self=105075640) at vm_eval.c:1612
#94 0x00007f558cf6e98f in vm_call_cfunc_with_frame (ci=<optimized out>, reg_cfp=0x7f558d47c610, th=0x10076e0) at vm_insnhelper.c:1382
#95 vm_call_cfunc (th=0x10076e0, reg_cfp=0x7f558d47c610, ci=<optimized out>) at vm_insnhelper.c:1475
#96 0x00007f558cf720c7 in vm_exec_core (th=th@entry=0x10076e0, initial=initial@entry=0) at insns.def:1024
#97 0x00007f558cf77d95 in vm_exec (th=th@entry=0x10076e0) at vm.c:1400
#98 0x00007f558cf7b785 in invoke_block_from_c (th=0x10076e0, block=<optimized out>, self=<optimized out>, argc=<optimized out>, 
    argv=0x6435530, blockptr=<optimized out>, cref=0x64354d0, defined_class=17230960, splattable=1) at vm.c:813
#99 0x00007f558cf7c52a in vm_yield_with_cref (cref=<optimized out>, argv=<optimized out>, argc=<optimized out>, th=0x10076e0)
    at vm.c:845
#100 yield_under (under=<optimized out>, self=<optimized out>, values=105076000) at vm_eval.c:1570
#101 0x00007f558cf6e98f in vm_call_cfunc_with_frame (ci=<optimized out>, reg_cfp=0x7f558d47c700, th=0x10076e0) at vm_insnhelper.c:1382
#102 vm_call_cfunc (th=0x10076e0, reg_cfp=0x7f558d47c700, ci=<optimized out>) at vm_insnhelper.c:1475
#103 0x00007f558cf720c7 in vm_exec_core (th=th@entry=0x10076e0, initial=initial@entry=0) at insns.def:1024
#104 0x00007f558cf77d95 in vm_exec (th=th@entry=0x10076e0) at vm.c:1400
#105 0x00007f558cf7b785 in invoke_block_from_c (th=0x10076e0, block=<optimized out>, self=<optimized out>, argc=<optimized out>, 
    argv=0x7ffc80e1ed88, blockptr=<optimized out>, cref=0x0, defined_class=24194880, splattable=1) at vm.c:813
#106 0x00007f558cf7cc51 in vm_yield (argv=<optimized out>, argc=<optimized out>, th=<optimized out>) at vm.c:853
#107 rb_yield_0 (argv=<optimized out>, argc=<optimized out>) at vm_eval.c:987
#108 rb_yield (val=110528800) at vm_eval.c:997
---Type <return> to continue, or q <return> to quit---
#109 0x00007f558ce22302 in rb_ary_each (array=110615600) at array.c:1803
#110 0x00007f558cf799d6 in vm_call0_cfunc_with_frame (argv=0x7f558d37d2e0, ci=0x7ffc80e1edc0, th=0x10076e0) at vm_eval.c:127
#111 vm_call0_cfunc (argv=0x7f558d37d2e0, ci=0x7ffc80e1edc0, th=0x10076e0) at vm_eval.c:144
#112 vm_call0_body (th=0x10076e0, ci=ci@entry=0x7ffc80e1eea0, argv=0x7f558d37d2e0, argv@entry=0x7ffc80e1f2b0) at vm_eval.c:184
#113 0x00007f558cf7acef in vm_call0 (defined_class=17189440, me=<optimized out>, argv=argv@entry=0x7ffc80e1f2b0, 
    argc=argc@entry=32597, id=<optimized out>, recv=<optimized out>, th=<optimized out>) at vm_eval.c:59
#114 rb_vm_call (th=<optimized out>, recv=<optimized out>, id=<optimized out>, argc=argc@entry=0, argv=argv@entry=0x7f558d37d2e0, 
    me=<optimized out>, defined_class=17189440) at vm_eval.c:260
#115 0x00007f558ce6e58b in rb_method_call_with_block (argc=0, argv=0x7f558d37d2e0, method=<optimized out>, pass_procval=110615160)
    at proc.c:1853
#116 0x00007f558cf6e98f in vm_call_cfunc_with_frame (ci=0x10076e0, reg_cfp=0x7f558d47c980, th=0x10076e0) at vm_insnhelper.c:1382
#117 vm_call_cfunc (th=th@entry=0x10076e0, reg_cfp=reg_cfp@entry=0x7f558d47c980, ci=ci@entry=0x18be648) at vm_insnhelper.c:1475
#118 0x00007f558cf846fe in vm_call_method (ci=0x18be648, cfp=0x7f558d47c980, th=0x10076e0) at vm_insnhelper.c:1691
#119 vm_call_general (th=0x10076e0, reg_cfp=0x7f558d47c980, ci=<optimized out>) at vm_insnhelper.c:1846
#120 0x00007f558cf720c7 in vm_exec_core (th=th@entry=0x10076e0, initial=initial@entry=0) at insns.def:1024
#121 0x00007f558cf77d95 in vm_exec (th=th@entry=0x10076e0) at vm.c:1400
#122 0x00007f558cf798d4 in vm_call0_body (th=0x10076e0, ci=ci@entry=0x7ffc80e1f860, argv=argv@entry=0x7f558d37d1f0) at vm_eval.c:180
#123 0x00007f558cf802f1 in vm_call0 (defined_class=<optimized out>, me=<optimized out>, argv=0x7f558d37d1f0, argc=0, 
    id=<optimized out>, recv=109358200, th=<optimized out>) at vm_eval.c:59
#124 rb_call0 (self=<optimized out>, scope=<optimized out>, argv=0x7f558d37d1f0, argc=0, mid=<optimized out>, recv=109358200)
    at vm_eval.c:349
#125 send_internal (argc=0, argv=0x7f558d37d1f0, recv=109358200, scope=<optimized out>) at vm_eval.c:929
#126 0x00007f558cf6e98f in vm_call_cfunc_with_frame (ci=0x10076e0, reg_cfp=0x7f558d47cb60, th=0x10076e0) at vm_insnhelper.c:1382
#127 vm_call_cfunc (th=th@entry=0x10076e0, reg_cfp=reg_cfp@entry=0x7f558d47cb60, ci=ci@entry=0x1bc2d98) at vm_insnhelper.c:1475
#128 0x00007f558cf846fe in vm_call_method (ci=0x1bc2d98, cfp=0x7f558d47cb60, th=0x10076e0) at vm_insnhelper.c:1691
#129 vm_call_general (th=0x10076e0, reg_cfp=0x7f558d47cb60, ci=<optimized out>) at vm_insnhelper.c:1846
#130 0x00007f558cf720c7 in vm_exec_core (th=th@entry=0x10076e0, initial=initial@entry=0) at insns.def:1024
#131 0x00007f558cf77d95 in vm_exec (th=0x10076e0) at vm.c:1400
#132 0x00007f558cf79659 in rb_iseq_eval (iseqval=21138560) at vm.c:1657
#133 0x00007f558ce69ae7 in rb_load_internal0 (th=0x10076e0, fname=21140560, wrap=wrap@entry=0) at load.c:614
#134 0x00007f558ce6b502 in rb_load_internal (wrap=0, fname=<optimized out>) at load.c:643
#135 rb_require_internal (fname=21140720, fname@entry=21140880, safe=0) at load.c:1004
---Type <return> to continue, or q <return> to quit---
#136 0x00007f558ce6b6c9 in rb_require_safe (fname=21140880, safe=<optimized out>) at load.c:1052
#137 0x00007f558cf6e98f in vm_call_cfunc_with_frame (ci=0x10076e0, reg_cfp=0x7f558d47cc50, th=0x10076e0) at vm_insnhelper.c:1382
#138 vm_call_cfunc (th=th@entry=0x10076e0, reg_cfp=reg_cfp@entry=0x7f558d47cc50, ci=ci@entry=0x13d3050) at vm_insnhelper.c:1475
#139 0x00007f558cf846fe in vm_call_method (ci=0x13d3050, cfp=0x7f558d47cc50, th=0x10076e0) at vm_insnhelper.c:1691
#140 vm_call_general (th=0x10076e0, reg_cfp=0x7f558d47cc50, ci=<optimized out>) at vm_insnhelper.c:1846
#141 0x00007f558cf7343a in vm_exec_core (th=th@entry=0x10076e0, initial=initial@entry=0) at insns.def:1054
#142 0x00007f558cf77d95 in vm_exec (th=th@entry=0x10076e0) at vm.c:1400
#143 0x00007f558cf7b785 in invoke_block_from_c (th=0x10076e0, block=<optimized out>, self=<optimized out>, argc=<optimized out>, 
    argv=0x7ffc80e20a88, blockptr=<optimized out>, cref=0x14296a8, defined_class=17226840, splattable=1) at vm.c:813
#144 0x00007f558cf7c5a0 in vm_yield_with_cref (cref=<optimized out>, argv=0x7ffc80e20a88, argc=1, th=0x10076e0) at vm.c:845
#145 yield_under (under=under@entry=21141240, self=self@entry=21141520, values=values@entry=52) at vm_eval.c:1567
#146 0x00007f558cf7c74c in specific_eval (argc=0, argv=0x7f558d37d110, klass=21141240, self=21141520) at vm_eval.c:1612
#147 0x00007f558cf6e98f in vm_call_cfunc_with_frame (ci=0x10076e0, reg_cfp=0x7f558d47cd40, th=0x10076e0) at vm_insnhelper.c:1382
#148 vm_call_cfunc (th=th@entry=0x10076e0, reg_cfp=reg_cfp@entry=0x7f558d47cd40, ci=ci@entry=0x15fcde8) at vm_insnhelper.c:1475
#149 0x00007f558cf846fe in vm_call_method (ci=0x15fcde8, cfp=0x7f558d47cd40, th=0x10076e0) at vm_insnhelper.c:1691
#150 vm_call_general (th=0x10076e0, reg_cfp=0x7f558d47cd40, ci=<optimized out>) at vm_insnhelper.c:1846
#151 0x00007f558cf720c7 in vm_exec_core (th=th@entry=0x10076e0, initial=initial@entry=0) at insns.def:1024
#152 0x00007f558cf77d95 in vm_exec (th=th@entry=0x10076e0) at vm.c:1400
#153 0x00007f558cf798d4 in vm_call0_body (th=0x10076e0, ci=ci@entry=0x7ffc80e212d0, argv=0x7f558d37d0d0) at vm_eval.c:180
#154 0x00007f558cf7ec2d in vm_call0 (defined_class=<optimized out>, me=<optimized out>, argv=<optimized out>, argc=0, id=3041, 
    recv=21141520, th=<optimized out>) at vm_eval.c:59
#155 rb_call0 (self=<optimized out>, scope=CALL_FCALL, argv=0xbe1, argc=0, mid=3041, recv=21141520) at vm_eval.c:349
#156 rb_call (scope=CALL_FCALL, argv=0x0, argc=0, mid=3041, recv=recv@entry=21141520) at vm_eval.c:611
#157 rb_funcallv (recv=recv@entry=21141520, mid=mid@entry=3041, argc=argc@entry=0, argv=argv@entry=0x7f558d37d0d0) at vm_eval.c:826
#158 0x00007f558ce68fb3 in rb_obj_call_init (obj=obj@entry=21141520, argc=argc@entry=0, argv=argv@entry=0x7f558d37d0d0) at eval.c:1364
#159 0x00007f558ceb56e1 in rb_class_new_instance (argc=0, argv=0x7f558d37d0d0, klass=<optimized out>) at object.c:1856
#160 0x00007f558cf6e98f in vm_call_cfunc_with_frame (ci=0x10076e0, reg_cfp=0x7f558d47cde0, th=0x10076e0) at vm_insnhelper.c:1382
#161 vm_call_cfunc (th=th@entry=0x10076e0, reg_cfp=reg_cfp@entry=0x7f558d47cde0, ci=ci@entry=0x171b510) at vm_insnhelper.c:1475
#162 0x00007f558cf846fe in vm_call_method (ci=0x171b510, cfp=0x7f558d47cde0, th=0x10076e0) at vm_insnhelper.c:1691
#163 vm_call_general (th=0x10076e0, reg_cfp=0x7f558d47cde0, ci=<optimized out>) at vm_insnhelper.c:1846
#164 0x00007f558cf720c7 in vm_exec_core (th=th@entry=0x10076e0, initial=initial@entry=0) at insns.def:1024
#165 0x00007f558cf77d95 in vm_exec (th=th@entry=0x10076e0) at vm.c:1400
---Type <return> to continue, or q <return> to quit---
#166 0x00007f558cf78e23 in eval_string_with_cref (self=self@entry=20938360, src=22837840, scope=17150600, 
    cref_arg=cref_arg@entry=0x0, file=<optimized out>, line=1) at vm_eval.c:1329
#167 0x00007f558cf7945f in eval_string (line=<optimized out>, file=<optimized out>, scope=<optimized out>, src=<optimized out>, 
    self=20938360) at vm_eval.c:1368
#168 rb_f_eval (argc=3, argv=<optimized out>, self=20938360) at vm_eval.c:1407
#169 0x00007f558cf6e98f in vm_call_cfunc_with_frame (ci=0x10076e0, reg_cfp=0x7f558d47ce80, th=0x10076e0) at vm_insnhelper.c:1382
#170 vm_call_cfunc (th=th@entry=0x10076e0, reg_cfp=reg_cfp@entry=0x7f558d47ce80, ci=ci@entry=0x13f84c0) at vm_insnhelper.c:1475
#171 0x00007f558cf846fe in vm_call_method (ci=0x13f84c0, cfp=0x7f558d47ce80, th=0x10076e0) at vm_insnhelper.c:1691
#172 vm_call_general (th=0x10076e0, reg_cfp=0x7f558d47ce80, ci=<optimized out>) at vm_insnhelper.c:1846
#173 0x00007f558cf7343a in vm_exec_core (th=th@entry=0x10076e0, initial=initial@entry=0) at insns.def:1054
#174 0x00007f558cf77d95 in vm_exec (th=th@entry=0x10076e0) at vm.c:1400
#175 0x00007f558cf7970f in rb_iseq_eval_main (iseqval=iseqval@entry=20876520) at vm.c:1670
#176 0x00007f558ce64f44 in ruby_exec_internal (n=0x13e8ce8) at eval.c:252
#177 0x00007f558ce66afd in ruby_exec_node (n=n@entry=0x13e8ce8) at eval.c:317
#178 0x00007f558ce689fe in ruby_run_node (n=0x13e8ce8) at eval.c:309
#179 0x000000000040089b in main (argc=2, argv=0x7ffc80e225e8) at main.c:36

Comment 4 Pavel Moravec 2016-09-04 08:18:54 UTC
The backtrace suggests https://bugs.ruby-lang.org/issues/9859 is hit. That BZ is fixed in upstream but not in ruby-2.2.2.

Comment 6 Ivan Necas 2016-12-14 14:05:31 UTC
I have not seen any occurrence of this issue in pretty large sample, which makes me think it's not reproducible anymore. Ruby scl had updates in the meantime so there is a chance it has already been fixed. Closing now. If this issue appears again with later releases. Please re-open the issue.