Ticket #1216 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

lighty 1.4.13 crashes with accessing out of bound fd array index

Reported by: pyunyh@gmail.com Assigned to: jan
Priority: highest Milestone: 1.4.16
Component: core Version: 1.4.13
Severity: critical Keywords:
Cc: Blocking:
Need Feedback:

Description

When server.max-fds was set lower than system/process limits in lighttpd.conf it allocates that number of file descriptors to process evenets with various back-ends type. However if lighty get larger number of fds under high system load it will access the array without checking whether the index is valid or not. That results in segfault or voluntary abort() in fdevent_get_context().

It can be easily demonstrated with lower fd value, say "server.max-fds = 100", while maintaining large number of active connections. Sometimes lighty records "accept failed: Too many open files" in error log and ignore the excessive file descriptor but it's not enough as lightty tries to accept connections upto 100 in network_server_handle_fdevent().

Attachments

Change History

06/15/2007 03:30:53 PM changed by jan

  • status changed from new to closed.
  • resolution set to fixed.

might be fixed in [1873]


Add/Change #1216 (lighty 1.4.13 crashes with accessing out of bound fd array index)




Change Properties
Action