You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2002/07/19 20:11:49 UTC
DO NOT REPLY [Bug 10992] New: -
Crash at config reading after reading ChildPerUserID directive
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10992>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10992
Crash at config reading after reading ChildPerUserID directive
Summary: Crash at config reading after reading ChildPerUserID
directive
Product: Apache httpd-2.0
Version: 2.0.39
Platform: PC
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: perchild
AssignedTo: bugs@httpd.apache.org
ReportedBy: mav@mavhome.dp.ua
Every time that i start httpd (2.0.35 or 2.0.39) with parameter ChildPerUserID
that is not last directive in config file - httpd crashes. Looking core in gdb i
see that apr_palloc() at util.c:736 return 0xFFFFFFFF and this is the reason of
Bus error signal.
If this directive is last in the config file - httpd starts normally, but starts
on one process less than it is specified in ChildPerUserID directive.
When i try to submit this patch httpd starts OK:
*** perchild.c.orig Thu Jun 13 19:36:19 2002
--- perchild.c Fri Jul 19 20:49:08 2002
***************
*** 1828,1834 ****
int max_this_time = atoi(num) + curr_child_num;
for (i = curr_child_num; i < max_this_time; i++, curr_child_num++) {
! child_info_t *ug = &child_info_table[i - 1];
if (i > num_daemons) {
return "Trying to use more child ID's than NumServers. Increase "
--- 1828,1834 ----
int max_this_time = atoi(num) + curr_child_num;
for (i = curr_child_num; i < max_this_time; i++, curr_child_num++) {
! child_info_t *ug = &child_info_table[i];
if (i > num_daemons) {
return "Trying to use more child ID's than NumServers. Increase "
Apache was configured by this script:
#!/bin/sh
./configure \
"--prefix=/usr/local/apache2" \
"--enable-threads" \
"--with-mpm=perchild" \
"--enable-mods-shared=all" \
"--enable-so=static" \
"--enable-charset-lite=static" \
"--enable-access=static" \
"--enable-auth=static" \
"--enable-include=static" \
"--enable-cgid=static" \
"--enable-dir=static" \
"--enable-alias=static" \
"--enable-maintainer-mode" \
"--enable-suexec=static" \
"--with-suexec-caller=nobody" \
"--with-suexec-docroot=/www" \
"--with-suexec-logfile=/usr/local/apache2/logs/cgi.log"
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org