httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 52894] New: Apache aborts abnormally when ChrootDir is set
Date Tue, 13 Mar 2012 00:22:47 GMT

             Bug #: 52894
           Summary: Apache aborts abnormally when ChrootDir is set
           Product: Apache httpd-2
           Version: 2.4.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_unixd
    Classification: Unclassified

To replay the abnormal abort, put the following line in httpd.conf:

ChrootDir /home/username/Downloads

note that "username" is the valid user name, so the path is a valid path (make
sure you use a valid path but not "/").

Then, run Apache httpd as root (use "su"), Apache httpd will abort abnormally,
with the following error message in error log: must be installed for pthread_cancel to work

By tracing the source code by gdb, we find that the abort is caused by calling
pthread_exit() in apr_thread_exit() in srclib/apr/threadproc/unix/thread.c
which is called by start_threads() in server/mpm/event/event.c or

The strange thing is that when using the following configuration setting:

ChrootDir /

Everything is fine. The pthread_exit() is also called but it goes smoothly.
Also running without root (i.e., as normal user) won't cause this abort.

We have replayed this on Ubuntu 10.04, Ubuntu 11.10, and Fedora 13, the abort
behavior happened in all these three systems.


Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message