From owner-freebsd-ruby@FreeBSD.ORG Fri Jan 10 05:13:09 2014 Return-Path: Delivered-To: ruby@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CCF056DB for ; Fri, 10 Jan 2014 05:13:09 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 568D715D7 for ; Fri, 10 Jan 2014 05:13:09 +0000 (UTC) Received: from [192.168.15.106] ([24.7.23.137]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0Ltqmn-1VI5Pb2j9J-011CPG for ; Fri, 10 Jan 2014 06:13:07 +0100 Content-Type: multipart/signed; boundary="Apple-Mail=_8720A5BF-AA06-4F9B-B137-0E6894D01A82"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: miniruby segfaults when attempting to install lang/ruby19 or lang/ruby20 on ppc64 From: Harry Weppner In-Reply-To: Date: Thu, 9 Jan 2014 21:13:03 -0800 Message-Id: <0BFA4050-D946-4887-853F-4BB88A0F52FA@gmx.net> References: <1AAB79D6-9BDF-446A-8150-C9290FB341A7@gmx.net> To: Justin Hibbits X-Mailer: Apple Mail (2.1510) X-Provags-ID: V03:K0:cwJDI/e8TV0y4/9OJiqr1H9/4kz23EWhugu8A7fGnR7O7VXV8IK j6/bVfTfw85pRDbgEdTj98vHZbglet02Gnez1rw6WzWC3H7MJ9raxnUQQPaddxEzbPclsbx Yo+zHRzpXNqNDQySWxvZmi2xkgxDbVv4iaMHWd+4sQg57RDbzimZP0SHPLyslITJ/YAPchZ Ia1rTV/eO87ZiwN4GDAzQ== X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: ruby@freebsd.org, FreeBSD PowerPC ML X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jan 2014 05:13:10 -0000 --Apple-Mail=_8720A5BF-AA06-4F9B-B137-0E6894D01A82 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Justin, thanks for pointing me to the issue you had reported - this patch fixed = ruby19. Thanks & cheerio, Harry. On Jan 8, 2014, at 10:49 PM, Justin Hibbits = wrote: > Hi, >=20 > On Jan 8, 2014 9:47 PM, "Harry Weppner" wrote: > > > > Hi, > > > > I brought an older dual G5 Powermac back to life and installed = FreeBSD 10.0-RC4 on it with a GENERIC ppc64 kernel. When installing = lang/ruby19 or lang/ruby20 miniruby segfaults in libthr. Tested with = both the default gcc42 as well as with gcc49. > > > > Has anyone seen this issue before? T > > > > Thanks & cheerio, Harry. > > > > (gdb) bt > > #0 handle_signal (actp=3D0xffffffffffbfa130, sig=3D11, = info=3D0xffffffffffbfa690, ucp=3D0xffffffffffbfa1d0) > > at /usr/src/lib/libthr/thread/thr_sig.c:188 > > #1 0x00000000502f36ac in thr_sighandler (sig=3D11, = info=3D0xffffffffffbfa690, _ucp=3D0xffffffffffbfa1d0) > > at /usr/src/lib/libthr/thread/thr_sig.c:183 > > #2 0xffffffffffffe188 in ?? () > > > > = =E2=94=8C=E2=94=80=E2=94=80/usr/src/lib/libthr/thread/thr_sig.c=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=90 > > =E2=94=82184 } = =E2=94=82 > > =E2=94=82185 = =E2=94=82 > > =E2=94=82186 static void = =E2=94=82 > > =E2=94=82187 handle_signal(struct sigaction *actp, int sig, = siginfo_t *info, ucontext_t *ucp) =E2=94=82 > > >=E2=94=82188 { = =E2=94=82 > > =E2=94=82189 struct pthread *curthread =3D = _get_curthread(); =E2=94=82= > > > > > > The specific instruction is: > > = =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=90 > > >=E2=94=820x502f32ac stdu r1,-1392(r1) = =E2=94=82 > > =E2=94=820x502f32b0 ld r0,0(r9) = =E2=94=82 > > =E2=94=820x502f32b4 cmpdi cr7,r0,0 = =E2=94=82 > > > > (gdb) x/x $r1-1392 > > 0xffffffffffbf9b50: Cannot access memory at address = 0xffffffffffbf9b50 > > > > > > >=20 > This is a stack overflow problem. I filed a bug report in redmine = regarding this. A simp!e workaround is to change the stack size from 3 = pages to 4 in thread_pthread.c of ruby and continue building. >=20 > See https://bugs.ruby-lang.org/issues/8783 >=20 > -Justin >=20 --Apple-Mail=_8720A5BF-AA06-4F9B-B137-0E6894D01A82 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iEYEARECAAYFAlLPgV8ACgkQ/CxjG+i4lOgvnwCbBgfvCDWsP2zs0Dw7xdw8bkof orcAn1ReLEN9/v/ReoE3df6/2dYcdrqu =HQ/K -----END PGP SIGNATURE----- --Apple-Mail=_8720A5BF-AA06-4F9B-B137-0E6894D01A82--