Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 05 Jan 2020 23:26:23 +0000
From:      bugzilla-noreply@freebsd.org
To:        ruby@FreeBSD.org
Subject:   [Bug 242630] [PowerPC] lang/ruby26 build fails on rb_mjit_min_header-2.6.5.h (FreeBSD 12.1-RELEASE-p1)
Message-ID:  <bug-242630-21402-evhYmm3pJl@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-242630-21402@https.bugs.freebsd.org/bugzilla/>
References:  <bug-242630-21402@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242630

Mark Millard <marklmi26-fbsd@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marklmi26-fbsd@yahoo.com

--- Comment #12 from Mark Millard <marklmi26-fbsd@yahoo.com> ---
(In reply to commit-hook from comment #10)

Context: cross building via ports-mgmt/poudriere-devel
on an old PowerMac G5. As seen from inside a jail for
the 32-bit powerpc world area poudriere uses:

JAILNAME      VERSION      ARCH              METHOD TIMESTAMP           PATH
FBSDpowerpc   13.0-CURRENT powerpc           null   2019-12-31 01:21:28
/usr/obj/DESTDIRs/clang-powerpc-installworld-poud

Based on -r522079 of ports in a head -r356187
based context (both the G5 and the system in
clang-powerpc-installworld-poud):

. . . (through linking miniruby) . . .
building .ext/include/powerpc-freebsd13/rb_mjit_min_header-2.6.5.h
./miniruby -I./lib -I. -I.ext/common  ./tool/transform_mjit_header.rb "cc "
rb_mjit_header.h .ext/include/powerpc-freebsd13/rb_mjit_min_header-2.6.5.h
*** Signal 6

Stop.
make[1]: stopped in /wrkdirs/usr/ports/lang/ruby26/work/ruby-2.6.5
*** Error code 1

In other words: the miniruby that it built crashes when it
is then used.

The backtrace shows a __stack_chk_fail during rb_vm_exec:

Program terminated with signal SIGABRT, Aborted.
#0  kill () at kill.S:4
4       kill.S: No such file or directory.
(gdb) bt
#0  kill () at kill.S:4
#1  0x41d7f648 in __fail (msg=3D<optimized out>) at
/usr/src/lib/libc/secure/stack_protector.c:128
#2  0x41d7f598 in __stack_chk_fail () at
/usr/src/lib/libc/secure/stack_protector.c:135
#3  0x01a25dac in rb_vm_exec (ec=3D0x41f51028, mjit_enable_p=3D1) at vm.c:1=
903
#4  0x01a25fa8 in rb_iseq_eval (iseq=3D0x41fe0890) at vm.c:2133
#5  0x018f2554 in rb_load_internal0 (ec=3D0x41f51028, fname=3D<optimized ou=
t>,
wrap=3D<optimized out>) at load.c:612
#6  0x018f3230 in rb_require_internal (fname=3D<optimized out>, safe=3D0) at
load.c:1029
#7  0x018f272c in rb_require_safe (fname=3D1107240840, safe=3D<optimized ou=
t>) at
load.c:1075
#8  rb_f_require (obj=3D<optimized out>, fname=3D1107240840) at load.c:821
#9  0x01a31938 in call_cfunc_1 (func=3D<optimized out>, recv=3D<optimized o=
ut>,
argc=3D<optimized out>, argv=3D<optimized out>) at ./vm_insnhelper.c:1755
#10 0x01a2b0e0 in vm_call_cfunc_with_frame (ec=3D0x41f51028, reg_cfp=3D0x41=
fdb708,
calling=3D<optimized out>, ci=3D0x442d3500, cc=3D<optimized out>) at
./vm_insnhelper.c:1908
#11 vm_call_cfunc (ec=3D0x41f51028, reg_cfp=3D0x41fdb708, calling=3D<optimi=
zed out>,
ci=3D0x442d3500, cc=3D<optimized out>) at ./vm_insnhelper.c:1924
#12 0x01a2a00c in vm_call_method_each_type (ec=3D<optimized out>, cfp=3D<op=
timized
out>, calling=3D<optimized out>, ci=3D<optimized out>, cc=3D<optimized out>=
) at
./vm_insnhelper.c:2245
#13 0x01a29e40 in vm_call_method (ec=3D0x41f51028, cfp=3D0x41fdb708,
calling=3D0xffffce20, ci=3D0x442d3500, cc=3D0x44348000) at ./vm_insnhelper.=
c:2400
#14 0x01a10384 in vm_call_general (ec=3D<optimized out>, reg_cfp=3D<optimiz=
ed out>,
calling=3D<optimized out>, ci=3D<optimized out>, cc=3D<optimized out>) at
./vm_insnhelper.c:2417
#15 0x01a1337c in vm_exec_core (ec=3D0x41f51028, initial=3D<optimized out>)=
 at
insns.def:765
#16 0x01a25cb8 in rb_vm_exec (ec=3D0x41f51028, mjit_enable_p=3D1) at vm.c:2=
104
#17 0x01a260d8 in rb_iseq_eval_main (iseq=3D<optimized out>) at vm.c:2144
#18 0x0189b2c4 in ruby_exec_internal (n=3D0x41ff8080) at eval.c:262
#19 ruby_exec_node (n=3D<optimized out>) at eval.c:326
#20 0x0189b0d4 in ruby_run_node (n=3D<optimized out>) at eval.c:318
#21 0x018146ec in main (argc=3D<optimized out>, argv=3D<optimized out>) at
./main.c:42

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-242630-21402-evhYmm3pJl>