Bug 472875 - Using -m option results in 'select: Invalid argument' messages in the log
Summary: Using -m option results in 'select: Invalid argument' messages in the log
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: sysklogd
Version: 5.1
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Peter Vrabec
QA Contact: BaseOS QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-11-25 10:28 UTC by Tomas Smetana
Modified: 2018-10-27 14:33 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 625795 (view as bug list)
Environment:
Last Closed: 2010-03-30 08:15:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Proposed patch (849 bytes, patch)
2008-11-25 10:37 UTC, Tomas Smetana
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2010:0211 0 normal SHIPPED_LIVE sysklogd bug fix update 2010-03-29 12:29:55 UTC

Description Tomas Smetana 2008-11-25 10:28:29 UTC
Description of problem:
Using -m option with nonzero argument will result in the bogus error messages being logged.  This is caused by a bug in sysklogd:  the errno value of select is checked after it has been reset (from EINTR to EINVAL) by the functions that log the "MARK" message.

Version-Release number of selected component (if applicable):
sysklogd-1.4.1-44.el5

How reproducible:
always

Steps to Reproduce:
1. start 'syslogd -m 2 -r -d'
2. let it run for several minutes
3. look into /var/log/messages
  
Actual results:
Nov 25 09:00:18 localhost -- MARK --
Nov 25 09:00:18 localhost syslogd: select: Invalid argument
Nov 25 09:02:18 localhost -- MARK --
Nov 25 09:02:18 localhost syslogd: select: Invalid argument
Nov 25 09:04:18 localhost -- MARK --
Nov 25 09:04:18 localhost syslogd: select: Invalid argument
Nov 25 09:06:18 localhost -- MARK --

Expected results:
Nov 25 09:00:18 localhost -- MARK --
Nov 25 09:02:18 localhost -- MARK --
Nov 25 09:04:18 localhost -- MARK --
Nov 25 09:06:18 localhost -- MARK --

Comment 1 Tomas Smetana 2008-11-25 10:37:04 UTC
Created attachment 324585 [details]
Proposed patch

Avoids problem by storing the errno from select to the new variable.

Comment 3 RHEL Program Management 2009-03-26 17:13:39 UTC
This request was evaluated by Red Hat Product Management for
inclusion, but this component is not scheduled to be updated in
the current Red Hat Enterprise Linux release. If you would like
this request to be reviewed for the next minor release, ask your
support representative to set the next rhel-x.y flag to "?".

Comment 5 Peter Vrabec 2009-11-30 14:46:23 UTC
It seems the patch is not needed anymore. I couldn't reproduce this problem on RHEL5.4. I suspect that this issue was fixed by one of glibc updates.

Comment 6 Peter Vrabec 2009-11-30 14:50:32 UTC
I'm closing this bug report. If the problem persist, please reopen it.

Comment 17 errata-xmlrpc 2010-03-30 08:15:36 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2010-0211.html


Note You need to log in before you can comment on or make changes to this bug.