public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/29544] New: Regression in syslog(3) calls breaks RFC due to extra whitespace
@ 2022-09-02 21:45 reg.glibc.8bngd at fraggod dot net
2022-09-02 21:46 ` [Bug libc/29544] " reg.glibc.8bngd at fraggod dot net
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: reg.glibc.8bngd at fraggod dot net @ 2022-09-02 21:45 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=29544
Bug ID: 29544
Summary: Regression in syslog(3) calls breaks RFC due to extra
whitespace
Product: glibc
Version: 2.36
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: reg.glibc.8bngd at fraggod dot net
CC: drepper.fsp at gmail dot com
Target Milestone: ---
Updating glibc from 2.35 to 2.36 introduced extra whitespace character into
messages formatted and sent through syslog()/vsyslog() calls, which seem to
break RFC and at least one common syslogd implementation (rsyslog).
For example, given following code in syslog.c file:
#include <syslog.h>
int main(int argc, char **argv) {
openlog("test", LOG_PID, LOG_LOCAL0);
syslog(LOG_ERR, "test");
return 0;
}
And then running it like this:
gcc -o syslog syslog.c && strace -e sendto ./syslog
Should produce the following line (expected behavior, RFC, glibc-2.35):
sendto(3, "<131>Sep 3 02:32:14 test[81843"...
But instead, it produces this line (actual behavior, glibc-2.36):
sendto(3, "<131>Sep 3 02:32:14 test[81843"...
Difference is a single whitespace character inserted after timestamp, which
breaks parser in e.g. rsyslog daemon, and was confirmed by its author to be
incorrect output, not conforming to RFC (in the comment here -
https://github.com/rsyslog/rsyslog/issues/4979#issuecomment-1235380700 ).
Behavior seem to be consistent between apps using syslog() and vsyslog() calls,
and seem to be a regression in glibc-2.36 release.
glibc-2.35 and earlier versions appear to be working correctly, producing
output without that extra space in an otherwise exactly same VM.
Given recent rewrite in misc/syslog.c here, guess it might be a simple bug that
managed to slip through the cracks.
Related bug reports (with some degree of initial misattribution on my part):
- rsyslog - https://github.com/rsyslog/rsyslog/issues/4979
- systemd - https://github.com/systemd/systemd/issues/24540
- Arch Linux - https://bugs.archlinux.org/task/75776
Thanks.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/29544] Regression in syslog(3) calls breaks RFC due to extra whitespace
2022-09-02 21:45 [Bug libc/29544] New: Regression in syslog(3) calls breaks RFC due to extra whitespace reg.glibc.8bngd at fraggod dot net
@ 2022-09-02 21:46 ` reg.glibc.8bngd at fraggod dot net
2022-09-05 12:32 ` adhemerval.zanella at linaro dot org
2022-09-05 12:47 ` adhemerval.zanella at linaro dot org
2 siblings, 0 replies; 4+ messages in thread
From: reg.glibc.8bngd at fraggod dot net @ 2022-09-02 21:46 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=29544
Mike Kazantsev <reg.glibc.8bngd at fraggod dot net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |reg.glibc.8bngd at fraggod dot net
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/29544] Regression in syslog(3) calls breaks RFC due to extra whitespace
2022-09-02 21:45 [Bug libc/29544] New: Regression in syslog(3) calls breaks RFC due to extra whitespace reg.glibc.8bngd at fraggod dot net
2022-09-02 21:46 ` [Bug libc/29544] " reg.glibc.8bngd at fraggod dot net
@ 2022-09-05 12:32 ` adhemerval.zanella at linaro dot org
2022-09-05 12:47 ` adhemerval.zanella at linaro dot org
2 siblings, 0 replies; 4+ messages in thread
From: adhemerval.zanella at linaro dot org @ 2022-09-05 12:32 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=29544
Adhemerval Zanella <adhemerval.zanella at linaro dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at sourceware dot org |adhemerval.zanella at linaro dot o
| |rg
Ever confirmed|0 |1
Status|UNCONFIRMED |ASSIGNED
CC| |adhemerval.zanella at linaro dot o
| |rg
Last reconfirmed| |2022-09-05
--- Comment #1 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
Confirmed, I will fix it and backport it to 2.36.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/29544] Regression in syslog(3) calls breaks RFC due to extra whitespace
2022-09-02 21:45 [Bug libc/29544] New: Regression in syslog(3) calls breaks RFC due to extra whitespace reg.glibc.8bngd at fraggod dot net
2022-09-02 21:46 ` [Bug libc/29544] " reg.glibc.8bngd at fraggod dot net
2022-09-05 12:32 ` adhemerval.zanella at linaro dot org
@ 2022-09-05 12:47 ` adhemerval.zanella at linaro dot org
2 siblings, 0 replies; 4+ messages in thread
From: adhemerval.zanella at linaro dot org @ 2022-09-05 12:47 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=29544
Adhemerval Zanella <adhemerval.zanella at linaro dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
Target Milestone|--- |2.37
--- Comment #2 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
Fixed on 2.37, I will backport to 2.36.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-09-05 12:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-02 21:45 [Bug libc/29544] New: Regression in syslog(3) calls breaks RFC due to extra whitespace reg.glibc.8bngd at fraggod dot net
2022-09-02 21:46 ` [Bug libc/29544] " reg.glibc.8bngd at fraggod dot net
2022-09-05 12:32 ` adhemerval.zanella at linaro dot org
2022-09-05 12:47 ` adhemerval.zanella at linaro dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).