Project

General

Profile

Actions

Bug #1284

closed

Syslog does not work with CLOG disabled

Added by Vinícius Coque about 13 years ago. Updated about 11 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
02/15/2011
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
Affected Architecture:

Description

I put the tag disablesyslogclog on my config.xml to disable clog, since I have free disk space and want to keep all log history.
After rebooting the system the log files were created, but they have no data. Then I realized that syslogd was not running, it was returning the following error:

syslogd: child pid 34576 exited on signal 11


Files

pfsense_syslog.diff (1.73 KB) pfsense_syslog.diff Vinícius Coque, 02/17/2011 01:05 PM
Actions #1

Updated by Vinícius Coque about 13 years ago

Maybe I found the problem.

On system boot, it checks if disablesyslogclog tag exists on config.xml, then create regular files for logs. But the PHP function system_syslogd_start() isn't checking if disablesyslogclog is set and aways set clog of fifolog on syslog.conf. When syslogd open a regular log file and tries to read it as a clog or fifolog file occurs a segmentation fault.

I think the patch attached can solve this.

Actions #2

Updated by Jim Pingle about 11 years ago

  • Assignee set to Jim Pingle
  • Target version set to 2.1
Actions #3

Updated by Ermal Luçi about 11 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100
Actions #4

Updated by Chris Buechler about 11 years ago

  • Status changed from Feedback to Resolved

works

Actions

Also available in: Atom PDF