Return-Path: Delivered-To: apmail-httpd-bugs-archive@www.apache.org Received: (qmail 77964 invoked from network); 1 Dec 2003 09:41:34 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 1 Dec 2003 09:41:34 -0000 Received: (qmail 34397 invoked by uid 500); 1 Dec 2003 09:41:08 -0000 Delivered-To: apmail-httpd-bugs-archive@httpd.apache.org Received: (qmail 34373 invoked by uid 500); 1 Dec 2003 09:41:07 -0000 Mailing-List: contact bugs-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: "Apache HTTPD Bugs Notification List" Delivered-To: mailing list bugs@httpd.apache.org Received: (qmail 34358 invoked from network); 1 Dec 2003 09:41:07 -0000 Received: from unknown (HELO exchange.sun.com) (192.18.33.10) by daedalus.apache.org with SMTP; 1 Dec 2003 09:41:07 -0000 Received: (qmail 27149 invoked by uid 50); 1 Dec 2003 09:41:30 -0000 Date: 1 Dec 2003 09:41:30 -0000 Message-ID: <20031201094130.27148.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: bugs@httpd.apache.org Cc: Subject: DO NOT REPLY [Bug 25103] New: - Purpose of APR_PROGRAM and APR_PROGRAM_ENV is reversed in apr_proc_create X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . 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=25103 Purpose of APR_PROGRAM and APR_PROGRAM_ENV is reversed in apr_proc_create Summary: Purpose of APR_PROGRAM and APR_PROGRAM_ENV is reversed in apr_proc_create Product: APR Version: 0.9.4 Platform: PC OS/Version: Solaris Status: NEW Severity: Normal Priority: Other Component: APR AssignedTo: bugs@httpd.apache.org ReportedBy: mcorcoran@spidersoftware.com It looks as though the purpose that APR_PROGRAM and APR_PROGRAM_ENV are supposed to serve in apr_proc_create() in (apr/threadproc/unix/proc.c) is being implemented the wrong way. The problem being that when a call is made to apr_proc_create() with NULL for the env argument, and APR_PROGRAM is specified in the attr argument, then NULL ends up getting passed to the call to execve, which seems to cause the exec'ed program to seg fault before it even has a chance to run. This was most noticeable to me while trying to use rotatelogs and SSLPassPhraseDialog exec:/blah/blah. Here's a simple diff to fix it: diff ./httpd-2.0.48/srclib/apr/threadproc/unix/proc.c ./httpd- 2.0.48.fix/srclib/apr/threadproc/unix/proc.c 482c482 < execve(progname, (char * const *)args, (char * const *)env); --- > execv(progname, (char * const *)args); 489c489 < execv(progname, (char * const *)args); --- > execve(progname, (char * const *)args, (char * const *)env); Thanks. --------------------------------------------------------------------- To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org For additional commands, e-mail: bugs-help@httpd.apache.org