unixadminm
9/27/2006 1:17:00 PM
The ruby previously compiled was on AIX 5.3.0.4. It compiled perfectly
and there were no errors and ran perfectly until I upgraded AIX from
maintenance level 4 to maintenance level 5. I tried to compile again
and this is the error I get when I run "make". When I use the binaries
which I compiled on Maintenance level 4 the test scripts work and looks
like its working but when I run "ruby -v" it gives segmentation fault,
like the one given below when I tried compiling agin.
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c inits.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c io.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c marshal.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c math.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c numeric.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c object.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c pack.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c parse.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c process.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c prec.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c random.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c range.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c re.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c regex.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c ruby.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c signal.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c sprintf.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c st.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c string.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c struct.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c time.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c util.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c variable.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c version.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c ./missing/flock.c
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c dmyext.c
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 flock.o dmyext.o
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c main.c
gcc main.o libruby-static.a -ldl -lcrypt -lm -o miniruby -g
-O2 -DRUBY_EXPORT -Wl,-brtl -Wl,-bE:ruby.imp
rbconfig.rb updated
../mkconfig.rb:157: [BUG] Segmentation fault
ruby 1.8.5 (2006-08-25) [powerpc-aix5.3.0.0]
make: 1254-059 The signal code from the last command is 6.
Stop.
Nobuyoshi Nakada wrote:
> Hi,
>
> At Wed, 20 Sep 2006 03:25:16 +0900,
> Mehdi wrote in [ruby-talk:215167]:
> > I compiled ruby-1.8.5 on AIX 5.3.
> > When I run ruby -v its giving this error. I tested the ruby with some
> > of our scripts and it works perfectly fine.
> >
> > #ruby -v
> > ruby 1.8.5 (2006-08-25) [powerpc-aix5.3.0.0]
> > ruby: [BUG] Segmentation fault
> > ruby 1.8.5 (2006-08-25) [powerpc-aix5.3.0.0]
> >
> > IOT/Abort trap(coredump)
>
> Can you show the stack trace by debugger?
>
> --
> Nobu Nakada