Summary: | www-servers/apache - segmentation fault in apr_palloc (pool=pool@entry=0x74c10, in_size=in_size@entry=12) at memory/unix/apr_pools.c:684 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Fab <netbox253> |
Component: | [OLD] Server | Assignee: | Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | mjo, pacho |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://issues.apache.org/bugzilla/show_bug.cgi?id=55327 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | backtrace |
Description
Fab
2014-10-13 06:55:50 UTC
I found a similar bug upstream. I think I have the same problem, with www-servers/apache-2.2.29::gentoo, dev-libs/apr-1.5.0-r2::gentoo (also does not work with version 1.5.2) : Starting program: /usr/sbin/apache2 --help [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/libthread_db.so.1". Program received signal SIGSEGV, Segmentation fault. 0xb7d88aef in apr_palloc () from /usr/lib/libapr-1.so.0 emerge --info Portage 2.2.20 (python 3.4.1-final-0, default/linux/x86/13.0, gcc-4.8.4, glibc-2.20-r2, 4.0.5-gentoo i586) ================================================================= System uname: Linux-4.0.5-gentoo-i586-Geode-TM-_Integrated_Processor_by_AMD_PCS-with-gentoo-2.2 KiB Mem: 253460 total, 44756 free KiB Swap: 4194300 total, 4063768 free Timestamp of repository gentoo: Sat, 01 Aug 2015 09:15:01 +0000 sh bash 4.3_p33-r2 ld GNU ld (Gentoo 2.24 p1.4) 2.24 distcc 3.1 i686-pc-linux-gnu [enabled] app-shells/bash: 4.3_p33-r2::gentoo dev-java/java-config: 2.2.0::gentoo dev-lang/perl: 5.20.2::gentoo dev-lang/python: 2.7.9-r1::gentoo, 3.3.5-r1::gentoo, 3.4.1::gentoo dev-util/cmake: 3.2.2::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.17::gentoo sys-apps/sandbox: 2.6-r1::gentoo sys-devel/autoconf: 2.69::gentoo sys-devel/automake: 1.15::gentoo sys-devel/binutils: 2.24-r3::gentoo sys-devel/gcc: 4.8.4::gentoo sys-devel/gcc-config: 1.7.3::gentoo sys-devel/libtool: 2.4.6::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers) sys-libs/glibc: 2.20-r2::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.fr.gentoo.org/gentoo-portage priority: -1000 ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="* -@EULA" CBUILD="i686-pc-linux-gnu" CFLAGS="-Os -pipe -march=geode -mno-cx16 -mno-sahf -mno-movbe -mno-aes -mno-pclmul -mno-popcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mno-avx -mno-avx2 -mno-sse4.2 -mno-sse4.1 -mno-lzcnt -mno-rdrnd -mno-f16c -mno-fsgsbase --param l1-cache-size=64 --param l1-cache-line-size=32 --param l2-cache-size=128 -mtune=geode -fomit-frame-pointer -fno-stack-protector" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/maven-bin-3.0/conf" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-Os -pipe -march=geode -mno-cx16 -mno-sahf -mno-movbe -mno-aes -mno-pclmul -mno-popcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mno-avx -mno-avx2 -mno-sse4.2 -mno-sse4.1 -mno-lzcnt -mno-rdrnd -mno-f16c -mno-fsgsbase --param l1-cache-size=64 --param l1-cache-line-size=32 --param l2-cache-size=128 -mtune=geode -fomit-frame-pointer -fno-stack-protector" DISTDIR="/mnt/freebox/Téléchargements/distfiles" FCFLAGS="-O2 -march=i686 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distcc distcc-pump distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -march=i686 -pipe" GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/" LANG="fr_FR.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j11 -l1" PKGDIR="/usr/portage/packages" 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="/media/usb/tmp" USE="acl apache2 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 ldap modules ncurses nls nptl openmp pam pcre readline session ssl tcpd unicode x86 zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 proxy proxy_http" APACHE2_MPMS="worker" 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" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON The issue was solved for me after these steps : 1. Re-emerge apache without distcc and distcc-pump features (even if no distributed compilation was possible in last emerges) At this point, apache was not working either, but with a different error 2. Uninstall apache, re-emerge apr, apr-util, and apache in this order, as suggested by this wiki : https://wiki.gentoo.org/wiki/Project:Apache/Troubleshooting#Apache_is_returning_zero-length_pages_or_segfaulting Yep, confirming. The segfault is gone after rebuilding apr, apr-util, and apache in this order without FEATURES="distcc distcc-pump". I rebuilt them just to test, since I'm using www-servers/lighttpd instead. Thanks anyway. are you still hitting this with newer versions? Having never experienced the issue myself, I can only guess, but: this is probably a binary compatibility issue between www-servers/apache and dev-libs/apr. There is some good upstream documentation at https://apr.apache.org/versioning.html#binary that suggests an "x.y" subslot might be used for versions "x.y.z" of dev-libs/apr. Then www-server/apache would use a subslot dependency to force a rebuild with either the "x" or "y" component of dev-libs/apr changes. For example, dev-libs/apr-1.6.3 would have SLOT="1/1.6". The versionator eclass could be used to extract the "1.6" from ${PV} automatically. A quick grep shows that a number of other packages might benefit from a subslot dependency, if we add the subslot to dev-libs/apr, Apache stuff: * app-admin/apache-tools * dev-libs/apr-util Misc: * dev-util/kdevplatform * dev-vcs/kdesvn * dev-java/netty-tcnative * dev-java/tomcat-native * dev-libs/log4cxx A few other packages (like www-servers/nginx) already use ":=" or ":1=" in their dependencies, even though we have no subslot for dev-libs/apr yet. We should then probably revbump dev-libs/apr to add a subslot and start depending on that subslot, right? @pacho: it's been a few months, but I think that's what I was suggesting =) OK, I was tempted to go ahead and revbump apr for adding the subslot but wanted to be sure ;) [master a53bb50a5f4] dev-libs/apr: Setting a subslot is needed (#525222) 1 file changed, 147 insertions(+) create mode 100644 dev-libs/apr/apr-1.6.3-r1.ebuild Now that dev-libs/apr has a sub-slot and consumers make use of it I suppose this bug can be closed. |