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 2009/04/08 18:51:32 UTC

DO NOT REPLY [Bug 46995] New: httpd / apachectl do not return exit codes when they should

https://issues.apache.org/bugzilla/show_bug.cgi?id=46995

           Summary: httpd / apachectl do not return exit codes when they
                    should
           Product: Apache httpd-2
           Version: 2.2.11
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: dheld@fortify.com


Steps to reproduce:

1. (May not be specifically required)
Compile apache 2.2.11 on Solaris 10 on i386 (VMWare), with options:
./configure --disable-actions --disable-alias --disable-asis --disable-auth
--disable-auth-basic --disable-authn-default --disable-authn-file
--disable-authz-default --disable-authz-groupfile --disable-authz-user
--disable-autoindex --disable-cgi --disable-cgid --disable-charset-lite
--disable-env --disable-imagemap --disable-include --disable-negotiation
--disable-proxy-ajp --disable-proxy-balancer --disable-proxy-ftp
--disable-setenvif --disable-status --disable-userdir --enable-proxy
--enable-proxy-connect --enable-ssl --enable-unique-id --prefix=$APACHE_ROOT
--with-pcre=$APACHE_DEPS_ROOT

2. Assuming apache is configured to start correctly, type the following
commands:
   $APACHE_ROOT/bin/httpd -k start
   echo $?
   $APACHE_ROOT/bin/httpd -k start
   echo $?
   $APACHE_ROOT/bin/httpd -k stop
   echo $?
   $APACHE_ROOT/bin/httpd -k stop
   echo $?

Note that I am starting apache twice, and stopping it twice.


Expected results:
1. The first start succeeds, and returns exit code 0
2. The second start fails, and returns nonzero exit code
3. The first stop succeeds, and returns exit code 0
4. The second stop suceeds, and returns nonzero exit code.


Actual results:
1 and 3 as expected.
Result 2 prints an error message but returns 0.
Result 4 prints an error message but returns 0.


Notes:
Replace 'httpd -k' with 'apachectl' wrapper, and the results are similar :-(

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 46995] httpd / apachectl do not return exit codes when they should

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46995





--- Comment #4 from Dan Poirier <po...@pobox.com>  2009-04-08 11:54:41 PST ---
Are these exit status codes really wrong?  It could be a matter of
interpretation.  After the 2nd start command, Apache is running, which is
presumably what was desired.  And after the 2nd stop, Apache isn't running,
again that's what was wanted.  Is there documentation somewhere that would lead
someone to expect something different?

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 46995] httpd / apachectl do not return exit codes when they should

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46995


Dan Poirier <po...@pobox.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME




--- Comment #5 from Dan Poirier <po...@pobox.com>  2009-06-10 11:26:07 PST ---
Closing.  If you re-open, please explain why the current behavior is wrong or
unexpected.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 46995] httpd / apachectl do not return exit codes when they should

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46995





--- Comment #1 from douglas held <dh...@fortify.com>  2009-04-08 09:56:00 PST ---
Created an attachment (id=23463)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23463)
httpd.conf

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 46995] httpd / apachectl do not return exit codes when they should

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46995





--- Comment #2 from douglas held <dh...@fortify.com>  2009-04-08 10:00:45 PST ---
Created an attachment (id=23464)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23464)
my only external module (Solaris x86 32 bit)

I doubt this is required to reproduce the issue, but here is my only loadable
module in case you need it.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 46995] httpd / apachectl do not return exit codes when they should

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46995


douglas held <dh...@fortify.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dheld@fortify.com




-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 46995] httpd / apachectl do not return exit codes when they should

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46995





--- Comment #3 from douglas held <dh...@fortify.com>  2009-04-08 10:02:39 PST ---
Oh, sorry, I expect step 4 to FAIL, not to "suceed".

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org