Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:17325 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32692 invoked by uid 1010); 19 Jul 2005 19:02:09 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 32677 invoked from network); 19 Jul 2005 19:02:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jul 2005 19:02:09 -0000 X-Host-Fingerprint: 64.233.184.206 wproxy.gmail.com Linux 2.4/2.6 Received: from ([64.233.184.206:40269] helo=wproxy.gmail.com) by pb1.pair.com (ecelerity 2.0 beta r(6227M)) with SMTP id 01/F0-61486-13E4DD24 for ; Tue, 19 Jul 2005 15:02:09 -0400 Received: by wproxy.gmail.com with SMTP id i22so1256015wra for ; Tue, 19 Jul 2005 12:02:07 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=ih3lr0u0z8ZwlTxfic1Cu8BAR69RChZgP1r/n0ux4nN33VTjRNbIS9ln7hMxT6Sj2SCxJWyzx49iNf1Oj6ifeUbuWRAkjqA7n3JOlkCjd9kdSY7bKXR4M+hitbt5vhA32XX1BuRslxWIfvxwYe1BbtXa+S0eFezytM63vHiV/gU= Received: by 10.54.50.62 with SMTP id x62mr842794wrx; Tue, 19 Jul 2005 12:01:12 -0700 (PDT) Received: by 10.54.153.5 with HTTP; Tue, 19 Jul 2005 12:01:12 -0700 (PDT) Message-ID: <4e89b426050719120115b14107@mail.gmail.com> Date: Tue, 19 Jul 2005 15:01:12 -0400 Reply-To: Wez Furlong To: PHPdev Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: segv attempting to call sapi_module.treat_data() From: kingwez@gmail.com (Wez Furlong) (gdb) bt #0 0x00000000 in ?? () #1 0x0127626f in php_hash_environment () at /data/wez/php-HEAD/main/php_variables.c:648 #2 0x0126a2ce in php_request_startup () at /data/wez/php-HEAD/main/main.c:= 1064 #3 0x01310e01 in php_apache_request_ctor (r=3D0x8fc8200, ctx=3D0x8fc9a20) at /data/wez/php-HEAD/sapi/apache2handler/sapi_apache2.c:438 #4 0x01311302 in php_handler (r=3D0x8fc8200) at /data/wez/php-HEAD/sapi/apache2handler/sapi_apache2.c:527 #5 0x0021e9f7 in ap_run_handler () from /usr/sbin/httpd php_hash_environment() is calling sapi_module.treat_data() without first verifying that it is set to something sane, leading to the crash. I've committed a fix, simply checking if treat_data is NULL before attempting to call it; this makes things work again for me. --Wez.