Skip to content
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

syslog-ng can crash with new ivykis (0.42) after reload #1672

Closed
furiel opened this issue Sep 14, 2017 · 3 comments
Closed

syslog-ng can crash with new ivykis (0.42) after reload #1672

furiel opened this issue Sep 14, 2017 · 3 comments
Labels

Comments

@furiel
Copy link
Collaborator

furiel commented Sep 14, 2017

Example configuration:

@version: 3.11
@include "scl.conf"

source s_local {
};

source s_network {
       tcp(port(10514));
};

destination d_local {
	file("/tmp/bbb");
};

log {
	source(s_network);
	destination(d_local);
};

After reload syslog-ng can crash.
One can reproduce by continous reloading, and sending messages with syslog-ng. Idle syslog-ng does not trigger the crash. I tried with tcp source and system source as well, the crash happend in both cases. The root cause might be source independent.

while true; do ./syslog-ng-ctl reload; done;
../bin/loggen -P -s 145 -I 120 -r 10000 localhost 10514 --active-connections=10

The backtrace:

(gdb) bt
#0  0x00007ffd74d6c4c0 in ?? ()
#1  0x00007fcc9875567a in __iv_event_run_pending_events (_st=0x7023e0) at ../../../../syslog-ng/lib/ivykis/src/iv_event.c:56
#2  0x00007fcc9875578b in iv_event_run_pending_events () at ../../../../syslog-ng/lib/ivykis/src/iv_event.c:88
#3  0x00007fcc9875c227 in iv_fd_epoll_timerfd_poll (st=0x7023e0, active=0x7ffd74d6c670, abs=0x0)
    at ../../../../syslog-ng/lib/ivykis/src/iv_fd_epoll.c:484
#4  0x00007fcc987582ec in iv_fd_poll_and_run (st=0x7023e0, abs=0x73ccd8) at ../../../../syslog-ng/lib/ivykis/src/iv_fd.c:202
#5  0x00007fcc98759773 in iv_main () at ../../../../syslog-ng/lib/ivykis/src/iv_main_posix.c:112
#6  0x00007fcc9870501f in main_loop_run (self=0x7fcc989a5d00 <main_loop>) at ../syslog-ng/lib/mainloop.c:531
#7  0x0000000000401de4 in main (argc=1, argv=0x7ffd74d6c838) at ../syslog-ng/syslog-ng/main.c:303
(gdb) 

If I revert ivykis to the version that was used in syslog-ng previously: ec9066dcc66b33e37, the crash does not occur.

@bazsi
Copy link
Collaborator

bazsi commented Sep 14, 2017 via email

@MrAnno MrAnno added the bug label Sep 16, 2017
@furiel
Copy link
Collaborator Author

furiel commented Sep 18, 2017

I'm afraid this will be another issue. That issue was fixed in 580ea0f50c9ea1c537398bed1b1e3a861440c97f, and this patch is included in 0.42.
I tried with ivykis master as well: (0.42.1) as of current, but the problem still persist. I will try bisecting, and see if it gives us a hint.

@furiel
Copy link
Collaborator Author

furiel commented Sep 19, 2017

The bisect led to a commit in the code ivykis. I opened an issue to continue the investigation.
buytenh/ivykis#13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants