Front page | perl.perl5.porters |
Postings from January 2001
[ID 20010123.036] malloc failure in DBD::Informix
Thread Next
From:
gary
Date:
January 23, 2001 11:04
Subject:
[ID 20010123.036] malloc failure in DBD::Informix
Message ID:
200101231858.LAA10178@pandemic.itc.nrcs.usda.gov
This is a bug report for perl from gspivak@itc.nrcs.usda.gov,
generated with the help of perlbug 1.28 running under perl v5.6.0.
-----------------------------------------------------------------
[Please enter your report here]
We are experiencing intermittent cores during execution of a perl app
using the DBD::Informix module. It happens with greater frequency when
the system is busy, but it also happens that the exact procedure can
be rerun successfully just a few minutes after a crash. I don't have
a lot to work with, except that each gdb stack trace shows the failure
happens in malloc, but the malloc is not always called from the same
place. Many other processes are running at the same time without any
malloc failures, and vmstat shows plenty of memory available. A sample
stack trace looks like this:
#0 0x2a09c in malloc ()
#1 0xff087728 in _iqprepare () from /usr/informix9/lib/esql/libifsql.so
#2 0xff087580 in sqli_prep () from /usr/informix9/lib/esql/libifsql.so
#3 0xff0ea7d0 in dbd_ix_st_prepare ()
from /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/auto/DBD/Informix/Inf
ormix.so
#4 0xff0e5654 in XS_DBD__Informix__st__prepare ()
from /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/auto/DBD/Informix/Inf
ormix.so
#5 0x64fb4 in Perl_pp_entersub ()
#6 0x9eb54 in Perl_runops_standard ()
#7 0x26d28 in perl_call_sv ()
#8 0xff118164 in XS_DBI_dispatch ()
from /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/auto/DBI/DBI.so
#9 0x64fb4 in Perl_pp_entersub ()
#10 0x9eb54 in Perl_runops_standard ()
#11 0x26d28 in perl_call_sv ()
#12 0xff118164 in XS_DBI_dispatch ()
from /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/auto/DBI/DBI.so
#13 0x64fb4 in Perl_pp_entersub ()
#14 0x9eb54 in Perl_runops_standard ()
#15 0x26444 in perl_run ()
#16 0x23fc0 in main ()
My version of DBD::Informix seems to be 0.97005.
The Informix engine is 9.21.UC1 and ESQL is 9.40.UC2
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=core
severity=high
---
Site configuration information for perl v5.6.0:
Configured by jmm at Wed Nov 29 11:10:25 MST 2000.
Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
Platform:
osname=solaris, osvers=2.7, archname=sun4-solaris
uname='sunos pandemic 5.7 generic_106541-12 sun4u sparc sunw,ultra-60 '
config_args=''
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=define
use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
Compiler:
cc='gcc', optimize='-g -O2', gccversion=2.95.2 19991024 (release)
cppflags='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include'
ccflags ='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
stdchar='char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, usemymalloc=y, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' -L/usr/local/lib '
libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
libs=-lsocket -lnsl -ldl -lm -lc -lcrypt -lsec
libc=, so=so, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -Wl,-E'
cccdlflags='-fPIC', lddlflags=' -W,l-E -G -L/usr/local/lib'
Locally applied patches:
---
@INC for perl v5.6.0:
/usr/local/lib/perl5/5.6.0/sun4-solaris
/usr/local/lib/perl5/5.6.0
/usr/local/lib/perl5/site_perl/5.6.0/sun4-solaris
/usr/local/lib/perl5/site_perl/5.6.0
/usr/local/lib/perl5/site_perl/5.005/sun4-solaris
/usr/local/lib/perl5/site_perl/5.005
/usr/local/lib/perl5/site_perl
.
---
Environment for perl v5.6.0:
HOME=/home/gary
LANG=C
LANGUAGE (unset)
LD_LIBRARY_PATH=/usr/dt/lib:/usr/lib:/usr/openwin/lib:/usr/ucblib:/usr/local/lib
LOGDIR (unset)
PATH=/usr/informix9/bin:/share/CVS/bin:/usr/bin:/usr/dt/bin:/usr/openwin/bin:/usr/openwin/demo:/usr/ucb:/etc:/usr/local/bin:/usr/sbin:/home/gary/bin:/usr/ccs/bin::/usr/local/purecov:/usr/local/purify:/share/java/jdk/bin
PERL_BADLANG (unset)
SHELL=/bin/ksh
Thread Next
-
[ID 20010123.036] malloc failure in DBD::Informix
by gary