possible bug in mkmf lib

H

hy2

hy list,

i would report a possible bug in mkmf lib.

tested with :

alea# gcc --version
gcc (GCC) 3.3.4 20040623 (Gentoo Hardened Linux 3.3.4-r1, ssp-3.3.2-2,
pie-8.7.6)

alea# gcc --version
gcc (GCC) 3.3.3


------------[1.8.1
ar rcu libruby-static.a 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
gcc -O3 -march=pentium3 -fomit-frame-pointer -s -pipe -I. -I. -c
main.c
gcc -O3 -march=pentium3 -fomit-frame-pointer -s -pipe -rdynamic
main.o dmyext.o libruby-static.a -ldl -lcrypt -lm -o miniruby
: [BUG] unknown node type 0
ruby 1.8.1 (2003-12-25) [i686-linux]
------------

------------[1.8.2
ar rcu libruby-static.a 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 sign
al.o sprintf.o st.o string.o struct.o time.o util.o variable.o version.o
dmyext.o
gcc -O3 -march=pentium3 -fomit-frame-pointer -s -pipe -I. -I. -c
main.c
gcc -O3 -march=pentium3 -fomit-frame-pointer -s -pipe -rdynamic
main.o dmyext.o libruby-static.a -ldl -lcrypt -lm -o miniruby
/usr/src/skp/ruby-1.8.2/lib/mkmf.rb:322: [BUG] Segmentation fault
ruby 1.8.2 (2004-07-29) [i686-linux]
------------



if it's not yet fixed i'm at your complete disposition for any
investigation.

regards.

--
here are more things in heaven and earth,
horatio, than are dreamt of in your philosophy.
 
N

Nobuyoshi Nakada

Hi,

At Sat, 23 Oct 2004 19:17:59 +0900,
hy2 wrote in [ruby-talk:117432]:
------------[1.8.1
: [BUG] unknown node type 0
ruby 1.8.1 (2003-12-25) [i686-linux]
------------

------------[1.8.2
/usr/src/skp/ruby-1.8.2/lib/mkmf.rb:322: [BUG] Segmentation fault
ruby 1.8.2 (2004-07-29) [i686-linux]
------------

It isn't a bug in mkmf.rb but in ruby core. Can you try more
recent version?
 
H

hy2

this is with the last stable snap*:

----
gcc -O3 -march=pentium3 -fomit-frame-pointer -s -pipe -I. -I. -c
main.c
gcc -O3 -march=pentium3 -fomit-frame-pointer -s -pipe -rdynamic
main.o dmyext.o libruby-static.a -ldl -lcrypt -lm -o miniruby
: [BUG] unknown node type 0
ruby 1.8.2 (2004-10-22) [i686-linux]
----

can the problem depend from CFLAGS?


*i was unable to download the tarball form the official ftp, is it ok?.

--
here are more things in heaven and earth,
horatio, than are dreamt of in your philosophy.
 
T

ts

h> gcc -O3 -march=pentium3 -fomit-frame-pointer -s -pipe -I. -I. -c

h> can the problem depend from CFLAGS?

yes, try to remove -fomit-frame-pointer and if it's still crash give a
backtrace


Guy Decoux
 
H

hy2

h> gcc -O3 -march=pentium3 -fomit-frame-pointer -s -pipe -I. -I. -c

h> can the problem depend from CFLAGS?

yes, try to remove -fomit-frame-pointer and if it's still crash give a
backtrace


Guy Decoux

without -fomit-frame-pointer all right.

--
here are more things in heaven and earth,
horatio, than are dreamt of in your philosophy.
 
T

ts

h> without -fomit-frame-pointer all right.

Just a curiosity can you try it with --disable-frame-address, i.e.

CFLAGS="-O3 -march=pentium3 -fomit-frame-pointer" ./configure --disable-frame-address


Guy Decoux
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top