New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SIGABRT/SIGSEGV crash for 8.1903.0 possibly related to journald reloading #3537
Comments
@jvymazal could you have a look? This is the only commit since 8.1901.0: 920c28f#diff-b1ea6478b8060f07cd30ecde78bfdc49 Of course, it could also be a side-effect of some other change - among others different jounal libs on the distro. |
I will have a look, and try to verify once more the current free calls actually match allocations within journal (that is if the journal calls do the malloc()s per documented state, if they do not then I am afraid we are out of luck without help from someone from systemd people) |
My Linux debugging skills are bit, well, flaky and I'm (yet) too lazy to build rsyslogd from source with debug info, but please take a look at this:
P.S. Thanks for making rsyslogd. It's ability to easily ship everything everywhere without installing any extra software it's truly indispensable for us. |
I took a look at the diff mentioned here, and line 474 looks particularly suspicious. The I may be completely wrong =) |
You are definitely NOT completely wrong =) Actually you are very much correct, thank you for saving me some time with hunting this down, PR is already open so hopefully this will be resolved soon. |
closed via #3540 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Expected behavior
Should not crash when imjournal reloads.
Actual behavior
This is the output of journald logs:
Every time the
sd_journal_get_cursor()
fails and imjournal reloads journal the rsyslog process dies with either SIGABRT or SIGSEGV.The 8.1901.0 did not exhibit this issue:
Steps to reproduce the behavior
Install the 8.1903.0 and enable imjournal along with (probably, see trap above) enable JSON output (see configs below), then just wait till journald cursor "wraps" over.
The apt.log from the upgraded system:
Environment
These are the customized parts:
/etc/rsyslog.d/00-external.conf
:/etc/rsyslog.d/10-journald.conf
:The Ubuntu enabled-by-default
imklog
module is disabled, and the$MaxMessageSize
is set to64k
(but there are no records of such length in the journald journal).The text was updated successfully, but these errors were encountered: