ID: 42389
User updated by: webmaster at machostlink dot net
Reported By: webmaster at machostlink dot net
-Status: Feedback
+Status: Open
Bug Type: CGI related
Operating System: OSX 10.4.10
PHP Version: 5.2CVS-2007-08-23
New Comment:
(gdb) bt
#0 0x9001029c in write ()
#1 0x001c92a9 in OS_Write (fd=5, buf=0x200da00 "\001\006", len=608) at
/usr/local/php/sapi/cgi/libfcgi/os_unix.c:488
#2 0x001c741d in write_it_all (fd=5, buf=0x200da00 "\001\006",
len=608) at /usr/local/php/sapi/cgi/libfcgi/fcgiapp.c:1393
#3 0x001c7573 in EmptyBuffProc (stream=0x19743c0, doClose=1) at
/usr/local/php/sapi/cgi/libfcgi/fcgiapp.c:1444
#4 0x001c6b13 in FCGX_FClose (stream=0x19743c0) at
/usr/local/php/sapi/cgi/libfcgi/fcgiapp.c:918
#5 0x001c8306 in FCGX_Finish_r (reqDataPtr=0xbffffc74) at
/usr/local/php/sapi/cgi/libfcgi/fcgiapp.c:2042
#6 0x001c85c5 in FCGX_Accept_r (reqDataPtr=0xbffffc74) at
/usr/local/php/sapi/cgi/libfcgi/fcgiapp.c:2217
#7 0x001cd2df in main (argc=1, argv=0xbffffdc8) at
/usr/local/php/sapi/cgi/cgi_main.c:1311
Previous Comments:
------------------------------------------------------------------------
[2007-08-24 10:56:34] [EMAIL PROTECTED]
And that's where you do 'bt'..but I'd try few times first to see it's
always the same..
------------------------------------------------------------------------
[2007-08-24 10:51:11] webmaster at machostlink dot net
Ahh.. ok no I get:
Continuing.
Program received signal SIGPIPE, Broken pipe.
0x9001029c in write ()
------------------------------------------------------------------------
[2007-08-24 10:47:56] [EMAIL PROTECTED]
After attaching you say 'c' to continue processing. And then go access
the webpage causing problems.
------------------------------------------------------------------------
[2007-08-24 10:32:35] webmaster at machostlink dot net
Sorry, this: ns1:/usr/bin root# gdb ./php4-cgi 5379
...should have been: ns1:/usr/bin root# gdb ./php5-cgi 5379
copied it wrong and was trying php4 as well but same thing...
------------------------------------------------------------------------
[2007-08-24 10:30:07] webmaster at machostlink dot net
jani,
here is the output of Gdb (Apache was just started and after loading a
executing a php page in the browser it spawns first child with PID
5379):
ns1:/usr/bin root# gdb ./php4-cgi 5379
...Reading symbols for shared libraries .................... done
Attaching to program: `/usr/bin/php5-cgi', process 5379.
Reading symbols for shared libraries
.+.++........................................++++++...+++++. done
0x9004eb97 in accept ()
But then after submit nothing happens!? And if I get info...
(gdb) info threads
* 1 process 5379 thread 0x417 0x9004eb97 in accept ()
Nothing? Or do I have to do anything else but starting gdb? Sorry not
to familiar with gdb yet...
The process is not getting killed because its locked by gdb but I still
get "500 error". :( Could you walk me thru debugging this please? I
guess I do something wrong here...
Thanks
Tony
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/42389
--
Edit this bug report at http://bugs.php.net/?id=42389&edit=1