Subject: | Core Dump in random_binomial |
Hello,
random_binomial dumps core during make test on AIX 5.2.0.0 with Perl
5.8.8 and both 0.67 and 0.68. I'll happily debug as much as possible,
but I'm not sure where to start.
I had a clean make:
dlink@ccb690[743] >> perl Makefile.PL
Writing Makefile for Math::Random
dlink@ccb690[744] >> make
gcc -c -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -
DUSE_NATIVE_DLOPEN -fno-strict-aliasing -pipe -I/usr/local/include -
D_LARGE_FILES -O -DVERSION=\"0.68\" -DXS_VERSION=\"0.68\" "-I/
db2blast/Paul/perl5.8.7/lib/5.8.7/aix/CORE" Random.c
gcc -c -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -
DUSE_NATIVE_DLOPEN -fno-strict-aliasing -pipe -I/usr/local/include -
D_LARGE_FILES -O -DVERSION=\"0.68\" -DXS_VERSION=\"0.68\" "-I/
db2blast/Paul/perl5.8.7/lib/5.8.7/aix/CORE" com.c
gcc -c -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -
DUSE_NATIVE_DLOPEN -fno-strict-aliasing -pipe -I/usr/local/include -
D_LARGE_FILES -O -DVERSION=\"0.68\" -DXS_VERSION=\"0.68\" "-I/
db2blast/Paul/perl5.8.7/lib/5.8.7/aix/CORE" helper.c
gcc -c -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -
DUSE_NATIVE_DLOPEN -fno-strict-aliasing -pipe -I/usr/local/include -
D_LARGE_FILES -O -DVERSION=\"0.68\" -DXS_VERSION=\"0.68\" "-I/
db2blast/Paul/perl5.8.7/lib/5.8.7/aix/CORE" linpack.c
gcc -c -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -
DUSE_NATIVE_DLOPEN -fno-strict-aliasing -pipe -I/usr/local/include -
D_LARGE_FILES -O -DVERSION=\"0.68\" -DXS_VERSION=\"0.68\" "-I/
db2blast/Paul/perl5.8.7/lib/5.8.7/aix/CORE" randlib.c
Running Mkbootstrap for Math::Random ()
chmod 644 Random.bs
rm -f blib/arch/auto/Math/Random/Random.so
gcc -Wl,-bhalt:4 -Wl,-bexpall -Wl,-G -Wl,-bnoentry -lc -L/usr/local/
lib Random.o com.o helper.o linpack.o randlib.o -o blib/arch/auto/Math/
Random/Random.so \
-lm \
chmod 755 blib/arch/auto/Math/Random/Random.so
cp Random.bs blib/arch/auto/Math/Random/Random.bs
chmod 644 blib/arch/auto/Math/Random/Random.bs
Manifying blib/man3/Math::Random.3
But fail make test:
dlink@ccb690[745] >> make test
PERL_DL_NONLAZY=1 /db2blast/Paul/perl5.8.7/bin/perl "-Iblib/lib" "-
Iblib/arch" test.pl
1..16
ok 1
random_uniform..................ok 2
random_uniform_integer..........ok 3
random_permutation..............ok 4
random_permuted_index...........ok 5
random_normal...................ok 6
random_chi_square...............ok 7
random_f........................ok 8
random_beta.....................ok 9
random_binomial.................make: *** [test_dynamic] Segmentation
fault (core dumped)
I am using gcc 4.0.1:
dlink@ccb690[746] >> gcc -v
Using built-in specs.
Target: powerpc-ibm-aix5.2.0.0
Configured with: ../gcc-4.0.1/configure --enable-languages=all --enable-
target=all --prefix=/usr/local/gcc-4.0.1
Thread model: aix
gcc version 4.0.1