Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19127 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89202 invoked by uid 1010); 22 Sep 2005 14:38:55 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 89187 invoked from network); 22 Sep 2005 14:38:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Sep 2005 14:38:55 -0000 X-Host-Fingerprint: 204.11.219.139 lerdorf.com Linux 2.4/2.6 Received: from ([204.11.219.139:56649] helo=colo.lerdorf.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 14/83-24510-FF1C2334 for ; Thu, 22 Sep 2005 10:38:55 -0400 Received: from [192.168.200.106] (c-24-6-5-134.hsd1.ca.comcast.net [24.6.5.134]) (authenticated bits=0) by colo.lerdorf.com (8.13.4/8.13.4/Debian-4) with ESMTP id j8MEcptj016247 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 22 Sep 2005 07:38:52 -0700 Message-ID: <4332C1FB.4000504@lerdorf.com> Date: Thu, 22 Sep 2005 07:38:51 -0700 User-Agent: Mozilla Thunderbird 1.0.6 (Macintosh/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: David Olsson CC: internals@lists.php.net References: <48.C2.24510.A60C2334@pb1.pair.com> In-Reply-To: <48.C2.24510.A60C2334@pb1.pair.com> X-Enigmail-Version: 0.92.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Extension silently fails From: rasmus@lerdorf.com (Rasmus Lerdorf) David Olsson wrote: > Hello all! > > Not really sure if this is posted in the correct newsgroup. If not, > please just ignore my post... :-) > > Anyhow, I have a strange problem with a PHP extension I have written in > C++. It builds fine and it also runs fine when I use it with the PHP > CLI. When I use it from Apache 2, it simply fails with the following > error in the Apache error log: > > [Thu Sep 22 16:13:06 2005] [notice] child pid 4151 exit signal Aborted (6) > > Otherwise, PHP works fine with Apache 2. All I need to do is comment out > the lines which use functions in my extension. > > What could be the difference between running the PHP CLI and PHP as a > Apache 2 module? They both use the same php.ini file. Is there any way > of getting something more in the log from PHP? Run Apache under gdb and get a backtrace from that abort to see where that is happening. -Rasmus