httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 52894] New: Apache aborts abnormally when ChrootDir is set
Date Tue, 13 Mar 2012 00:22:47 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=52894

             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
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: tixu@cs.ucsd.edu
    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:

libgcc_s.so.1 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
server/mpm/worker/worker.c.

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.

Thanks!

-- 
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


Mime
View raw message