Subject: pkg/17627: use of ap-perl-1.27 causes apache to dump core
To: None <gnats-bugs@gnats.netbsd.org>
From: Andrew Brown <atatat@atatdot.net>
List: netbsd-bugs
Date: 07/17/2002 16:29:03
>Number:         17627
>Category:       pkg
>Synopsis:       use of ap-perl-1.27 causes apache to dump core
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 17 13:30:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     TheMan
>Release:        1.6B (from 20020626)
>Organization:
none
>Environment:
System: NetBSD this 1.6B NetBSD 1.6B (THAT) #101: Thu Jun 27 10:05:20 EDT 2002     andrew@this:/usr/src/sys/arch/i386/compile/THAT i386

>Description:

after upgrading to the newer ap-perl pkg, my apache stopped working.
it turns out that if i turn off mod_perl, it works again.  gdb has
this to say about the core (after i remade ap-perl and libperl.so with
-g):

#0  0x4835caf7 in S_new_xpvav () at sv.c:615
615         PL_xpvav_root = (XPVAV*)xpvav->xav_array;
(gdb) bt
#0  0x4835caf7 in S_new_xpvav () at sv.c:615
#1  0x4835d695 in Perl_sv_upgrade (sv=0x80d3c24, mt=10) at sv.c:1087
#2  0x4834dc65 in Perl_newAV () at av.c:306
#3  0x482e65f1 in perl_construct (my_perl=0x80c51e0) at perl.c:283
#4  0x4829b8da in perl_startup (s=0x80b8038, p=0x80b8010) at mod_perl.c:700
#5  0x4829b29a in perl_module_init (s=0x80b8038, p=0x80b8010) at mod_perl.c:569
#6  0x807a1a2 in ap_init_modules ()
#7  0x8081cc2 in standalone_main ()
#8  0x808251f in main ()
#9  0x8051ec0 in ___start ()
(gdb) print xpvav
$1 = (XPVAV *) 0xafb334f0
(gdb) print *xpvav
Cannot access memory at address 0xafb334f0

>How-To-Repeat:

# cd /usr/pkgsrc/www/apache
# make install
# cd ../www/ap-perl
# make install
# echo LoadModule perl_module lib/httpd/mod_perl.so >> /usr/pkg/etc/httpd.conf
# /usr/pkg/sbin/httpd

>Fix:

dunno.  yet.
>Release-Note:
>Audit-Trail:
>Unformatted: