Date: Sat, 2 Jul 2005 18:20:23 GMT From: Kris Kennaway <kris@obsecurity.org> To: freebsd-bugs@FreeBSD.org Subject: Re: misc/82894: lang/ruby18: -fomit-frame-pointer causes segfault Message-ID: <200507021820.j62IKNdp074500@freefall.freebsd.org>
index | next in thread | raw e-mail
The following reply was made to PR misc/82894; it has been noted by GNATS. From: Kris Kennaway <kris@obsecurity.org> To: Kyryll A Mirnenko <mirya@matrix.ua> Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: misc/82894: lang/ruby18: -fomit-frame-pointer causes segfault Date: Sat, 2 Jul 2005 14:15:24 -0400 On Sat, Jul 02, 2005 at 04:25:35PM +0000, Kyryll A Mirnenko wrote: > > >Number: 82894 > >Category: misc > >Synopsis: lang/ruby18: -fomit-frame-pointer causes segfault > >Confidential: no > >Severity: non-critical > >Priority: low > >Responsible: freebsd-bugs > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Sat Jul 02 16:30:15 GMT 2005 > >Closed-Date: > >Last-Modified: > >Originator: Kyryll A Mirnenko > >Release: 5.4p3 > >Organization: > >Environment: > FreeBSD localhost 5.4-RELEASE-p3 FreeBSD 5.4-RELEASE-p3 #42: Thu Jun 30 23:16:44 EEST 2005 root@localhost:/usr/src/sys/i386/compile/MY i386 > >Description: > When building lang/ruby18 with -fomit-frame-pointer in CFLAGS building aborts due to ruby segfault: > > .. > cc -shared -Wl,-soname,libruby18.so.18 array.o bignum.o class.o compar.o dir.o dln.o enum.o error.o eval.o file.o gc.o hash.o inits.o io.o marshal.o math.o numeric.o object.o pack.o parse.o process.o prec.o random.o range.o re.o regex.o ruby.o signal.o sprintf.o st.o string.o struct.o time.o util.o variable.o version.o dmyext.o -lcrypt -lm -pthread -o libruby18.so.18 > ./lib/mkmf.rb:314: [BUG] Segmentation fault > ruby 1.8.2 (2004-12-25) [i386-freebsd5] > > Abort trap (core dumped) > *** Error code 134 > 1 error > *** Error code 2 > > Removing the cc option resolves the problem. Tested for > CFLAGS=-O3 -pipe -march=pentium2 (ok) > CFLAGS=-O3 -pipe -march=pentium2 -fomit-frame-pointer (fails) > >How-To-Repeat: > try building lang/ruby18 with -fomit-frame-pointer in CFLAGS > >Fix: > Suggest checking CFALGS in Makefile & warn if buggy cc flag is found There's already a warning in make.conf and the manpage, so this is not necessary. We assume that people who choose to use nonstandard CFLAGS know what they're doing. Krishome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507021820.j62IKNdp074500>
