[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

possible bug in mkmf lib

hy2

10/23/2004 10:18:00 AM

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.


5 Answers

nobu.nokada

10/23/2004 10:30:00 AM

0

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?

--
Nobu Nakada


hy2

10/23/2004 11:54:00 AM

0


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.


ts

10/23/2004 11:57:00 AM

0

>>>>> "h" == hy2 <noskp@email.it> writes:

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



hy2

10/24/2004 8:53:00 AM

0

On 231004, 20:56, ts wrote:
> >>>>> "h" == hy2 <noskp@email.it> writes:
>
> 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.


ts

10/25/2004 4:14:00 PM

0

>>>>> "h" == hy2 <noskp@email.it> writes:

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