Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21438 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95671 invoked by uid 1010); 7 Jan 2006 00:26:32 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 95656 invoked from network); 7 Jan 2006 00:26:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Jan 2006 00:26:32 -0000 X-Host-Fingerprint: 17.250.248.72 smtpout.mac.com FreeBSD 4.8-5.1 (or MacOS X 10.2-10.3) Received: from ([17.250.248.72:49757] helo=smtpout.mac.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 3D/14-06465-6BA0FB34 for ; Fri, 06 Jan 2006 19:26:31 -0500 Received: from mac.com (smtpin08-en2 [10.13.10.153]) by smtpout.mac.com (Xserve/8.12.11/smtpout15/MantshX 4.0) with ESMTP id k070QQOn015872; Fri, 6 Jan 2006 16:26:26 -0800 (PST) Received: from [10.0.1.104] (c-24-98-128-251.hsd1.ga.comcast.net [24.98.128.251]) (authenticated bits=0) by mac.com (Xserve/smtpin08/MantshX 4.0) with ESMTP id k070QOPX016679; Fri, 6 Jan 2006 16:26:25 -0800 (PST) In-Reply-To: <43BD14B4.3070705@iamjochem.com> References: <43BA6FD4.4010103@iamjochem.com> <43BAA937.2000702@lerdorf.com> <43BD14B4.3070705@iamjochem.com> Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-ID: <66A5717D-C235-4ED8-A99E-BF808894D31C@mac.com> Cc: Rasmus Lerdorf , php internals Content-Transfer-Encoding: 7bit Date: Fri, 6 Jan 2006 19:26:23 -0500 To: Jochem Maas X-Mailer: Apple Mail (2.746.2) Subject: Re: [PHP-DEV] debugging APC - bit over my head; clue desired From: apinstein@mac.com (Alan Pinstein) Yes, I'd be interested in this, too. I filed a bug report for a segfault under similar conditions and I'd be happy to help find the bug if I had any idea how to help... Alan On Jan 5, 2006, at 7:44 AM, Jochem Maas wrote: > Rasmus, > > I have a quick question which if you are able to > give an answer to will hopefully help to (finally) > create a repro. script for the afore mentioned apc segfault. > > I am 99.9% sure that the apc opcode cache is not likely some/one > of my classes. but that leaves 194 odd files to check (upto 200,000 > lines of code) and I have no idea where to begin. so the question is > do you know of any class related syntax (or whatever) that is _likely_ > to be causing the segfaulting? > > a hint about the most likely place to start looking (e.g. > inheritance, interface implementation, method visibility, etc) > would be very welcome. of course I can understand if you felt that > there was no one 'thing' more likely to be the culprit than another. > > kind rgds, > Jochem > > > Rasmus Lerdorf wrote: >> Jochem Maas wrote: >>> a while back I was asking about APC - I have a problem with php >>> seghfaulting when I use APC _and_ turn on the opcode cache >>> (apc_store() >>> and apc_fetch() work very well - I'm sticking _lots_ of >>> 'ResultSet' objects >>> in there for instance and it works very nicely) >> Note that caching arrays is way faster than caching objects, so if >> at all possible, convert your ResultSet object to an associative >> array before storing it. >> To fix your segfault I'll need a short PHP script that reproduces >> the problem. On one hand I bet an >> script doesn't crash it, and on the other you have whatever code >> you are running that does. Step up from Hello World slowly until >> it starts crashing and send me that. > > > >> -Rasmus > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >