https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112013-04-25T21:02:29ZRuby Issue Tracking SystemRuby master - Bug #8326: Running Redmine unter Ruby 2.0.0 produces an "Illegal instruction(coredump)" under AIX 7.1https://bugs.ruby-lang.org/issues/8326?journal_id=389082013-04-25T21:02:29Zwnovak (Werner Novak)werner.novak@pensionsversicherung.at
<ul></ul><p>Same problem occures without redmine plugins and with older ruby version 1.9.3 p392</p> Ruby master - Bug #8326: Running Redmine unter Ruby 2.0.0 produces an "Illegal instruction(coredump)" under AIX 7.1https://bugs.ruby-lang.org/issues/8326?journal_id=389092013-04-25T21:02:46Zwnovak (Werner Novak)werner.novak@pensionsversicherung.at
<ul></ul><p>Also tried it with Redmine 2.2.4 under ruby 1.9.3 p392, with the same results, see dump below:</p>
<p>#> dbx /opt/pware/ruby/1.9.3/bin/ruby core<br>
Type 'help' for help.<br>
[using memory image in core]<br>
reading symbolic information ...</p>
<p>Illegal instruction (illegal opcode) in . at 0x0 ($t14)<br>
warning: Unable to access address 0x0 from core<br>
(dbx) where<br>
.() at 0x0<br>
st_lookup(table = 0xd4aad6c8, key = 17, value = (nil)), line 341 in "st.c"<br>
search_method@AF293_120(??, ??), line 374 in "vm_method.c"<br>
rb_method_entry_get_without_cache(klass = 581288160, id = 581288180), line 393 in "vm_method.c"<br>
unnamed block in vm_exec_core(th = (nil), initial = 0), line 2080 in "vm_insnhelper.c"<br>
unnamed block in vm_exec_core(th = (nil), initial = 0), line 2080 in "vm_insnhelper.c"<br>
vm_exec_core(th = (nil), initial = 0), line 2080 in "vm_insnhelper.c"<br>
unnamed block in vm_exec(th = 0x225565f8), line 1236 in "vm.c"<br>
unnamed block in vm_exec(th = 0x225565f8), line 1236 in "vm.c"<br>
vm_exec(th = 0x225565f8), line 1236 in "vm.c"<br>
rb_vm_invoke_proc(th = 0x225565f8, proc = 0x22dfb8f8, self = 554994300, argc = 1, argv = 0x22af8d10, blockptr = (nil)), line 640 in "vm.c"<br>
proc_call(argc = 576022008, argv = 0x213df958, procval = 554994300), line 561 in "proc.c"<br>
vm_call_method(th = 0x229a58a4, cfp = 0x229a58b8, num = 586449168, blockptr = 0x22f482d4, flag = 586449616, id = 586449224, me = 0x22f48100, recv = 537705864), line 317 in "vm_insnhelper.c"<br>
unnamed block in vm_exec_core(th = 0x00000001, initial = 570025340), line 1018 in "insns.def"<br>
unnamed block in vm_exec_core(th = 0x00000001, initial = 570025340), line 1018 in "insns.def"<br>
vm_exec_core(th = 0x00000001, initial = 570025340), line 1018 in "insns.def"<br>
unnamed block in vm_exec(th = 0x225565f8), line 1236 in "vm.c"<br>
unnamed block in vm_exec(th = 0x225565f8), line 1236 in "vm.c"<br>
vm_exec(th = 0x225565f8), line 1236 in "vm.c"<br>
rb_yield(val = 580541480), line 648 in "vm.c"<br>
rb_ary_each(array = 3568469004), line 1495 in "array.c"<br>
vm_call_method(th = 0x229975b0, cfp = 0x2299a198, num = 1, blockptr = 0x2298d09c, flag = 550528788, id = 3, me = 0x12e20067, recv = 1), line 320 in "vm_insnhelper.c"<br>
unnamed block in vm_exec_core(th = (nil), initial = 0), line 1018 in "insns.def"<br>
unnamed block in vm_exec_core(th = (nil), initial = 0), line 1018 in "insns.def"<br>
vm_exec_core(th = (nil), initial = 0), line 1018 in "insns.def"<br>
unnamed block in vm_exec(th = 0x225565f8), line 1236 in "vm.c"<br>
unnamed block in vm_exec(th = 0x225565f8), line 1236 in "vm.c"<br>
vm_exec(th = 0x225565f8), line 1236 in "vm.c"<br>
rb_vm_invoke_proc(th = 0x225565f8, proc = 0x222899e8, self = 577397360, argc = 0, argv = 0x2298dd24, blockptr = (nil)), line 640 in "vm.c"<br>
thread_start_func_2(th = 0x225565f8, stack_start = (nil)), line 460 in "thread.c"<br>
unnamed block in thread_start_func_1(th_ptr = (nil)), line 654 in "thread_pthread.c"<br>
thread_start_func_1(th_ptr = (nil)), line 654 in "thread_pthread.c"<br>
(dbx)</p> Ruby master - Bug #8326: Running Redmine unter Ruby 2.0.0 produces an "Illegal instruction(coredump)" under AIX 7.1https://bugs.ruby-lang.org/issues/8326?journal_id=389142013-04-26T05:42:25Znaruse (Yui NARUSE)naruse@airemix.jp
<ul><li><strong>Assignee</strong> set to <i>kanemoto (Yutaka Kanemoto)</i></li><li><strong>Target version</strong> set to <i>2.1.0</i></li><li><strong>Backport</strong> changed from <i>1.9.3: UNKNOWN, 2.0.0: UNKNOWN</i> to <i>1.9.3: REQUIRED, 2.0.0: REQUIRED</i></li></ul> Ruby master - Bug #8326: Running Redmine unter Ruby 2.0.0 produces an "Illegal instruction(coredump)" under AIX 7.1https://bugs.ruby-lang.org/issues/8326?journal_id=428562013-11-11T16:47:28Zkaustubh (Kaustubh D)kaustubh.deo@gmail.com
<ul></ul><p>We are facing similar issue (similar stack trace) in our tests. Our observation is, if we build ruby in non-optimized mode or 'even if we have ruby optimized (-O) but gc.c built without optimization' we do not see core dump. This might indicate that some code in gc.c is getting optimized away that leads to this issue.</p>
<p>It core dumps randomly but most of the times within st_lookup. We are not able to reproduce with a simple program yet.</p>
<p>Illegal instruction (illegal opcode) in . at 0x0 ($t1102)<br>
warning: Unable to access address 0x0 from core<br>
(dbx) where<br>
.() at 0x0<br>
st_lookup() at 0x9000000009fcb30<br>
vm.rb_eval_string_wrap.search_method@AF293_120() at 0x9000000009df2a0<br>
rb_method_entry_get_without_cache() at 0x9000000009d207c<br>
vm_exec_core() at 0x9000000009cb79c<br>
vm_exec() at 0x9000000009c4488<br>
rb_vm_invoke_proc() at 0x9000000009d1518<br>
thread_start_func_2() at 0x900000000a2ad2c<br>
thread.native_thread_create.thread_start_func_1() at 0x900000000a299e8</p>
<p>Not sure if this is anyway related, but found issue which happened in optimized builds of ruby but non-optimized had worked. <a href="http://bugs.ruby-lang.org/issues/5244" class="external">http://bugs.ruby-lang.org/issues/5244</a>. The fix of this issue <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: Continuation causes Bus Error on Debian sparc (Closed)" href="https://bugs.ruby-lang.org/issues/5244">#5244</a> relied on "register window" concept but it seems that 'register window' does not apply to power architecture.</p>
<p>Any inputs from ruby core team might be helpful. Thanks in advance.</p> Ruby master - Bug #8326: Running Redmine unter Ruby 2.0.0 produces an "Illegal instruction(coredump)" under AIX 7.1https://bugs.ruby-lang.org/issues/8326?journal_id=428572013-11-11T17:00:15Zkaustubh (Kaustubh D)kaustubh.deo@gmail.com
<ul><li><strong>File</strong> <a href="/attachments/4042">sbr_mark_locations_array.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/4042/sbr_mark_locations_array.png">sbr_mark_locations_array.png</a> added</li></ul><p>Additional input, an SBR (stack array bounds read) was reported in mark_locations_array. for example see the attachment.</p> Ruby master - Bug #8326: Running Redmine unter Ruby 2.0.0 produces an "Illegal instruction(coredump)" under AIX 7.1https://bugs.ruby-lang.org/issues/8326?journal_id=432372013-11-29T11:34:46Zkaustubh (Kaustubh D)kaustubh.deo@gmail.com
<ul></ul><p>This turns out to be issue related to optimization, we were able to workaround this using ruby compiled with xlc flags "-O -qhot". Hope it helps someone. Thanks!!</p> Ruby master - Bug #8326: Running Redmine unter Ruby 2.0.0 produces an "Illegal instruction(coredump)" under AIX 7.1https://bugs.ruby-lang.org/issues/8326?journal_id=447762014-01-30T06:16:58Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<ul><li><strong>Target version</strong> changed from <i>2.1.0</i> to <i>2.2.0</i></li></ul> Ruby master - Bug #8326: Running Redmine unter Ruby 2.0.0 produces an "Illegal instruction(coredump)" under AIX 7.1https://bugs.ruby-lang.org/issues/8326?journal_id=693092018-01-05T21:00:40Znaruse (Yui NARUSE)naruse@airemix.jp
<ul><li><strong>Target version</strong> deleted (<del><i>2.2.0</i></del>)</li></ul> Ruby master - Bug #8326: Running Redmine unter Ruby 2.0.0 produces an "Illegal instruction(coredump)" under AIX 7.1https://bugs.ruby-lang.org/issues/8326?journal_id=796602019-07-15T22:52:57Zjeremyevans0 (Jeremy Evans)merch-redmine@jeremyevans.net
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li><li><strong>Backport</strong> deleted (<del><i>1.9.3: REQUIRED, 2.0.0: REQUIRED</i></del>)</li></ul>