Bug #1602
closedLigHTTPD 1.4.19 freezes FreeBSD
Description
When uploading files(php script) with size greater than 1MB, lighttpd freezes a freebsd box (i tested it only in my FreeBSD 7.0 STABLE).
Files with size lesser than 1mb are uploaded without problems.
-- todesskrahe
Files
Updated by Anonymous over 16 years ago
I got this error again today, but with a 80kb file.
Only very very tiny files doesn't crash my freebsd box =[.
-- todesskrahe
Updated by Anonymous over 16 years ago
I have experiences this several times as well
-- mgb
Updated by Anonymous over 16 years ago
I thought I should supply a bit more info
~> lighttpd -V
lighttpd-1.4.19 (ssl) - a light and fast webserver
Build-Date: Apr 5 2008 02:24:25
Event Handlers:
+ select (generic)
+ poll (Unix)
- rt-signals (Linux 2.4+)
- epoll (Linux 2.6)
- /dev/poll (Solaris)
+ kqueue (FreeBSD)
Network handler:
+ sendfile
Features:
- IPv6 support
+ zlib support
+ bzip2 support
+ crypt support
+ SSL Support
+ PCRE support
- mySQL support
- LDAP support
- memcached support
- FAM support
+ LUA support
- xml support
- SQLite support
+ GDBM suppor
I have only tested this through https( I had to disable the feature before I could do extensive testing) do to users taking down the system with their fileuploads.
If more info is needed or I can do anything to help you can contact me by email.
-- mortengb
Updated by admin over 16 years ago
Does the entire operating system crash?
If so, have you reported this to FreeBSD?
Could you post the link to that bug report?
Updated by Anonymous over 16 years ago
I am having the same problem on a FreeBSD 7.0-STABLE box.
Updated by Anonymous over 16 years ago
Replying to Olaf van der Spek:
Does the entire operating system crash?
If so, have you reported this to FreeBSD?
Could you post the link to that bug report?
- No I have not made a bug report.
The system becomes unresponsive (http|ssh(new and current sessions))
I can however still ping the machine.
I am sitting remotely and can only cut the power to make it reboot.
The freeze will happen even if uploads is disabled in php. Though I have not been able to reproduce the problem when posting a fileupload to a static html file.
I have made struss and strace outputs. but to me they are just nonsens :)
I will try to attach the strace file as it seems to have a peculiar ending.
-- mortengb
Updated by Anonymous over 16 years ago
For my, lighttpd never crashed/hanged my FreeBSD 6.3 server. I had to change
server.network-backend = "write"
so that POSTs work up to 50MB (haven't tested the maximum). Otherwise they would simply get stuck after uploading some 100kB. I'm using perl though, not php.
-- uspoerlein
Updated by Anonymous over 16 years ago
Replying to uspoerlein@gmail.com:
server.network-backend = "write"
I have now had this setting for two days without a lockup/crash.
It seems to have done the trick.
I will keep a close eye on the system for a few days then report back.
Thanks.
-- mgb
Updated by stbuehler over 16 years ago
- Status changed from New to Fixed
- Resolution set to invalid
If your system crashes you should report the bug for you system, not the userspace software - i don't see what we could do to fix this.
Updated by Anonymous about 16 years ago
I have the same problem, with same results:
server pingable, ssh and web-server down.
nmap show port 22 and 80 open
-- chris
Updated by Anonymous about 16 years ago
I found out the server had been upgraded from FBSD6 to FBSD7.
I tried reinstalling all ports suspecting some library weirdness.
When it didn't help I reinstalled the hole OS (Wintendo style fix,
but a fix non the less).
-- mortengb
Updated by init almost 15 years ago
This was in fact a FreeBSD bug (http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/138999) and was fixed upstream (FreeBSD svn r198853 in HEAD, and merged to RELENG_8 in FreeBSD svn r199356; and RELENG_7 in FreeBSD svn r199358).
Also available in: Atom