Bug 576225 - cron -s sends malformed/truncated output to syslog
Summary: cron -s sends malformed/truncated output to syslog
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: rsyslog
Version: 13
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Tomas Heinrich
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-23 15:02 UTC by Will Woods
Modified: 2016-09-20 04:49 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-06-03 07:12:39 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Will Woods 2010-03-23 15:02:37 UTC
When using the new '-s' (syslog) flag with cron from cronie-1.4.4, under certain (unknown) conditions it may send malformed output to stdout. 

This was originally reported in bug 548843:

"These patches looks ok, but there is still problem with 'echoing' text into
rsyslog. After every echo is print out incorrect text. This might be a problem
of utf-8 in rsyslog.

Jan  5 17:04:01 caladan crond[4268]: (marca) RELOAD (/var/spool/cron/marca)
Jan  5 17:04:01 caladan CROND[4373]: (marca) CMD (touch /tmp/somefile)
Jan  5 17:04:01 caladan CROND[4374]: (marca) CMD (echo test)
Jan  5 17:04:01 caladan CROND[4374]: t�    

Testing srpm: http://mmaslano.fedorapeople.org/test/cronie-1.4.3-3.fc13.src.rpm

rsyslog-4.4.2-3

Reproducer: start crond with -s option and create simple command e.g.
crontab -e
* * * * * echo sometext

The output will be cut as in previous post. This might be a problem of rsyslog,
which can't handle it. CC'ing maintainer of rsyslog."

Comment 1 Marcela Mašláňová 2010-08-02 11:56:23 UTC
It's still reproducible. If it's given CRONDARGS="-s" in /etc/sysconfig/crond and crontable contain for example
* * * * * echo "ěščřžýá"
it will give only ???? on output.

I suppose rsyslog can't work with utf-8 well. Re-assign, could you look at it?

Comment 2 Bug Zapper 2011-06-02 16:00:08 UTC
This message is a reminder that Fedora 13 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 13.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '13'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 13's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 13 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 3 Marcela Mašláňová 2011-06-03 07:12:39 UTC
It was probably wrong setting of language.


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