Skip Menu |
 

This queue is for tickets about the Math-Random CPAN distribution.

Report information
The Basics
Id: 20396
Status: open
Priority: 0/
Queue: Math-Random

People
Owner: Nobody in particular
Requestors: itatsumaki [...] hotmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in:
  • 0.67
  • 0.68
Fixed in: (no value)



Subject: Core Dump in random_binomial
Download (untitled) / with headers
text/plain 2.7k
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
Hi, I replicated this on a second box, also with gcc 4.0.1, but this time with Perl 5.8.7 and AIX 5.3.0.0. On Mon Jul 10 12:22:25 2006, guest wrote: Show quoted text
> 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, Show quoted text
> 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/ Show quoted text
> 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 Show quoted text
> 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- Show quoted text
> target=all --prefix=/usr/local/gcc-4.0.1 > Thread model: aix > gcc version 4.0.1
From: Geoffrey Rommel
Download (untitled) / with headers
text/plain 484b
On Mon Jul 10 13:28:59 2006, guest wrote: Show quoted text
> Hi, > > I replicated this on a second box, also with gcc 4.0.1, but this
time Show quoted text
> with Perl 5.8.7 and AIX 5.3.0.0. >
Paul and I corresponded on this problem but were unable to reach a conclusion. Unfortunately, I don't have an AIX machine to test on. gcc might be performing some funky optimization; if so, compiling with -O0 (to turn off optimizations) should help. If more details become available, I will gladly take another look.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.