Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > possible bug in mkmf lib

Reply
Thread Tools

possible bug in mkmf lib

 
 
hy2
Guest
Posts: n/a
 
      10-23-2004
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.


 
Reply With Quote
 
 
 
 
Nobuyoshi Nakada
Guest
Posts: n/a
 
      10-23-2004
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


 
Reply With Quote
 
 
 
 
hy2
Guest
Posts: n/a
 
      10-23-2004

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.


 
Reply With Quote
 
ts
Guest
Posts: n/a
 
      10-23-2004
>>>>> "h" == hy2 <(E-Mail Removed)> 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



 
Reply With Quote
 
hy2
Guest
Posts: n/a
 
      10-24-2004
On 231004, 20:56, ts wrote:
> >>>>> "h" == hy2 <(E-Mail Removed)> 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.


 
Reply With Quote
 
ts
Guest
Posts: n/a
 
      10-25-2004
>>>>> "h" == hy2 <(E-Mail Removed)> 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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mkmf-bug under mingw without msys Marcel O. Ruby 4 02-07-2011 09:18 PM
/opt/build/ruby/lib/ruby/1.8/mkmf.rb:345:in `%': numbered(1) afterunnumbered(1) (ArgumentError) Ittay Dror Ruby 1 12-07-2008 02:42 PM
mkmf can't find lib then gives target pattern contains no % Lucas L. Ruby 10 10-03-2008 05:15 AM
Help with adding header files for 'mkmf' - new to Swig/mkmf james.d.masters@gmail.com Ruby 0 10-24-2007 08:19 PM
possible bug in cherrypy.lib.autoreloader infidel Python 1 10-20-2005 03:37 PM



Advertisments