11958 Commits

Author SHA1 Message Date
Rainer Gerhards
11efe69aee
Merge pull request #2415 from jgerhards/errmsg-ruleset
ruleset: use new errmsg interface
2018-01-20 10:50:22 +01:00
Rainer Gerhards
33642b6faf maintain ChangeLog 2018-01-19 12:08:41 +01:00
Rainer Gerhards
82e30bf85f
Merge pull request #2413 from rgerhards/i2054
core: set TZ on startup if not already set
2018-01-19 12:04:51 +01:00
Jan Gerhards
764deee8b3 ruleset: use new errmsg interface
see also https://github.com/rsyslog/rsyslog/issues/1684
2018-01-19 11:44:46 +01:00
Rainer Gerhards
634c496fd3
Merge pull request #2414 from rgerhards/travis-cron
travis fix: cron job was not executed
2018-01-19 10:35:24 +01:00
Rainer Gerhards
d01ea7e2eb core: set TZ on startup if not already set
In theory, TZ should be set by the OS. Unfortuantely, this seems
to be not the case any longer on many Linux distros. We now check
it and set it appropriate if not already given.

closes https://github.com/rsyslog/rsyslog/issues/2054
2018-01-19 10:29:56 +01:00
Rainer Gerhards
9052f535fd travis fix: cron job was not executed 2018-01-19 08:58:30 +01:00
Rainer Gerhards
69089a8f53 maintain ChangeLog 2018-01-19 08:20:49 +01:00
Rainer Gerhards
9c69d0b0bb
Merge pull request #2410 from rgerhards/i2408
fix issues in external command line parser
2018-01-19 08:18:18 +01:00
Rainer Gerhards
73a22e91ce
Merge pull request #2411 from rgerhards/travis-osx-optional
travis: make OSx run optional
2018-01-18 18:17:30 +01:00
Rainer Gerhards
9529b7eadd travis: make OSx run optional
Travis currently has some real trouble with OSx. We make it optional
so that we can cancel out without affecting overall test result.
This helps both TravisCI as well as us.

We can (and should) roll this back once the Travis issues are solved.
2018-01-18 18:16:45 +01:00
Rainer Gerhards
43daca630e testbench: add test for external command line parser
via omprog, which uses it

see also https://github.com/rsyslog/rsyslog/issues/2408
2018-01-18 12:30:28 +01:00
Rainer Gerhards
79c5bb9896 core bugfix: small memory leak in external command parser
This parser is used whenever a module (e.g. omprog) needs to process
command lines. On each action definitions for actions that use the
parser a small amount of memory was leakd. It is an uncritical leak
as it only occurs during config parsing. So it leaks a couple of
KiB during startup but does not grow during actual message processing.

This is a regression in 8.32.0.
2018-01-18 12:30:22 +01:00
Rainer Gerhards
c999206dfd
Merge pull request #2409 from jgerhards/errmsg-strmsrv
Errmsg strmsrv
2018-01-18 11:48:57 +01:00
Rainer Gerhards
a3356e0062 core bugfix: misadressing in external command parser
This parser is used whenever a module (e.g. omprog) needs to process
command lines. If command parameters were given, memory misadressing
occured. This could lead to a segfault.

This is a regression in 8.32.0.

closes https://github.com/rsyslog/rsyslog/issues/2408
2018-01-18 11:31:10 +01:00
Rainer Gerhards
da3a8dc9b7 maintain ChangeLog 2018-01-18 10:56:21 +01:00
Rainer Gerhards
bcdce73362
Merge pull request #2402 from rgerhards/i2396-teste
improve testbench plumbing, new test
2018-01-18 10:54:43 +01:00
Jan Gerhards
c83afd3250 strmsrv: use new errmsg interface
see also https://github.com/rsyslog/rsyslog/issues/1684
2018-01-18 09:30:32 +01:00
Jan Gerhards
69e4515989 Merge remote-tracking branch 'official/master' 2018-01-18 09:28:35 +01:00
Rainer Gerhards
17d9d5727b
Merge pull request #2406 from rgerhards/travis-no-ubuntu-edge
travis: remove experimental build from build matrix
2018-01-18 08:13:34 +01:00
Rainer Gerhards
055fd97dda
Merge pull request #2407 from jgerhards/errmsg-datetime
datetime: use new errmsg interface
2018-01-18 08:13:02 +01:00
Jan Gerhards
1216952944 datetime: use new errmsg interface
see also https://github.com/rsyslog/rsyslog/issues/1684
2018-01-17 19:26:19 +01:00
Jan Gerhards
b1b6b20466 datetime: use new errmsg interface
see also https://github.com/rsyslog/rsyslog/issues/1684
2018-01-17 19:24:16 +01:00
Rainer Gerhards
8fead35a0d travis: remove experimental build from build matrix
We now know it does not work, and will not fix it immediately. So
running it is just a waste of ressource.

[skip ci] - no changes other than travis config
2018-01-17 18:41:59 +01:00
Rainer Gerhards
5ece105097
Merge pull request #2404 from rgerhards/2403-1
testbench: ensure we have the necessary commands to execute test
2018-01-17 17:28:23 +01:00
Rainer Gerhards
58fcfc4909 testbench: work-around racy tests
some omprog tests are racy as they depend on sleep calls to "synchoronize".
We have mostly been able to change this to more reliable synchronization.
A small window of raciness remains for some tests, but this seem to be
inevitable. Tests on fully loaded systems seem to incidate that we have
solved the issue sufficiently.

If that doesn't solve the sporadic failures, we need to further think about
how to handle this.

see also https://github.com/rsyslog/rsyslog/issues/2403
2018-01-17 15:53:49 +01:00
Rainer Gerhards
76ef7a58b2 testbench: ensure we have the necessary commands to execute test
this might have caused sporadic failures on platform where "lsof" was
missing.

see also https://github.com/rsyslog/rsyslog/issues/2403
2018-01-17 13:30:46 +01:00
Rainer Gerhards
00a18acefa testbench: add new test to check proper creation of jsonmesg property
see also https://github.com/rsyslog/rsyslog/issues/2396
2018-01-17 13:02:08 +01:00
Rainer Gerhards
3e058ba9ea testbench: fix/upgrade diag.sh framework
fixed some obvious copy&paste error, removed invalid verboseness and
added a standard way of doing grep checks on test result
2018-01-17 11:44:52 +01:00
Rainer Gerhards
abe327b08a core bugfix: string not properly terminated when RFC5424 MSGID is used
this can lead to misadressing when the jsonmesg property is used.

closes https://github.com/rsyslog/rsyslog/issues/2396
2018-01-17 11:05:14 +01:00
Rainer Gerhards
639234201f
Merge pull request #2398 from rgerhards/i2391
fix memory leak in parse_json()
2018-01-17 08:13:50 +01:00
Rainer Gerhards
a26e57e4e7
Merge pull request #2397 from rgerhards/travis2
Travis: further collapse build matrix
2018-01-17 08:11:40 +01:00
Rainer Gerhards
4595079e2e
Merge pull request #2400 from jgerhards/errmsg-dnscache
dnscache: use new errmsg interface
2018-01-17 08:11:24 +01:00
Jan Gerhards
ca4c5c1912 dnscache: use new errmsg interface
see also https://github.com/rsyslog/rsyslog/issues/1684
2018-01-16 18:57:30 +01:00
Rainer Gerhards
b06a48d6b5 Travis: further collapse build matrix 2018-01-16 13:04:47 +01:00
Rainer Gerhards
0b01af41ed testbench: add test for potential parse_json() memory leaks
see also https://github.com/rsyslog/rsyslog/issues/2391
2018-01-16 12:28:51 +01:00
Rainer Gerhards
cdc7271232 script bugfix: memory leak in parse_json() function
This is a bad memory leak, it grows with each function invocation.

closes https://github.com/rsyslog/rsyslog/issues/2391
2018-01-16 12:25:41 +01:00
Rainer Gerhards
387f051178 maintain ChangeLog 2018-01-16 09:21:37 +01:00
Rainer Gerhards
2dacb45236
Merge pull request #2393 from rgerhards/cid-185407
lookup: fix dead code (caused no harm)
2018-01-16 09:21:14 +01:00
Rainer Gerhards
f87498e1f1
Merge pull request #2385 from jsiwrk/feature/omprog_feedback_simple_test
omprog: added test for feedback feature (without using transactions)
2018-01-16 09:15:40 +01:00
Rainer Gerhards
0fabb7d462
Merge pull request #2394 from rgerhards/i2386
build system: remove spurios xOS_LINUX definition
2018-01-16 07:55:07 +01:00
Rainer Gerhards
7784576dee
Merge pull request #2392 from rgerhards/travis-combined-build-test
Travis: improve build matrix
2018-01-16 07:52:23 +01:00
Rainer Gerhards
c9d37ac6f7 build system: remove spurios xOS_LINUX definition
This was used nowhere. It most probably was a forgotten left-over
from an experiment.

closes https://github.com/rsyslog/rsyslog/issues/2386
2018-01-15 18:14:21 +01:00
Rainer Gerhards
fe3ecb26cd
Merge pull request #2390 from jgerhards/errmsg-tcps_sess
tcps_sess: use new ermsg interface
2018-01-15 18:11:34 +01:00
Rainer Gerhards
077d931547 fix compiler warning under alpine linux 2018-01-15 18:07:13 +01:00
Rainer Gerhards
89318b2dea travis: combine some build checks
... and do them via containers. This also reduces resource usage and
runtime on Travis a bit.
2018-01-15 18:07:06 +01:00
Rainer Gerhards
b6216c9246 lookup: fix dead code (caused no harm)
Detected by Coverity scan, CID 185407
2018-01-15 17:57:45 +01:00
Rainer Gerhards
8f6de66aa6
Merge pull request #2389 from rgerhards/travis-no-cron
travis: do not unnecessarily run checks under cron
2018-01-15 12:53:54 +01:00
Jan Gerhards
aefa89d3c0 tcps_sess: use new ermsg interface
see also https://github.com/rsyslog/rsyslog/issues/1684
2018-01-15 10:55:34 +01:00
Rainer Gerhards
a8426f507a travis: do not unnecessarily run checks under cron 2018-01-14 17:31:12 +01:00