Actions
Bug #1852
closedlighty does not generate core-file
Status:
Invalid
Priority:
Normal
Category:
core
Target version:
-
ASK QUESTIONS IN Forums:
Description
When server.username is set no core-file is generated when lighttpd crashes.
Verified on ubuntu7 and centos 5.2, even after setting
# ulimit -c unlimited # echo "/tmp/core" > /proc/sys/kernel/core_pattern
A fix for generating core-files when using setuid/setgid is to call
prctl(PR_SET_DUMPABLE, 1);
Files
Updated by gstrauss about 8 years ago
lighttpd 1.4.x has used prctl(PR_SET_DUMPABLE, 1, 0, 0, 0) since 2005. However, it is not enabled by default. You need to enable it in lighttpd.conf with:
server.core-files = "enable"
Please close ticket. I verified that when server.core-files = "enable", lighttpd (started as root and changing to user configured in server.username) produces a core when sent a QUIT signal.
Actions
Also available in: Atom