Re: [PHP-DEV] Re: Really odd PHP problem... different platform

2004-09-10 Thread Dietrich Ayala
Looks like Dr Watson won't help our specific problem: "Dr. Watson cannot create a snapshot if the program does not respond (hangs)." From "How to Troubleshoot Program Faults with Dr. Watson": http://support.microsoft.com/default.aspx?scid=kb;en-us;q275481 However, we do experience php.exe crashes

Re: [PHP-DEV] Re: Really odd PHP problem... different platform

2004-09-10 Thread Daniel Convissor
On Fri, Sep 10, 2004 at 09:28:04AM +0200, Derick Rethans wrote: > > Can you perhaps wrap up instructions al la "how to generate a backtrace" > for unix with those tools? That would be much appreciated. Uh, while I'd be glad to, I don't know how to. Last night I bumpped into Sysinternal's DebugVi

Re: [PHP-DEV] Re: Really odd PHP problem... different platform

2004-09-10 Thread Nuno Lopes
We need to: - provide a debug build with symbols (could be generated daily to reduce load on Edin's snap box) This would great! (I had already suggested that). I don't have the MS compiler, just cygwin, and sometimes I get an error with the snap binnary and then I can't reproduce it with the cygw

Re: [PHP-DEV] Re: Really odd PHP problem... different platform

2004-09-10 Thread Wez Furlong
We need to: - provide a debug build with symbols (could be generated daily to reduce load on Edin's snap box) - find out exactly how to get Dr. Watson (or whatever) to drop dumps for applications - otherwise suggest that they install a debugger. Installing dev tools under win tends to destabilize t

Re: [PHP-DEV] Re: Really odd PHP problem... different platform

2004-09-10 Thread Derick Rethans
On Thu, 9 Sep 2004, Daniel Convissor wrote: > On Thu, Sep 09, 2004 at 07:10:51PM +0100, Wez Furlong wrote: > > Hope that helps (and if you find out about the minidump thing, > > please share the knowledge ;-) > > This may be of assistance... Can you perhaps wrap up instructions al la "how to

Re: [PHP-DEV] Re: Really odd PHP problem... different platform

2004-09-09 Thread Wez Furlong
The .pdb files contain the debugging info; they should be generated as part of the debug build. Dans tips on reading the minidump are handy, but don't tell you how to get hold of one for an application crash--they cover only a kernel crash (BSOD). You'll need to do some googling to try and find

Re: [PHP-DEV] Re: Really odd PHP problem... different platform

2004-09-09 Thread Dietrich Ayala
excellent tips, thx dan and wez. do i need to do add any special options to the debug build configuration to generate the debug symbols? also, what is the release_tsdbg build configuration? a release build w/ debug symbols? i'll check out the minidump idea. that'd be ideal, as the client is rem

Re: [PHP-DEV] Re: Really odd PHP problem... different platform

2004-09-09 Thread Daniel Convissor
On Thu, Sep 09, 2004 at 07:10:51PM +0100, Wez Furlong wrote: > Hope that helps (and if you find out about the minidump thing, > please share the knowledge ;-) This may be of assistance... Get the Windows Debugger: http://www.microsoft.com/ddk/debugging/ Here's a tip sheet on the process:

Re: [PHP-DEV] Re: Really odd PHP problem... different platform

2004-09-09 Thread Wez Furlong
I'd recommend the Microsoft "Debugging Tools for Windows" to be able to do very similar things to gdb under windows; it's free, not as bloated as VC++/VS.Net IDE debugger and comes in console and GUI flavours. Caveat emptor: - you need to understand how to debug - you want a debug build of php wit

Re: [PHP-DEV] Re: Really odd PHP problem

2004-09-08 Thread Andi Gutmans
At 01:05 PM 9/8/2004 +0200, Derick Rethans wrote: On Wed, 8 Sep 2004, Joe Orton wrote: > > Didn't Joe mean that it's wrong on Linux/x86_64 or am I misinterpreting his > > email? > > Yup I did mean that. Linux/x86_64 is an example of a platform where you > cannot put non-PIC code into a shared obj

Re: [PHP-DEV] Re: Really odd PHP problem

2004-09-08 Thread Sascha Schumann
On Wed, 8 Sep 2004, Joe Orton wrote: On Wed, Sep 08, 2004 at 01:05:37PM +0200, Derick Rethans wrote: On Wed, 8 Sep 2004, Joe Orton wrote: Didn't Joe mean that it's wrong on Linux/x86_64 or am I misinterpreting his email? Yup I did mean that. Linux/x86_64 is an example of a platform where you canno

Re: [PHP-DEV] Re: Really odd PHP problem

2004-09-08 Thread Joe Orton
On Wed, Sep 08, 2004 at 01:05:37PM +0200, Derick Rethans wrote: > On Wed, 8 Sep 2004, Joe Orton wrote: > > > > Didn't Joe mean that it's wrong on Linux/x86_64 or am I misinterpreting his > > > email? > > > > Yup I did mean that. Linux/x86_64 is an example of a platform where you > > cannot put no

Re: [PHP-DEV] Re: Really odd PHP problem

2004-09-08 Thread Derick Rethans
On Wed, 8 Sep 2004, Joe Orton wrote: > > Didn't Joe mean that it's wrong on Linux/x86_64 or am I misinterpreting his > > email? > > Yup I did mean that. Linux/x86_64 is an example of a platform where you > cannot put non-PIC code into a shared object. libtool does honour > -prefer-non-pic on thi

Re: [PHP-DEV] Re: Really odd PHP problem

2004-09-08 Thread Joe Orton
On Tue, Sep 07, 2004 at 11:34:50AM -0700, Andi Gutmans wrote: > At 10:04 AM 9/6/2004 -0700, Rasmus Lerdorf wrote: > >On Mon, 6 Sep 2004, Joe Orton wrote: > > > >> On Sun, Sep 05, 2004 at 04:41:44PM -0700, Rasmus Lerdorf wrote: > >> > On Sun, 5 Sep 2004, Andi Gutmans wrote: > >> > > Yeah I know non-

Re: [PHP-DEV] Re: Really odd PHP problem

2004-09-08 Thread Russ Garrett
Rasmus Lerdorf wrote: On Tue, 7 Sep 2004, Russ Garrett wrote: Anyhow, the whole backtrace is here, I'd be interested to see what you think: http://static.last.fm/phpbug/bt.txt Are you sure this happens with Apache1 as well? I see you are running the prefork mpm, but you are still linking against

Re: [PHP-DEV] Re: Really odd PHP problem... different platform

2004-09-07 Thread Dietrich Ayala
A large telco client of ours is having problems that match Russ' problem almost exactly... except on Win2k. Does anyone have pointers to *windows* tools to achieve the kind of debugging/tracing described below? Rasmus Lerdorf wrote: On Tue, 7 Sep 2004, Russ Garrett wrote: I can watch them for h

Re: [PHP-DEV] Re: Really odd PHP problem

2004-09-07 Thread Andi Gutmans
At 10:04 AM 9/6/2004 -0700, Rasmus Lerdorf wrote: On Mon, 6 Sep 2004, Joe Orton wrote: > On Sun, Sep 05, 2004 at 04:41:44PM -0700, Rasmus Lerdorf wrote: > > On Sun, 5 Sep 2004, Andi Gutmans wrote: > > > Yeah I know non-pic doesn't work on all platforms but I gathered that > > > -prefer-non-pic only

Re: [PHP-DEV] Re: Really odd PHP problem

2004-09-07 Thread Rasmus Lerdorf
On Tue, 7 Sep 2004, Russ Garrett wrote: > Anyhow, the whole backtrace is here, I'd be interested to see what you > think: > > http://static.last.fm/phpbug/bt.txt Are you sure this happens with Apache1 as well? I see you are running the prefork mpm, but you are still linking against libpthread whi

Re: [PHP-DEV] Re: Really odd PHP problem

2004-09-07 Thread Russ Garrett
Rasmus Lerdorf wrote: On Tue, 7 Sep 2004, Russ Garrett wrote: I can watch them for hours in the apache mod_status view, and they'll show the same last request. They won't respond to a kill -15, I have to kill -9 them. Strace reports they're doing absolutely nothing. Could you use 'gcore' to drop a

Re: [PHP-DEV] Re: Really odd PHP problem

2004-09-07 Thread Rasmus Lerdorf
On Tue, 7 Sep 2004, Russ Garrett wrote: > I can watch them for hours in the apache mod_status view, and they'll > show the same last request. They won't respond to a kill -15, I have to > kill -9 them. Strace reports they're doing absolutely nothing. Could you use 'gcore' to drop a core from one o

Re: [PHP-DEV] Re: Really odd PHP problem

2004-09-07 Thread Russ Garrett
Zeev Suraski wrote: Is there anything consistent about these failed checksums? Do they occur in a specific file or a set of certain files? This is interesting -- there *is* definitely a consistency, it always happens in one of three files. One is 8k lines long (the main file from the jpgraph su

Re: [PHP-DEV] Re: Really odd PHP problem

2004-09-06 Thread Zeev Suraski
At 22:12 06/09/2004, Russ Garrett wrote: OK, the situation seems a lot more stable with Zend Accelerator instead of mmcache, and we're regularly getting quite a few "checksum failed" errors in the logs, which does tend to indicate that shared memory corruption was (and still is) happening. But n

Re: [PHP-DEV] Re: Really odd PHP problem

2004-09-06 Thread Rasmus Lerdorf
You are going to have to narrow this down further for us to have any chance to help you. Put your stuff on a development server and hit your various pages looking for that error or the request that causes your httpd to grow to 200M (use Apache1, not Apache2 for this). Or if all else fails replay

Re: [PHP-DEV] Re: Really odd PHP problem

2004-09-06 Thread Russ Garrett
OK, the situation seems a lot more stable with Zend Accelerator instead of mmcache, and we're regularly getting quite a few "checksum failed" errors in the logs, which does tend to indicate that shared memory corruption was (and still is) happening. But now I don't have to restart the damn thin

Re: [PHP-DEV] Re: Really odd PHP problem

2004-09-06 Thread Rasmus Lerdorf
On Mon, 6 Sep 2004, Joe Orton wrote: > On Sun, Sep 05, 2004 at 04:41:44PM -0700, Rasmus Lerdorf wrote: > > On Sun, 5 Sep 2004, Andi Gutmans wrote: > > > Yeah I know non-pic doesn't work on all platforms but I gathered that > > > -prefer-non-pic only uses PIC on platforms where non-PIC dso's aren't

Re: [PHP-DEV] Re: Really odd PHP problem

2004-09-06 Thread Joe Orton
On Sun, Sep 05, 2004 at 04:41:44PM -0700, Rasmus Lerdorf wrote: > On Sun, 5 Sep 2004, Andi Gutmans wrote: > > Yeah I know non-pic doesn't work on all platforms but I gathered that > > -prefer-non-pic only uses PIC on platforms where non-PIC dso's aren't > > supported. I guess I'm wrong and we do ne

Re: [PHP-DEV] Re: Really odd PHP problem

2004-09-05 Thread Rasmus Lerdorf
On Sun, 5 Sep 2004, Andi Gutmans wrote: > Yeah I know non-pic doesn't work on all platforms but I gathered that > -prefer-non-pic only uses PIC on platforms where non-PIC dso's aren't > supported. I guess I'm wrong and we do need better autoconf checks. I am not sure what -prefer-non-pic does on a

Re: [PHP-DEV] Re: Really odd PHP problem

2004-09-05 Thread Andi Gutmans
At 04:25 PM 9/5/2004 -0700, Rasmus Lerdorf wrote: On Sun, 5 Sep 2004, Andi Gutmans wrote: > At 03:13 PM 9/5/2004 -0700, Rasmus Lerdorf wrote: > >On Sun, 5 Sep 2004, Russ Garrett wrote: > > > APC doesn't seem to work at all as a DSO, I'll try it statically later. > > > >I run it on thousands of serv

Re: [PHP-DEV] Re: Really odd PHP problem

2004-09-05 Thread Rasmus Lerdorf
On Sun, 5 Sep 2004, Andi Gutmans wrote: > At 03:13 PM 9/5/2004 -0700, Rasmus Lerdorf wrote: > >On Sun, 5 Sep 2004, Russ Garrett wrote: > > > APC doesn't seem to work at all as a DSO, I'll try it statically later. > > > >I run it on thousands of servers as a DSO. What are you seeing that would > >m

Re: [PHP-DEV] Re: Really odd PHP problem

2004-09-05 Thread Andi Gutmans
At 03:13 PM 9/5/2004 -0700, Rasmus Lerdorf wrote: On Sun, 5 Sep 2004, Russ Garrett wrote: > APC doesn't seem to work at all as a DSO, I'll try it statically later. I run it on thousands of servers as a DSO. What are you seeing that would make you think this? Also, if you are running PHP as a DSO a

Re: [PHP-DEV] Re: Really odd PHP problem

2004-09-05 Thread Russ Garrett
Rasmus Lerdorf wrote: On Sun, 5 Sep 2004, Russ Garrett wrote: APC doesn't seem to work at all as a DSO, I'll try it statically later. I run it on thousands of servers as a DSO. What are you seeing that would make you think this? I didn't really want to hang around with the site offline to find ou

Re: [PHP-DEV] Re: Really odd PHP problem

2004-09-05 Thread Rasmus Lerdorf
On Sun, 5 Sep 2004, Russ Garrett wrote: > APC doesn't seem to work at all as a DSO, I'll try it statically later. I run it on thousands of servers as a DSO. What are you seeing that would make you think this? Also, if you are running PHP as a DSO and pushing your CPU you might want to compile it