Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 512504 - www-apache/mod_perl - /usr/sbin/apache2 -f /etc/apache2/httpd.conf -D DEFAULT_VHOST -D PERL: segmentation fault in Perl_hv_clear (my_perl=my_perl@entry=0x13dfd8, hv=0x1fac5053) at hv.c:1550
Summary: www-apache/mod_perl - /usr/sbin/apache2 -f /etc/apache2/httpd.conf -D DEFAULT...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: HPPA Linux
: Normal normal (vote)
Assignee: Christian Ruppert (idl0r)
URL:
Whiteboard:
Keywords:
: 562364 (view as bug list)
Depends on: 562454
Blocks:
  Show dependency tree
 
Reported: 2014-06-05 12:02 UTC by Jeroen Roovers (RETIRED)
Modified: 2017-04-19 22:04 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (file_512504.txt,3.93 KB, text/plain)
2014-09-15 20:15 UTC, Vladimir Smirnov (RETIRED)
Details
www-apache:mod_perl-2.0.8:20140916-063622.log (www-apache:mod_perl-2.0.8:20140916-063622.log,303.93 KB, text/plain)
2014-09-16 07:44 UTC, Jeroen Roovers (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2014-06-05 12:02:10 UTC
After having src_test() fail because apache2 wouldn't start with that config, I checked why it would fail, and it seems to be caused by a segmentation fault in perl.

Starting program: /usr/sbin/apache2 -f /etc/apache2/httpd.conf -D DEFAULT_VHOST -D PERL                                             
[Thread debugging using libthread_db enabled]                                                                                       
Using host libthread_db library "/lib/libthread_db.so.1".                                                                           
                                                                                                                                    
Program received signal SIGSEGV, Segmentation fault.                                                                                
_______________________________________________________________________________                                                     
     eax:Error while running hook_stop:                                                                                             
Value can't be converted to integer.                                                                                                
0xb4045bec in Perl_hv_clear (my_perl=my_perl@entry=0x13dfd8, hv=0x1fac5053) at hv.c:1550                                            
1550    hv.c: No such file or directory.                                                                                            
gdb> bt full                                                                                                                        
#0  0xb4045bec in Perl_hv_clear (my_perl=my_perl@entry=0x13dfd8, hv=0x1fac5053) at hv.c:1550                                        
        xhv = 0x15a198                                                                                                              
#1  0xb4059e48 in Perl_sv_upgrade (my_perl=my_perl@entry=0x13dfd8, sv=sv@entry=0x159018, new_type=<optimized out>) at sv.c:1400     
        io = 0x159018                                                                                                               
        iogv = 0x142408                                                                                                             
        old_body = 0x0                                                                                                              
        new_body = <optimized out>                                                                                                  
        old_type = SVt_NULL                                                                                                         
        new_type_details = 0xb40f78cc <bodies_by_type+120>                                                                          
        old_type_details = <optimized out>                                                                                          
        referant = <optimized out>                                                                                                  
#2  0xb4059fd0 in Perl_newSV_type (my_perl=0x13dfd8, type=<optimized out>) at sv.c:8705                                             
        sv = 0x159018                                                                                                               
#3  0xb3fd9e68 in Perl_gv_add_by_type (my_perl=<optimized out>, gv=0x159008, type=<optimized out>) at gv.c:85                       
        where = 0x15a16c                                                                                                            
#4  0xb3fdea04 in Perl_gv_fetchpvn_flags (my_perl=0x13dfd8, nambeg=<optimized out>, full_len=<optimized out>, flags=<optimized out>, sv_type=SVt_PVIO) at gv.c:2030                                                                                                     
        name = 0xb40eb8e4 "STDIN"                                                                                                   
        gv = 0x159008                                                                                                               
        gvp = <optimized out>                                                                                                       
        len = 0x5                                                                                                                   
        name_cursor = <optimized out>                                                                                               
        stash = 0x141718                                                                                                            
        no_init = <optimized out>                                                                                                   
        no_expand = <optimized out>                                                                                                 
        add = 0x1                                                                                                                   
        is_utf8 = <optimized out>                                                                                                   
        addmg = <optimized out>                                                                                                     
        name_end = <optimized out>                                                                                                  
        name_em1 = <optimized out>                                                                                                  
        faking_it = 0x0                                                                                                             
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-06-05 12:16:31 UTC
[ebuild   R   ] www-servers/apache-2.2.27  USE="debug doc ssl threads -ldap (-selinux) -static -suexec" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias -asis -auth_digest -authn_dbd -cern_meta -charset_lite -dbd -dumpio -ident -imagemap -log_forensic -proxy -proxy_ajp -proxy_balancer -proxy_connect -proxy_ftp -proxy_http -proxy_scgi -reqtimeout -substitute -version" APACHE2_MPMS="-event -itk -peruser -prefork -worker" 

[ebuild   R   ] www-apache/mod_perl-2.0.8  USE="-debug"

[ebuild   R   ] dev-lang/perl-5.16.3  USE="berkdb doc gdbm ithreads -debug" 

USE=-debug so I assume in scope.h, ENTER is defined as push_scope() at line 160. Setting -DPERL_USEITHREADS didn't help.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-06-05 20:36:06 UTC
Same with 2.0.7, so it's definitely something dev-lang/perl is doing and not mod_perl, as also suggested by the gdb backtrace.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2014-09-08 18:33:42 UTC
Mon Sep  8 20:33:19 CEST 2014
emerge --info mod_perl
Portage 2.2.10 (default/linux/hppa/13.0, gcc-4.7.3, glibc-2.19-r1, 3.14.15-gentoo-JeR parisc64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.14.15-gentoo-JeR-parisc64-PA8800_-Mako-with-gentoo-2.2
KiB Mem:     8231888 total,   4759992 free
KiB Swap:    2101676 total,   2101676 free
Timestamp of tree: Mon, 08 Sep 2014 15:15:01 +0000
ld GNU ld (GNU Binutils) 2.24
distcc 3.1 hppa2.0-unknown-linux-gnu [enabled]
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.7, 3.2.5-r6, 3.3.5-r1, 3.4.1
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.22-r1, 2.23.1, 2.23.2, 2.24-r3
sys-devel/gcc:            4.6.3, 4.6.4, 4.7.2-r1, 4.7.3-r1, 4.8.1-r1, 4.8.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo JeR
ACCEPT_KEYWORDS="hppa"
ACCEPT_LICENSE="*"
CBUILD="hppa2.0-unknown-linux-gnu"
CFLAGS="-mschedule=8000 -march=2.0 -ggdb -Wall -O2 -pipe -Wno-comment"
CHOST="hppa2.0-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib/distcc/bin /usr/lib/python2.6/site-packages/buildbot/status/web /usr/lib/python2.7/site-packages/buildbot/status/web /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /var/bind /var/spool/torque /var/www/localhost/htdocs/wordpress/wp-config.php"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-mschedule=8000 -march=2.0 -ggdb -Wall -O2 -pipe"
DISTDIR="/world/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
FCFLAGS=""
FEATURES="assume-digests binpkg-logs buildpkg cgroup config-protect-if-modified distcc distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news notitles parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict test test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-mschedule=8000 -march=2.0 -ggdb -Wall -O2 -pipe"
GENTOO_MIRRORS="http://de-mirror.org/gentoo/ http://gentoo.mneisen.org/ http://mirror.netcologne.de/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.halifax.rwth-aachen.de/gentoo/ http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://mirror.leaseweb.com/gentoo/ http://gentoo.tiscali.nl/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="C"
LC_ALL="C"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"
MAKEOPTS="-j6"
PKGDIR="/keeps/gentoo/packages/karsten"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/dev/shm"
PORTDIR="/world/gentoo/portage"
PORTDIR_OVERLAY="/keeps/gentoo/local"
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage"
USE="256-color X acl alsa amr anacron apng audit bash-completion berkdb bfio bittorrent bzip2 cairo canberra cli consolekit coverage cracklib crossdev crypt cups custom-cflags cxx dane dbus declarative dirac directfb distinct-l dlz doc dot dri emacs exceptions exif expat fbcon filecaps firefox firmware foomaticdb fortran frontend-optional gbm gdbm geoip geoloc glep gles1 gles2 gost gpm graphite gsm gstreamer gtk gudev guile hddtemp hppa hwdb iconv idn imlib inotify ipv6 jadetex javascript jingle jit jpeg jpeg2k json kdrive kmod ladspa lasi launch-frontend libcaca libcanberra libevent libopts libsoxr libusb libwww lua lzma lzo mad mng mod modplug modules mp3 multislot multitarget munge nagios ncurses netlink nfs nls nptl objc objc++ objc-gc offensive openexr opengl openmp openrc openvg opus osmesa oss pam pcre php pic pkcs11 png pnm policykit python qt qt3support qt4 readline realtime regression-test rtmp samba schroedinger session smi socks5 speex spell spidermonkey sqlite ssl tcl tcpd test tga theora threads tiff tk tokyocabinet truetype unicode unwind v4l vim-syntax vorbis vpx wayland wcwidth x264 xa xattr xcb xft xhtml xkb xml2 xvfb xvid zlib" ALSA_CARDS="ad1889 usb-audio" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="event" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="nss" DRACUT_MODULES="nfs syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev joystick keyboard mouse acecad aiptek calcomp citron digitaledge dmc dynapro elo2300 elographics fpit hyperpen jamstudio magellan microtouch mutouch palmax penmount spaceorb summa tek4957 tslib ur98 void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en nl he" OFFICE_IMPLEMENTATION="libreoffice" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3 python3_4" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="stifb dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.3 3.4"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

www-apache/mod_perl-2.0.8 was built with the following:
USE="-debug"
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2014-09-08 18:47:41 UTC
Same with dev-lang/perl-5.18.2.

# gdb /usr/sbin/apache2 
GNU gdb (Gentoo 7.8 vanilla) 7.8
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "hppa2.0-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Really redefine built-in command "frame"? (y or n) [answered Y; input not from terminal]
Really redefine built-in command "thread"? (y or n) [answered Y; input not from terminal]
Really redefine built-in command "start"? (y or n) [answered Y; input not from terminal]
Reading symbols from /usr/sbin/apache2...Reading symbols from /usr/lib/debug//usr/sbin/apache2.debug...done.
done.
gdb> run -f /etc/apache2/httpd.conf -D DEFAULT_VHOST -D PERL
Starting program: /usr/sbin/apache2 -f /etc/apache2/httpd.conf -D DEFAULT_VHOST -D PERL
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
_______________________________________________________________________________
     eax:Error while running hook_stop:
Value can't be converted to integer.
modperl_env_clear (my_perl=my_perl@entry=0x148068) at modperl_env.c:100
100         HV *hv = ENVHV;
gdb> bt full
#0  modperl_env_clear (my_perl=my_perl@entry=0x148068) at modperl_env.c:100
        hv = <optimized out>
        mg_flags = <optimized out>
#1  0xef27b0f8 in modperl_boot (my_perl=0x148068, data=<optimized out>) at mod_perl.c:100
        p = 0x770a8
        s = 0x7cc38
        i = <optimized out>
#2  0xeef91c7c in Perl_leave_scope (my_perl=0x148068, base=0x0) at scope.c:1097
        uv = <optimized out>
        type = <optimized out>
        refsv = <optimized out>
        svp = <optimized out>
        was = <optimized out>
        arg0 = {
          any_ptr = 0x0, 
          any_i32 = 0x0, 
          any_iv = 0x0, 
          any_uv = 0x0, 
          any_long = 0x0, 
          any_bool = 0x0, 
          any_dptr = 0x0, 
          any_dxptr = 0x0
        }
        arg1 = {
          any_ptr = 0xef2a610a, 
          any_i32 = 0xef2a610a, 
          any_iv = 0xef2a610a, 
          any_uv = 0xef2a610a, 
          any_long = 0xef2a610a, 
          any_bool = 0xef, 
          any_dptr = @0xef2a610a: 0xef27b0bc <modperl_boot>, 
          any_dxptr = @0xef2a610a: 0xef27b0bc <modperl_boot>
        }
        arg2 = {
          any_ptr = 0x0, 
          any_i32 = 0x0, 
          any_iv = 0x0, 
          any_uv = 0x0, 
          any_long = 0x0, 
          any_bool = 0x0, 
          any_dptr = 0x0, 
          any_dxptr = 0x0
        }
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
gdb> where
#0  modperl_env_clear (my_perl=my_perl@entry=0x148068) at modperl_env.c:100
#1  0xef27b0f8 in modperl_boot (my_perl=0x148068, data=<optimized out>) at mod_perl.c:100
#2  0xeef91c7c in Perl_leave_scope (my_perl=0x148068, base=0x0) at scope.c:1097
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2014-09-08 19:10:36 UTC
[ebuild   R   ~] dev-lang/perl-5.18.2-r1:0/5.18  USE="berkdb doc gdbm ithreads -debug" 0 kB
Comment 6 Vladimir Smirnov (RETIRED) gentoo-dev 2014-09-15 20:15:10 UTC
Created attachment 384808 [details]
emerge --info

Can't reproduce on hake.dev.gentoo.org.
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2014-09-16 07:44:00 UTC
Created attachment 384822 [details]
www-apache:mod_perl-2.0.8:20140916-063622.log

Here is what triggered this bug report. See src_test() where all attempts to launch apache end in variations on "oh dangit, server dumped core".
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2014-09-16 12:55:28 UTC
dev-lang/perl compiled with -O0:

Core was generated by `/usr/sbin/apache2 -D DEFAULT_VHOST -D PERL'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0xf02674b4 in modperl_env_clear (my_perl=my_perl@entry=0x144fd0) at modperl_env.c:100
100     modperl_env.c: No such file or directory.
gdb> bt full
#0  0xf02674b4 in modperl_env_clear (my_perl=my_perl@entry=0x144fd0) at modperl_env.c:100
        hv = <optimized out>
        mg_flags = <optimized out>
#1  0xf02530d0 in modperl_boot (my_perl=0x144fd0, data=<optimized out>) at mod_perl.c:100
        p = 0x740a8
        s = 0x79b98
        i = <optimized out>
#2  0xeff6682c in Perl_leave_scope (my_perl=0x144fd0, base=0x0) at scope.c:1097
        uv = 0x19
        type = 0x19
        refsv = 0xf0035b9c
        svp = 0x161718
        was = 0x0
        arg0 = {
          any_ptr = 0x0,
          any_i32 = 0x0,
          any_iv = 0x0,
          any_uv = 0x0,
          any_long = 0x0,
          any_bool = 0x0,
          any_dptr = 0x0,
          any_dxptr = 0x0
        }
        arg1 = {
          any_ptr = 0xf027c10a,
          any_i32 = 0xf027c10a,
          any_iv = 0xf027c10a,
          any_uv = 0xf027c10a,
          any_long = 0xf027c10a,
          any_bool = 0xf0,
          any_dptr = @0xf027c10a: 0xf0253090 <modperl_boot>,
          any_dxptr = @0xf027c10a: 0xf0253090 <modperl_boot>
        }
        arg2 = {
          any_ptr = 0x0,
          any_i32 = 0x0,
          any_iv = 0x0,
          any_uv = 0x0,
          any_long = 0x0,
          any_bool = 0x0,
          any_dptr = 0x0,
          any_dxptr = 0x0
        }
#3  0xeff62b34 in Perl_pop_scope (my_perl=0x144fd0) at scope.c:110
        oldsave = 0xff
#4  0xeff62b34 in Perl_pop_scope (my_perl=0x144fd0) at scope.c:110
        oldsave = 0x0
#5  0xefe33024 in S_parse_body (my_perl=0x144fd0, env=0x0, xsinit=@0xf027c112: 0xf0253048 <modperl_xs_init>) at perl.c:2333
        rsfp = 0x15c4b0
        argc = 0x1
        argv = 0x117994
        scriptname = 0xf00102e4 "/dev/null"
        dosearch = 0x0
        c = 0x65
        doextract = 0x0
        cddir = 0x0
        linestr_sv = 0x0
        add_read_e_script = 0x1
        lex_start_flags = 0x0
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2014-09-16 13:16:03 UTC
mod_perl compiled with -O0 as well:

Core was generated by `/usr/sbin/apache2 -D DEFAULT_VHOST -D PERL'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0xf0045890 in modperl_env_clear (my_perl=0x144fd0) at modperl_env.c:100
100     modperl_env.c: No such file or directory.
gdb> bt full
#0  0xf0045890 in modperl_env_clear (my_perl=0x144fd0) at modperl_env.c:100
        hv = 0xefc35b9c
        mg_flags = 0xefc35b9c
        __func__ = "modperl_env_clear"
#1  0xf0027cb8 in modperl_boot (my_perl=0x144fd0, data=0x0) at mod_perl.c:100
        p = 0x740a8
        s = 0x79b98
        i = 0x1616e8
#2  0xefb6682c in Perl_leave_scope (my_perl=0x144fd0, base=0x0) at scope.c:1097
        uv = 0x19
        type = 0x19
        refsv = 0xefc35b9c
        svp = 0x161718
        was = 0x0
        arg0 = {
          any_ptr = 0x0, 
          any_i32 = 0x0, 
          any_iv = 0x0, 
          any_uv = 0x0, 
          any_long = 0x0, 
          any_bool = 0x0, 
          any_dptr = 0x0, 
          any_dxptr = 0x0
        }
        arg1 = {
          any_ptr = 0xf00650c6, 
          any_i32 = 0xf00650c6, 
          any_iv = 0xf00650c6, 
          any_uv = 0xf00650c6, 
          any_long = 0xf00650c6, 
          any_bool = 0xf0, 
          any_dptr = @0xf00650c6: 0xf0027c5c <modperl_boot>, 
          any_dxptr = @0xf00650c6: 0xf0027c5c <modperl_boot>
        }
        arg2 = {
          any_ptr = 0x0, 
          any_i32 = 0x0, 
          any_iv = 0x0, 
          any_uv = 0x0, 
          any_long = 0x0, 
          any_bool = 0x0, 
          any_dptr = 0x0, 
          any_dxptr = 0x0
        }
#3  0xefb62b34 in Perl_pop_scope (my_perl=0x144fd0) at scope.c:110
        oldsave = 0xff
#4  0xefb62b34 in Perl_pop_scope (my_perl=0x144fd0) at scope.c:110
        oldsave = 0x0
#5  0xefa33024 in S_parse_body (my_perl=0x144fd0, env=0x0, xsinit=@0xf00650ce: 0xf0027e74 <modperl_xs_init>) at perl.c:2333
        rsfp = 0x15c4b0
        argc = 0x1
        argv = 0x117994
        scriptname = 0xefc102e4 "/dev/null"
        dosearch = 0x0
        c = 0x65
        doextract = 0x0
        cddir = 0x0
        linestr_sv = 0x0
        add_read_e_script = 0x1
        lex_start_flags = 0x0
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Comment 10 Vladimir Smirnov (RETIRED) gentoo-dev 2014-09-16 15:35:21 UTC
On hake, though not all tests were Ok (2 tests failed because perl reported something unexpected, I'll look into it, but it's not related to this bug), but apache runs perfectly.

Any additional ideas?
Comment 11 Jeroen Roovers (RETIRED) gentoo-dev 2014-09-19 16:37:27 UTC
I have dropped keywording for 2.0.7 to ~hppa so you get can on with things. We'll have to stick with ~hppa for a while until this is fixed.
Comment 12 Jeroen Roovers (RETIRED) gentoo-dev 2014-09-20 09:00:46 UTC
I don't get it.

*mod_perl-2.0.7-r1 (19 Sep 2014)
 
  19 Sep 2014; Andreas K. Huettel <dilfridge@gentoo.org>
  -mod_perl-2.0.7.ebuild, +mod_perl-2.0.7-r1.ebuild:
  Make an EAPI=5 revbump for hppa where 2.0.8 makes problems, drop old ebuild
 
  19 Sep 2014; Jeroen Roovers <jer@gentoo.org> mod_perl-2.0.7.ebuild:
  Marked ~hppa (bug #512504).
Comment 13 Jeroen Roovers (RETIRED) gentoo-dev 2014-09-20 09:13:04 UTC
I'll rebuild apache with a minimal configuration:

APACHE2_MODULES="authz_host dir mime"
APACHE2_MPMS=""
USE=-*

and see if that matters.
Comment 14 Jeroen Roovers (RETIRED) gentoo-dev 2014-09-20 09:46:01 UTC
(In reply to Jeroen Roovers from comment #13)
> I'll rebuild apache with a minimal configuration:
> 
> APACHE2_MODULES="authz_host dir mime"

Apparently mod_perl needs APACHE2_MODULES="alias":

# /etc/init.d/apache2 restart
 * Caching service dependencies ...     [ ok ]
 * apache2 has detected an error in your setup:
Syntax error on line 10 of /etc/apache2/modules.d/75_mod_perl.conf:
Invalid command 'Alias', perhaps misspelled or defined by a module not included in the server configuration

I can edit those out of course. It would be nicer to have a USE dependency of www-servers/apache[apache2_modules_alias] instead.
Comment 15 Jeroen Roovers (RETIRED) gentoo-dev 2014-09-20 09:47:35 UTC
Running that minimal apache didn't change anything (except my_perl):

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
wheCore was generated by `/usr/sbin/apache2 -f /etc/apache2/httpd.conf -D DEFAULT_VHOST -D PERL'.
Program terminated with signal SIGSEGV, Segmentation fault.
r#0  0xf7845890 in modperl_env_clear (my_perl=0x1129b8) at modperl_env.c:100
100         HV *hv = ENVHV;
gdb> where
#0  0xf7845890 in modperl_env_clear (my_perl=0x1129b8) at modperl_env.c:100
#1  0xf7827cb8 in modperl_boot (my_perl=0x1129b8, data=0x0) at mod_perl.c:100
#2  0xf73cd2d8 in Perl_leave_scope (my_perl=0x1129b8, base=0x0) at scope.c:1097
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Comment 16 Jeroen Roovers (RETIRED) gentoo-dev 2015-10-06 07:27:33 UTC
*** Bug 562364 has been marked as a duplicate of this bug. ***
Comment 17 LABBE Corentin 2015-10-06 14:30:52 UTC
Using mod_perl 2.0.9 solve the problem.
Note that I do not know mod_perl-2.0.8-r1.ebuild accept apache-2.4 since the official 2.0.9 announcement said that it is the first release of mod_perl handling apache 2.4.
So I think we need to block apache 2.4 for <= 2.0.8 and bump ebuild to 2.0.9
Comment 18 Andreas K. Hüttel archtester gentoo-dev 2016-10-01 12:09:38 UTC
Please test www-apache/mod_perl-2.0.10_rc1 and report back!
Comment 19 Andreas K. Hüttel archtester gentoo-dev 2016-12-30 16:43:46 UTC
(In reply to Andreas K. Hüttel from comment #18)
> Please test www-apache/mod_perl-2.0.10_rc1 and report back!

Please try www-apache/mod_perl-2.0.10
Comment 20 Andreas K. Hüttel archtester gentoo-dev 2017-04-19 22:04:35 UTC
Not keyworded hppa anymore.