Front page | perl.perl5.porters |
Postings from May 2004
[perl #29873] seg fault w/v5.8.4 on IBM RS/6k when populating large hash
Thread Next
From:
al . danial @ ngc . com
Date:
May 26, 2004 01:27
Subject:
[perl #29873] seg fault w/v5.8.4 on IBM RS/6k when populating large hash
Message ID:
rt-3.0.9-29873-88186.10.9844082803063@perl.org
# New Ticket Created by al.danial@ngc.com
# Please include the string: [perl #29873]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org:80/rt3/Ticket/Display.html?id=29873 >
This is a bug report for perl from al.danial@ngc.com,
generated with the help of perlbug 1.35 running under perl v5.8.4.
-----------------------------------------------------------------
This program causes a seg fault on an IBM RS/6000 with AIX 4.3.3.
#!/usr/local/perl-5.8.4/bin/perl -w
my $upper_limit;
$upper_limit = 275000; # works
$upper_limit = 300000; # fails
my %data = ();
foreach my $set (qw( A B C )) {
foreach my $id (1..$upper_limit) {
$data{$set}{$id} = [ rand, rand, rand, rand, rand, rand, rand, ];
}
}
The failure happens with Perl version 5.6.1 on the IBM as well.
The workstation has 8 GB of memory so I don't think it is because
the code is using too much space. The above program works fine
on Linux, Sun, and SGI workstations using Perl 5.8.0.
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=core
severity=high
---
Site configuration information for perl v5.8.4:
Configured by adanial at Thu May 20 11:47:39 PDT 2004.
Summary of my perl5 (revision 5 version 8 subversion 4) configuration:
Platform:
osname=aix, osvers=4.3.3.0, archname=aix
uname='aix mohr 3 4 00041bcf4c00 '
config_args='-Dprefix=/usr/local/perl-5.8.4 -Dcc=gcc -de'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -DUSE_NATIVE_DLOPEN -fno-strict-aliasing -I/usr/local/include -D_LARGE_FILES',
optimize='-O',
cppflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -DUSE_NATIVE_DLOPEN -fno-strict-aliasing -I/usr/local/include'
ccversion='', gccversion='3.3.3', gccosandvers='aix4.3.3.0'
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' -Wl,-brtl -L/usr/local/lib -Wl,-b32'
libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
libs=-lbind -lnsl -lgdbm -ldbm -ldb -ldl -lld -lm -lcrypt -lc -lbsd
perllibs=-lbind -lnsl -ldl -lld -lm -lcrypt -lc -lbsd
libc=/lib/libc.a, so=a, useshrplib=false, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_aix.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Xlinker -bE:/usr/local/perl-5.8.4/lib/5.8.4/aix/CORE/perl.exp'
cccdlflags=' ', lddlflags=' -Wl,-bhalt:4 -Wl,-bM:SRE -Wl,-bI:$(PERL_INC)/perl.exp -Wl,-bE:$(BASEEXT).exp -Wl,-bnoentry -lc -L/usr/local/lib'
Locally applied patches:
---
@INC for perl v5.8.4:
/usr/local/perl-5.8.4/lib/5.8.4/aix
/usr/local/perl-5.8.4/lib/5.8.4
/usr/local/perl-5.8.4/lib/site_perl/5.8.4/aix
/usr/local/perl-5.8.4/lib/site_perl/5.8.4
/usr/local/perl-5.8.4/lib/site_perl
.
---
Environment for perl v5.8.4:
HOME=/home/adanial
LANG=en_US
LANGUAGE (unset)
LC__FASTMSG=true
LD_LIBRARY_PATH=/opt/platform/lsf/4.2/aix4/lib:/usr/local/kmatplot-0.2.2/lib
LIBPATH=/usr/lib::/opt/matlab53/extern/lib/ibm_rs
LOGDIR (unset)
PATH=/opt/platform/lsf/4.2/aix4/bin:/opt/platform/lsf/4.2/aix4/etc:/opt/IDEAS7/ideas/ms7/bin:/home/adanial/bin:/bin:/usr/bin:/usr/ccs/bin:/usr/ucb:/usr/bin/X11:/usr/dt/bin:/usr/local/bin:.:/opt/sysnoise/5.5/bin:/opt/matlab53/bin:/opt/langtools/bin:/opt/linux/IBMJava2-13/bin
PERL_BADLANG (unset)
SHELL=/bin/bash
Thread Next
-
[perl #29873] seg fault w/v5.8.4 on IBM RS/6k when populating large hash
by al . danial @ ngc . com