| Summary: | www-servers/apache-2.2.11 with USE="threads" hang net-misc/dhcp-3.1.1 | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Evgeniy <devl> |
| Component: | [OLD] Server | Assignee: | PHP Bugs <php-bugs> |
| Status: | RESOLVED NEEDINFO | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | ps aux output | ||
|
Description
Evgeniy
2009-05-22 12:30:07 UTC
Hi Evgeniy, that's quite a complex set of circumstances you've got there. 5:) It would be useful to try a few things to try and figure out which program's at fault. Could you please reboot the machine (or get it to a point where dhcpd will start and stop fine using /etc/init.d/dhcpcd) then run your php script once? After that, please run "ps aux > process-list.txt" and then attach the process-list.txt file to this bug. That should show us what processes are still running, which user they're running as and what state they're in... Also could you tell us whether this problem occurs when apache is compiled with USE="threads" but when php has USE="-threads"? Ok, I will do all that you ask. About php, it won't merge without "threads", prints: * You need to enable USE flag 'threads' to build a thread-safe version * of dev-lang/php for use with www-servers/apache" And I think you can simply reproduce this bug, emerge apache with: USE="ssl threads -debug -doc -ldap (-selinux) -sni -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" and php with USE="apache2 bcmath berkdb bzip2 cli crypt gdbm iconv imap kerberos mysql ncurses nls pcre pic readline reflection session snmp sockets spl ssl sysvipc threads unicode xml zlib -adabas -birdstep -calendar -cdb -cgi -cjk -concurrentmodphp -ctype -curl -curlwrappers -db2 -dbase -dbmaker -debug -discard-path -doc -empress -empress-bcs -esoob -exif -fastbuild -fdftk -filter -firebird -flatfile -force-cgi-redirect -frontbase -ftp -gd -gd-external -gmp -hash -inifile -interbase -iodbc -ipv6 (-java-external) -json -kolab -ldap -ldap-sasl -libedit -mcve -mhash -msql -mssql -mysqli -oci8 -oci8-instant-client -odbc -pcntl -pdo -posix -postgres -qdbm -recode -sapdb -sharedext -sharedmem -simplexml -soap -solid -spell -sqlite -suhosin -sybase -sybase-ct -tidy -tokenizer -truetype -wddx -xmlreader -xmlrpc -xmlwriter -xpm -xsl -yaz -zip (-zip-external)" run apache and from http run php script like that: <? $command="sudo /etc/init.d/dhcpd restart"; $success = exec($command, $out, $exit_code); ?> and that try "/etc/init.d/dhcpd stop". It will not stop :( and I think not only dhcpd will do that. Please try it in your host P.S. Some times "ss -pln" show:
0 128 *:80 *:* users:(("apache2",13864,4),("apache2",13870,4),("dhcpd",13898,4))
but not allways.
P.P.S. In all others case dhcpd WORK CORRECT.
I'm afraid I don't have a development machine I can spare to go installing apache and PHP (and they're not packages I maintain), so it would be really helpful if you could run the request test ("ps aux > process-list.txt") after you've run your php script on the system you have that's already experiencing the problem.
Also I'm unfamiliar with the ss command (is it an alias or an actual program) and so I don't know what information your second comment showed.
Created attachment 192826 [details]
ps aux output
process-list.txt - from my workstation, where I testing that bug, later I will attach process-list.txt from server host. "ss" is a part of iproute2, its like unix netstat "netstat -pln" in same case print: tcp 0 0 0.0.0.0:443 0.0.0.0:* 517/dhcpd but it not always reproduced Ok thanks, that didn't shed any light on the problem unfortunately, so I'm throwing it over to the PHP guys (with apache CCed) since it seems something they're most likely to have experience with. They may well reassign it to the dhcp or base-system group if they find out it's something specific to dhcp or baselayout's init scripts. Some new information about bug! I think it in mod_php, today I run apache with php as cgi and all looks like fine! I will continue testing it, but you please try fix it :) please reopen this bug if it is still an issue |