develooper Front page | perl.perl5.porters | Postings from November 1999

[ID 19991118.006] SEGV with 5.005_{54,56,62+}

Thread Next
From:
Andreas J. Koenig
Date:
November 18, 1999 10:01
Subject:
[ID 19991118.006] SEGV with 5.005_{54,56,62+}
Message ID:
199911181801.TAA30986@hohenstaufen.in-berlin.de
This is a bug report for perl from k@hohenstaufen.in-berlin.de,
generated with the help of perlbug 1.27 running under perl 5.00563.

-----------------------------------------------------------------
[Please enter your report here]
[Actually this is 5.005_62 with Sarathy's patches up to 4590]

The same program cores with _54, _56, and an unpatched _62 too.
Core seems independent of mymalloc and OS. I have seen it on both
Solaris and Linux.

It is a rather big program that has mod_perl, DBI, Storable,
Image::Magick, MLDBM, Unicode::String, and ca hundred perl-only 
modules involved.

I see no chance at this point to make a test case out of this
application.


Program received signal SIGSEGV, Segmentation fault.
0x814b6a2 in Perl_newSV (len=0) at sv.c:2899
2899        new_SV(sv);
(gdb) bt
#0  0x814b6a2 in Perl_newSV (len=0) at sv.c:2899
#1  0x813e40a in Perl_pp_aassign () at pp_hot.c:695
#2  0x813b6df in Perl_runops_debug () at run.c:56
#3  0x80e9219 in S_call_xbody (myop=0xbffff9d4, is_eval=0) at perl.c:1472
#4  0x80e91cd in S_call_body (args=0xbffff8e8) at perl.c:1456
#5  0x816ada7 in Perl_vdefault_protect (pcur_env=0xbffff90c, excpt=0xbffff9c0, 
    body=0x80e919c <S_call_body>, args=0xbffff8c4) at scope.c:45
#6  0x816acbd in Perl_default_protect (pcur_env=0xbffff90c, excpt=0xbffff9c0, 
    body=0x80e919c <S_call_body>) at scope.c:26
#7  0x80e8e6f in perl_call_sv (sv=0x82762e4, flags=4) at perl.c:1390
#8  0x807cd27 in perl_call_handler (sv=0x82762e4, r=0x9367c3c, args=0x0)
    at mod_perl.c:1511
#9  0x807c487 in perl_run_stacked_handlers (hook=0x81a90fa "PerlHandler", 
    r=0x9367c3c, handlers=0x8276290) at mod_perl.c:1240
#10 0x807a8c5 in perl_handler (r=0x9367c3c) at mod_perl.c:803
#11 0x80a3aa3 in ap_invoke_handler ()
#12 0x80b6b41 in process_request_internal ()
#13 0x80b6ba0 in ap_process_request ()
#14 0x80ae405 in child_main ()
#15 0x80ae590 in make_child ()
#16 0x80ae6eb in startup_children ()
#17 0x80aecd8 in standalone_main ()
#18 0x80af52b in main ()


FWIW, here the stack trace of the same perl without debugging:

Program received signal SIGSEGV, Segmentation fault.
0x8112711 in Perl_pp_entersub ()
(gdb) bt
#0  0x8112711 in Perl_pp_entersub ()
#1  0x810d7b6 in Perl_runops_standard ()
#2  0x80d71fe in perl_call_sv ()
#3  0x80d71c4 in perl_call_sv ()
#4  0x8126f9a in Perl_vdefault_protect ()
#5  0x8126f0e in Perl_default_protect ()
#6  0x80d6fd7 in perl_call_sv ()
#7  0x807b806 in perl_call_handler ()
#8  0x807b211 in perl_run_stacked_handlers ()
#9  0x807a149 in perl_handler ()
#10 0x8092e13 in ap_invoke_handler ()
#11 0x80a5eb1 in ap_some_auth_required ()
#12 0x80a5f10 in ap_process_request ()
#13 0x809d775 in ap_child_terminate ()
#14 0x809d900 in ap_child_terminate ()
#15 0x809da5b in ap_child_terminate ()
#16 0x809e048 in ap_child_terminate ()
#17 0x809e89b in main ()




[Please do not change anything below this line]
-----------------------------------------------------------------

---
Site configuration information for perl 5.00563:

Configured by k at Thu Nov 18 16:20:57 CET 1999.

Summary of my perl5 (revision 5.0 version 5 subversion 63) configuration:
  Platform:
    osname=linux, osvers=2.2.12, archname=i586-linux
    uname='linux hohenstaufen.in-berlin.de 2.2.12 #2 smp sat oct 2 11:10:42 cest 1999 i586 unknown '
    config_args='-Dprefix=/sources-perl/inst/perl5.005_62..4590g -Doptimize=-g -des -Dusemymalloc'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef useperlio=undef d_sfio=undef
    use64bits=undef usemultiplicity=undef
  Compiler:
    cc='cc', optimize='-g', gccversion=2.7.2.3
    cppflags='-Dbool=char -DHAS_BOOL -DDEBUGGING -I/usr/local/include'
    ccflags ='-Dbool=char -DHAS_BOOL -DDEBUGGING -I/usr/local/include'
    stdchar='char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    alignbytes=4, usemymalloc=y, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lndbm -lgdbm -ldb -ldl -lm -lc -lposix -lcrypt
    libc=/lib/libc-2.0.7.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'

Locally applied patches:
    

---
@INC for perl 5.00563:
    /sources-perl/inst/perl5.005_62..4590g/lib/5.00563/i586-linux
    /sources-perl/inst/perl5.005_62..4590g/lib/5.00563
    /sources-perl/inst/perl5.005_62..4590g/lib/site_perl/5.00563/i586-linux
    /sources-perl/inst/perl5.005_62..4590g/lib/site_perl
    .

---
Environment for perl 5.00563:
    HOME=/home/k
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/k/bin:/usr/local/bin:/usr/bin:/bin:.:/usr/local/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/perl/bin
    PERL_BADLANG (unset)
    SHELL=/bin/zsh

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About