Project

General

Profile

Actions

Bug #1852

closed

lighty does not generate core-file

Added by thomasb over 15 years ago. Updated about 8 years ago.

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

prctl.diff (468 Bytes) prctl.diff thomasb, 2008-12-18 11:01
Actions #1

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 #2

Updated by stbuehler about 8 years ago

  • Status changed from New to Invalid
Actions

Also available in: Atom