12141 Commits

Author SHA1 Message Date
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
Rainer Gerhards
9fd114d476 maintain ChangeLog 2018-01-14 16:55:49 +01:00
Rainer Gerhards
5b20e4ccc1
Merge pull request #2388 from rgerhards/statan-container
add reproducible static analyzer builds
2018-01-14 16:55:00 +01:00
Rainer Gerhards
d4c6c5f468
Merge pull request #2377 from rgerhards/container-no-pidfile
core: do not write pid file by default if running as pid 1
2018-01-14 16:52:20 +01:00
Rainer Gerhards
815c2cd99f
Merge pull request #2387 from mbiebl/no-libcurl
build system: Don't link core against libcurl if explicitly requested
2018-01-14 16:50:48 +01:00
Rainer Gerhards
f530ba0045 maintain ChangeLog 2018-01-14 16:28:37 +01:00
Rainer Gerhards
1c619fb69d
Merge pull request #2381 from rgerhards/fix-alpine-warnings
fix build warning on Alpine Linux
2018-01-14 16:27:50 +01:00
Rainer Gerhards
b89466e105 Travis: run static analyzer via standard dev container
also some improvements to somewhat optimize the build matrix so
that we avoid unnecessary work.
2018-01-14 13:56:27 +01:00
Michael Biebl
50205ced0f build system: Don't link core against libcurl if explicitly requested
When using --disable-libcurl, libgrammar should not be linked against
libcurl unconditionally as CURL_LIBS might be set if one of the modules
using libcurl, like elasticsearch, is enabled.
2018-01-14 12:21:42 +01:00
Rainer Gerhards
0d1658d26f omkafka: fix build problem with old librdkafka 2018-01-14 11:00:26 +01:00
Rainer Gerhards
2fb499d5fe dev: add consistent development tools
most importantly provide a way to run the static analyzer consistently.
This is done via docker container.
2018-01-14 11:00:26 +01:00
Joan Sala
b6b0c54ebb omprog: added test for feedback feature (without using transactions) 2018-01-13 19:22:18 +01:00
Rainer Gerhards
5a2779b2d7
Merge pull request #2384 from rgerhards/travis-improve
Travis: check build on Alpine Linux and Ubunut rolling (via docker co…
2018-01-13 11:30:07 +01:00
Rainer Gerhards
aace167dab
Merge pull request #2379 from jgerhards/errmsg-modules
modules: use new errmsg interface
2018-01-12 18:09:46 +01:00
Rainer Gerhards
f356d9f399 Travis: check build on Alpine Linux and Ubunut rolling (via docker container) 2018-01-12 17:29:02 +01:00
Rainer Gerhards
d7aea382fa fix build warning on Alpine Linux
due to old-style header names -- now using the new ones, which are also
supported on the other platforms.
2018-01-12 13:15:55 +01:00
Rainer Gerhards
3e009ea42a maintain ChangeLog 2018-01-12 11:51:07 +01:00
Rainer Gerhards
a87de59f6d
Merge pull request #2341 from bayaro/master
doFuncReplace(): add tail of src if tail is partially similar to 'replaceWith'
2018-01-12 11:48:56 +01:00
Rainer Gerhards
52a3c870bf
Merge pull request #2378 from Whissi/fix-build-without-libcurl
Fix build without libcurl
2018-01-12 11:46:54 +01:00
Jan Gerhards
05582a24ca modules: use new errmsg interface
see also https://github.com/rsyslog/rsyslog/issues/1684
2018-01-12 09:47:11 +01:00
Thomas Deutschmann
468eeb79b8
tests: Run rscript_http_request.sh only when built with libcurl 2018-01-11 18:39:23 +01:00
Dan Molik
d9475f133e
Fix building with --disable-libcurl
Fixes: https://github.com/rsyslog/rsyslog/issues/2374
2018-01-11 18:39:16 +01:00