possible bug in mkmf lib

Discussion in 'Ruby' started by hy2, Oct 23, 2004.

  1. hy2

    hy2 Guest

    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.
    hy2, Oct 23, 2004
    #1
    1. Advertising

  2. 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
    Nobuyoshi Nakada, Oct 23, 2004
    #2
    1. Advertising

  3. hy2

    hy2 Guest

    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.
    hy2, Oct 23, 2004
    #3
  4. hy2

    ts Guest

    >>>>> "h" == hy2 <> 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
    ts, Oct 23, 2004
    #4
  5. hy2

    hy2 Guest

    On 231004, 20:56, ts wrote:
    > >>>>> "h" == hy2 <> 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.
    hy2, Oct 24, 2004
    #5
  6. hy2

    ts Guest

    >>>>> "h" == hy2 <> 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
    ts, Oct 25, 2004
    #6
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. infidel
    Replies:
    1
    Views:
    307
    infidel
    Oct 20, 2005
  2. Replies:
    0
    Views:
    129
  3. Lucas L.
    Replies:
    10
    Views:
    299
    Lucas L.
    Oct 3, 2008
  4. Ittay Dror
    Replies:
    1
    Views:
    108
    Nobuyoshi Nakada
    Dec 7, 2008
  5. Marcel O.

    mkmf-bug under mingw without msys

    Marcel O., Feb 1, 2011, in forum: Ruby
    Replies:
    4
    Views:
    140
    Marcel O.
    Feb 7, 2011
Loading...

Share This Page