misc/82894: lang/ruby18: -fomit-frame-pointer causes segfault

Kyryll A Mirnenko mirya at matrix.ua
Sat Jul 2 16:30:16 GMT 2005


>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 at 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
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list