Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 313319 - www-servers/apache-2.2.15: Apache does not work - (38)Function not implemented: apr_socket_accept: (client socket)
Summary: www-servers/apache-2.2.15: Apache does not work - (38)Function not implemente...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-06 01:10 UTC by Marc A. Kastner
Modified: 2013-02-28 21:19 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc A. Kastner 2010-04-06 01:10:00 UTC
Installed apache on my system, tried to use it without modifications of httpd.conf/apache2.conf or something (=> standard configuration).

Didn't work, crashes as soon as somebody tries to connect with browser with some APR Errors.

Tried to reinstall everything which is connected to Apache (apr, apr-util, apache), didnt solve the problem.

Reproducible: Always

Steps to Reproduce:
1. emerge apache on fresh system
2. /etc/init.d/apache start or /etc/init.d/apache restart
3. Open localhost:80 in browser.

Actual Results:  
Timeout in browser. Apache process crashed with several "(38)Function not implemented: apr_socket_accept: (client socket)" messages in error.log (see Additional information for cat error.log)

Expected Results:  
Apache should not crash.

Fresh system with only emerge apache.
Reinstalled apr, apr-util, apache several times but problem persists.

error.log:
[Tue Apr 06 02:54:03 2010] [notice] Apache/2.2.15 (Unix) mod_ssl/2.2.15 OpenSSL/0.9.8n configured -- resuming normal operations
[Tue Apr 06 02:54:54 2010] [error] (22)Invalid argument: apr_socket_accept: (client socket)
[Tue Apr 06 02:54:54 2010] [error] (22)Invalid argument: apr_socket_accept: (client socket)
[Tue Apr 06 02:54:55 2010] [error] (38)Function not implemented: apr_socket_accept: (client socket)
[Tue Apr 06 02:54:56 2010] [error] (38)Function not implemented: apr_socket_accept: (client socket)
[Tue Apr 06 02:54:56 2010] [error] (38)Function not implemented: apr_socket_accept: (client socket)
[Tue Apr 06 02:54:57 2010] [alert] No active workers found... Apache is exiting!


emerge --pretend apr apr-util apache:
[ebuild   R   ] dev-libs/apr-1.3.9
[ebuild   R   ] dev-libs/apr-util-1.3.9
[ebuild   R   ] www-servers/apache-2.2.15

emerge --info:
Portage 2.1.7.17 (hardened/linux/x86/10.0, gcc-4.3.4-hardenednopie, glibc-2.10.1-r1, 2.6.27.42-2-openvz i686)
=================================================================
System uname: Linux-2.6.27.42-2-openvz-i686-Intel-R-_Core-TM-_i7_CPU_975_@_3.33GHz-with-gentoo-1.12.13
Timestamp of tree: Sat, 03 Apr 2010 21:30:01 +0000
app-shells/bash:     4.0_p37
dev-lang/python:     2.6.4-r1
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.11.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /sbin/rc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl apache2 bash-completion berkdb bzip2 cgi cli cracklib crypt cups cxx dri gd gdbm gpm hardened iconv mmx modules mudflap mysql mysqli ncurses nls nptl nptlonly openmp pam pcre perl pic pppd python readline reflection session spl sse sse2 ssl suhosin sysfs threads unicode urandom x86 xorg zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 intel  mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage      siliconmotion sis sisusb tdfx tga trident tseng v4l vesa via vmware     voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Panagiotis Christopoulos (RETIRED) gentoo-dev 2010-04-06 06:26:32 UTC
Does this also happen with the older =www-servers/apache-2.2.14-r1 version?

Also, please, paste your full "emerge -pv apache" output. Maybe you should also try revdep-rebuild(emerge gentoolkit) in case there is a problem with dependencies.
Comment 2 Marc A. Kastner 2010-04-06 10:22:37 UTC
emerge --unmerge apache; emerge =www-servers/apache-2.2.14-r1;
/etc/init.d/apache2 restart; cat /var/log/apache2/error_log

[Tue Apr 06 12:00:26 2010] [notice] Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8n configured -- resuming normal operations
[Tue Apr 06 12:00:45 2010] [error] (22)Invalid argument: apr_socket_accept: (client socket)
[Tue Apr 06 12:00:45 2010] [error] (22)Invalid argument: apr_socket_accept: (client socket)
[Tue Apr 06 12:00:46 2010] [error] (38)Function not implemented: apr_socket_accept: (client socket)
[Tue Apr 06 12:00:47 2010] [error] (38)Function not implemented: apr_socket_accept: (client socket)
[Tue Apr 06 12:00:47 2010] [error] (38)Function not implemented: apr_socket_accept: (client socket)
[Tue Apr 06 12:00:48 2010] [alert] No active workers found... Apache is exiting!



My emerge -pv apache:
mkasu apache2 # emerge -pv apache

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] app-admin/apache-tools-2.2.15 [2.2.14] USE="ssl" 0 kB
[ebuild     U ] www-servers/apache-2.2.15 [2.2.14-r1] USE="ssl threads -debug -doc -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 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 -substitute -version" APACHE2_MPMS="-event -itk -peruser -prefork -worker" 0 kB

Total: 2 packages (2 upgrades), Size of downloads: 0 kB

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

(after apache 2.2.14-r1 install; I now upgraded to again 2.2.15 as problem persists.



mkasu apache2 # revdep-rebuild
 * Configuring search environment for revdep-rebuild

 * Checking reverse dependencies
 * Packages containing binaries and libraries broken by a package update
 * will be emerged.

 * Collecting system binaries and libraries
 * Generated new 1_files.rr
 * Collecting complete LD_LIBRARY_PATH
 * Generated new 2_ldpath.rr
 * Checking dynamic linking consistency
[ 100% ]

 * Dynamic linking on your system is consistent... All done.
mkasu apache2 # /etc/init.d/apache2 restart
 * Stopping apache2 ... httpd (pid 28100?) not running  [ ok ]
 * Starting apache2 ... [ ok ]
mkasu apache2 # cat /var/log/apache2/error_log
.......
[Tue Apr 06 12:14:57 2010] [notice] Apache/2.2.15 (Unix) mod_ssl/2.2.15 OpenSSL/0.9.8n configured -- resuming normal operations
[Tue Apr 06 12:15:00 2010] [error] (22)Invalid argument: apr_socket_accept: (client socket)
[Tue Apr 06 12:15:00 2010] [error] (22)Invalid argument: apr_socket_accept: (client socket)
[Tue Apr 06 12:15:01 2010] [error] (38)Function not implemented: apr_socket_accept: (client socket)
[Tue Apr 06 12:15:02 2010] [error] (38)Function not implemented: apr_socket_accept: (client socket)
[Tue Apr 06 12:15:02 2010] [error] (22)Invalid argument: apr_socket_accept: (client socket)
[Tue Apr 06 12:15:03 2010] [alert] No active workers found... Apache is exiting!





Just to be sure everything is compiled rightly, I've done some emerge -e world over last night (didnt help).
Comment 3 Benedikt Böhm (RETIRED) gentoo-dev 2010-04-06 11:17:21 UTC
can you please try if USE=older-kernels-compatibility in dev-libs/apr fixes the problem
Comment 4 Marc A. Kastner 2010-04-06 11:30:11 UTC
Ah, very nice. It looks like it works now (with that USE Flag). I thought it's for much older kernels (like 2.4 or something), thats why I didn't test it. Maybe you should add a test to ebuild which checks if kernel is too old and reminds you of setting that USE flag.
Comment 5 Benedikt Böhm (RETIRED) gentoo-dev 2010-04-06 12:21:06 UTC
i'm not even sure which kernel versions are affected, and i usually fixed this error by recompiling apr (without adding this use flag). i'm reopening this bug, since this issue is quite annoying and should be fixed for real.
Comment 6 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-04-06 14:33:53 UTC
AFAIK currently USE="older-kernels-compatibility" is for kernels older than 2.6.28.
Comment 7 Tony Vroon (RETIRED) gentoo-dev 2013-02-28 21:19:12 UTC
This bug is for kernels that have not been available for years and apache versions that have long gone. Even if you could somehow make it happen, the actual bug is in libapr. Closing.