logo       

Crash with buggy FCGI: msg#00018

web.lighttpd

Subject: Crash with buggy FCGI

I've been running PHP as a fastcgi under Lighttpd, and I found a script
that crashes PHP unmercifully.

Lighttpd goes with it when it tries to free the fdevent fdnode for the
connection that never made it.

This fixes it for me:

--- fdevent.c~ 2004-08-03 03:11:59.000000000 -0600
+++ fdevent.c 2004-09-08 01:02:32.020938472 -0600
@@ -115,6 +115,7 @@
int fdevent_unregister(fdevents *ev, int fd) {
fdnode *fdn;
if (!ev) return 0;
+ if (fd == -1) return 0;
fdn = ev->fdarray[fd];

fdnode_free(fdn);




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise