8249 Commits

Author SHA1 Message Date
Tomas Heinrich
72e7eac21c Make llDestroy safe
Keep the destructed list in a consistent state as the provided
destructor may access the very same list again before llDestroy
finishes.

The previous approach could actually trigger a segmentation violation
error for specific scenarios and configurations.
In one particular case, destructing the list of rulesets lead to
shutdown of an action DA queue and spooling its messages to disk which
in turn triggered a search for the ruleset name of the message trought
the destructed list.

The change probably slightly degrades performace, but that shouldn't
have an observable effect in the current code base.
2015-04-03 20:30:51 +02:00
Rainer Gerhards
57bc975308 Merge remote-tracking branch 'github/master' 2015-03-31 17:51:08 +02:00
Rainer Gerhards
fbb71bd164 Merge pull request #283 from adruch/master
Fix field name for pszStrucData in MsgSerialize (Issue #264)
2015-03-30 15:59:16 +02:00
Rainer Gerhards
4d0e5e147c Merge pull request #278 from crackytsi/imtcp_address_bind_feature
added 'address' attribute for IP based bind to imtcp module
2015-03-30 15:09:17 +02:00
Rainer Gerhards
77857eb3b8 Merge pull request #285 from rgerhards/rger-imfile-fix-multiline
fix partial data loss in imfile
2015-03-30 12:37:28 +02:00
Rainer Gerhards
515b82df72 testbench: remove dumb testing aid
This lead to always-failing test for obvious reasons...
2015-03-30 11:55:44 +02:00
Rainer Gerhards
059658abe0 cleanup: remove debug file 2015-03-29 15:27:57 +02:00
Rainer Gerhards
53f4cf0368 Merge remote-tracking branch 'github/master-candidate' into master-candidate 2015-03-29 15:27:30 +02:00
Rainer Gerhards
0d98ad57e0 Merge pull request #287 from rgerhards/testbench-fix-racy-test
testbench: try to solve race by giving more time to settle
2015-03-29 15:28:06 +02:00
Rainer Gerhards
5065e2019d maintain ChangeLog
finally...
closes https://github.com/rsyslog/rsyslog/issues/144
2015-03-29 14:42:18 +02:00
Rainer Gerhards
f3983df1d9 fix regression from imfile fixes - never released code 2015-03-29 14:38:59 +02:00
Rainer Gerhards
e8e87d7b4e build system: fix cop&paste error 2015-03-29 14:38:59 +02:00
Rainer Gerhards
4380f88adf testbench: some cleanup 2015-03-29 14:38:59 +02:00
Rainer Gerhards
bdfb382eb1 testbench: changing license as agreed on by Radu
The original test was mine, so I can change the license and
Radu has agreed to ASL 2.0.

see also https://github.com/rsyslog/rsyslog/pull/275
2015-03-29 14:38:59 +02:00
Rainer Gerhards
6fa2a61667 testbench: add missing files
were forgotten two commits ago
2015-03-29 14:38:59 +02:00
Rainer Gerhards
dd546f82a5 imfile: proper handling of multiline messages after rsyslog restart
handling of persisted info (and polling loops) was not correct.

This needs some cleanup but I hope to find some folks for
independent testing before I declare victory.

see also https://github.com/rsyslog/rsyslog/issues/144
2015-03-29 14:38:59 +02:00
Rainer Gerhards
6e511e8e8b imfile: preliminary patch for msg loss in readmode != 0
This is a preliminary patch, which needs to undergo further testing
in cases where rsyslogd is shut down with partial messages read.

see also https://github.com/rsyslog/rsyslog/issues/144
2015-03-29 14:38:59 +02:00
Radu Gheorghe
83f911ae4c added test for imfile ReadMode=2. See https://github.com/rsyslog/rsyslog/issues/144 2015-03-29 14:38:59 +02:00
Radu Gheorghe
b907285873 added test for imfile ReadMode=2. See https://github.com/rsyslog/rsyslog/issues/144 2015-03-29 14:38:59 +02:00
Rainer Gerhards
0a5099e353 maintain ChangeLog 2015-03-29 14:34:22 +02:00
Rainer Gerhards
812361ff7a Merge pull request #280 from rgerhards/fix-getsize
bugfix: size-based legacy config statements did not work properly
2015-03-29 14:32:02 +02:00
Rainer Gerhards
4d10da0726 maintain ChangeLog 2015-03-29 12:38:27 +02:00
Andrew Ruch
37ec4dbcb0 Fix field name for pszStrucData in MsgSerialize (Issue #264) 2015-03-25 15:23:14 -06:00
Rainer Gerhards
4840c35e4c bugfix: size-based legacy config statements did not work properly
on some platforms they misadressed memory, which could also lead
to a segfault on startup. The problem is NOT experience on amd64
in 64bit builds -- that's probably the reason this bug was uncovered
very late. We assume, it's present in all v8 versions.

Thanks to Michael Biebl for alerting us of it.

closes https://github.com/rsyslog/rsyslog/issues/270
2015-03-25 14:27:27 +01:00
root
4bc2af4ebd fixed issues with imdiag and imgssapi plugins 2015-03-25 12:35:55 +01:00
Rainer Gerhards
d0f396e958 Merge pull request #279 from rgerhards/whissi-valgrind
Add option to disable valgrind usage in testbench
2015-03-25 10:29:12 +01:00
root
17d6f2aebb added 'address' attribte for address based bind to imtcp module 2015-03-25 10:23:18 +01:00
Thomas D
1f4339df5f Add option to disable valgrind usage in testbench 2015-03-25 10:06:39 +01:00
Rainer Gerhards
abf5220320 build system: clarify use of --enable-valgrind option
see also http://lists.adiscon.net/pipermail/rsyslog/2015-March/040058.html
2015-03-25 09:54:10 +01:00
Rainer Gerhards
4650750640 Merge remote-tracking branch 'github/master-candidate' into master-candidate 2015-03-25 09:43:54 +01:00
Rainer Gerhards
7e00de6f8a Merge pull request #271 from rgerhards/fix-compiler-warnings
fix a couple of compiler warnings
2015-03-23 12:20:56 +01:00
Tomas Heinrich
d0c8a3e334 imjournal: fix default message priority 2015-03-20 19:02:01 +01:00
Rainer Gerhards
fac850f58c fix a couple of compiler warnings 2015-03-17 12:36:16 +01:00
Rainer Gerhards
8cf5ac1d47 Merge pull request #269 from rgerhards/bugfix-omudpspoof
bugfix: omudpspoof: invalid default send template in RainerScript format
2015-03-17 12:16:20 +01:00
Rainer Gerhards
19c873ea44 Merge pull request #261 from Whissi/run-queue-persist.sh-once
tests: Run queue-persist.sh only once
2015-03-17 12:16:06 +01:00
Rainer Gerhards
d19f46615d Merge pull request #266 from Whissi/add-missing-rulebase-files
tests: Add missing mmnormalize_*.rulebase files to EXTRA_DIST target
2015-03-17 12:15:36 +01:00
Rainer Gerhards
3ca97fb385 bugfix: omudpspoof: invalid default send template in RainerScript format
The file format template was used, which obviously does not work for
forwarding. Thanks to Christopher Racky for alerting us.
closes https://github.com/rsyslog/rsyslog/issues/268
2015-03-16 18:51:14 +01:00
Thomas D
45069fad94 tests: Add missing mmnormalize_*.rulebase files to EXTRA_DIST target 2015-03-11 15:42:14 +01:00
Rainer Gerhards
52ceef4503 Merge pull request #259 from rgerhards/imuxsock-parsers
Imuxsock parser improvements
2015-03-10 16:51:18 +01:00
Thomas D
31a5edc9be tests: Run queue-persist.sh only once
queue-persist.sh was called twice in Makefile.
2015-03-08 21:05:03 +01:00
Rainer Gerhards
13ea010024 maintain ChangeLog 2015-03-06 11:10:19 +01:00
Rainer Gerhards
34300db47f imuxsock: new config options for parsing
Add option "parsehostname" to permit setting this explicitely.
Also added system log socket equivalents for new parsing options.
2015-03-06 11:09:50 +01:00
Rainer Gerhards
a3a21cc763 muxsock: permit to use regular parser chain
introduces new parameter "useSpecialParser"
2015-03-06 11:09:50 +01:00
Rainer Gerhards
d28efbe56b testbench: try to solve race by giving more time to settle
closes https://github.com/rsyslog/rsyslog/issues/229
2015-03-05 11:30:16 +01:00
Rainer Gerhards
ba02addd21 add missing info to ChangeLog 2015-03-05 08:35:11 +01:00
Rainer Gerhards
d7f42680ed maintain ChangeLog 2015-03-05 08:29:30 +01:00
Ansgar Puester
8852af5cac fix typos 2015-03-05 08:28:35 +01:00
Rainer Gerhards
bb4b3498b2 Merge pull request #258 from rgerhards/testbench-imuxsock
testbench: provide better diagnostics for failing test
2015-03-03 09:28:29 +01:00
Rainer Gerhards
eb78c86ccf Merge pull request #256 from rgerhards/fix-setMaxLine
non-void function setMaxLine does not return anything
2015-03-03 09:17:57 +01:00
Rainer Gerhards
9a0565d82a Merge branch 'mongodb-comment-update' of https://github.com/grue/rsyslog into master-candidate 2015-03-03 09:16:37 +01:00