Return-Path: Delivered-To: apmail-new-httpd-archive@apache.org Received: (qmail 70850 invoked by uid 500); 21 Feb 2001 01:49:32 -0000 Mailing-List: contact new-httpd-help@apache.org; run by ezmlm Precedence: bulk Reply-To: new-httpd@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list new-httpd@apache.org Received: (qmail 70839 invoked from network); 21 Feb 2001 01:49:31 -0000 From: Cliff Woolley To: new-httpd@apache.org MMDF-Warning: Parse error in original version of preceding line at mail.virginia.edu Subject: mod_userdir segfault (segfault type #3) Date: Tue, 20 Feb 2001 20:48:48 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Importance: Normal X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N httpd.core.6 is a segfault in mod_userdir: ------------------------------------- (gdb) frame 0 #0 get_suexec_id_doer (r=0x81df03c) at mod_userdir.c:383 383 ugid->uid = pw->pw_uid; ------------------------------------- I don't see how this function is NOT supposed to segfault, seeing as pw is *always* NULL: ------------------------------------- #ifdef HAVE_UNIX_SUEXEC static ap_unix_identity_t *get_suexec_id_doer(const request_rec *r) { const char *username = apr_table_get(r->notes, "mod_userdir_user"); struct passwd *pw = NULL; ap_unix_identity_t *ugid = NULL; if (username == NULL) { return NULL; } if ((ugid = apr_palloc(r->pool, sizeof(ap_unix_identity_t *))) == NULL) { return NULL; } ugid->uid = pw->pw_uid; ugid->gid = pw->pw_gid; return ugid; } #endif /* HAVE_UNIX_SUEXEC */ ------------------------------------- This problem seems to have been around ever since Manoj first checked in this function. Manoj? --Cliff --------------------------------------------------- Cliff Woolley cliffwoolley@yahoo.com 804-244-8615 Charlottesville, VA