2698 Commits

Author SHA1 Message Date
Rainer Gerhards
22bf4fc832 somewhat enhanced test suite
also prepared test case for TLS testing, but not activated it
inside the build itself.
A note on TLS testing: the current testsuite (in git!) already contains
TLS test cases. However, getting these test cases correct is not simple.
That's not a problem with the code itself, but rater a problem with
synchronization in the test environment. So I have deciced to keep the
TLS tests in, but not yet actually utilize them. This is most probably
left as an excercise for future (devel) releases.
2009-11-11 14:12:09 +01:00
Rainer Gerhards
a9cf6e0e92 testbench improvement: gzip-plain-tcp mode is now being tested
... also improved two-instance test mechanism, now have a generic
approach.
2009-11-11 12:06:02 +01:00
Rainer Gerhards
7077420d58 added support for dual-rsyslogd-instance test cases to testbench
... plus a simple initial test of the tcp forwarding capability.
2009-11-11 11:44:24 +01:00
Rainer Gerhards
b4dd4ef83a doc: added reasoning for why use env vars to configure debug system 2009-11-10 13:50:07 +01:00
Rainer Gerhards
2b5e15d549 added a so-called "On Demand Debug" mode
in which debug output can be generated only after the process has started,
but not right from the beginning. This is assumed to be useful for
hard-to-find bugs.  Also improved the doc on the debug system.
2009-11-10 12:50:48 +01:00
Rainer Gerhards
224c3aef8b bumped version number 2009-11-05 15:27:16 +01:00
Rainer Gerhards
dfbdb0d98d preparing for 4.5.6 v4.5.6 2009-11-05 15:25:31 +01:00
Rainer Gerhards
6a99be4696 added pipe action test to testbench & testbench bugfix 2009-11-05 14:31:37 +01:00
Rainer Gerhards
a5cd509be7 bugfix: named pipes did no longer work (they always got an open error)
this was a regression from the omfile rewrite in 4.5.0
2009-11-05 12:44:57 +01:00
Rainer Gerhards
037576dcc7 bugfix(testbench): testcase did not properly wait for rsyslod shutdown
thus some unpredictable behavior and a false negative test result
could occur. [BACKPORTED from v5]
2009-10-30 09:06:50 +01:00
Rainer Gerhards
04ca261119 Merge branch 'v4-stable' into v4-beta
Conflicts:
	ChangeLog
	configure.ac
	doc/manual.html
	plugins/imrelp/imrelp.c
2009-10-21 12:04:59 +02:00
Rainer Gerhards
3187982c3c Merge branch 'aaron' into v4-beta
Conflicts:
	ChangeLog
2009-10-21 10:51:43 +02:00
Rainer Gerhards
b513239352 preparing for 4.5.5 v4.5.5 2009-10-21 10:50:22 +02:00
Rainer Gerhards
9407f2a3e0 bumped version number 2009-10-20 15:12:00 +02:00
Rainer Gerhards
24d5ecc891 added imported bugfix to changelog 2009-10-20 11:09:20 +02:00
Rainer Gerhards
b840e300df Merge branch 'v3-stable' into v4-stable 2009-10-20 11:07:52 +02:00
Rainer Gerhards
8e45fd5c8e bugfix: potential hang condition on queue shutdown 2009-10-20 11:05:02 +02:00
Rainer Gerhards
7f9db36d9a Merge branch 'v3-stable' into v4-stable
Conflicts:
	plugins/imrelp/imrelp.c
2009-10-14 17:14:56 +02:00
Rainer Gerhards
d30526568c Merge branch 'v3-stable' into v4-beta
Conflicts:
	plugins/imrelp/imrelp.c
2009-10-14 17:06:40 +02:00
Rainer Gerhards
73cc2afb22 enhance: imrelp now also provides remote peer's IP address
[if librelp != 1.0.0 is used]
2009-10-14 12:56:03 +02:00
Rainer Gerhards
e6b2cba803 bugfix(minor): diag function returned wrong queue memeber count
...for the main queue if an active DA queue existed. This had no relevance
to real deployments (assuming they are not running the debug/diagnostic
module...), but sometimes caused grief and false alerts in the
testbench.
2009-10-14 11:16:43 +02:00
Rainer Gerhards
c104eea4e5 preparing for 4.4.2 release v4.4.2 2009-10-09 14:06:51 +02:00
Rainer Gerhards
17e24eae73 Merge branch 'aaron' into v4-beta 2009-10-08 16:37:01 +02:00
Rainer Gerhards
50d9939148 bugfix: debug string larger than 1K were improperly displayed.
Max size is now 32K.
2009-10-08 16:29:15 +02:00
Rainer Gerhards
2f35a69a59 Merge branch 'aaron' into v4-beta 2009-10-05 12:41:10 +02:00
Rainer Gerhards
0d7521d591 bugfix: invalid storage class selected for some size config parameters.
This resulted in wrong values. The most prominent victim was the
directory creation mode, which was set to zero in some cases. For
details, see related blog post:
http://blog.gerhards.net/2009/10/another-note-on-hard-to-find-bugs.html

This replaces the improper bugfix from two commits ago with a proper one.
2009-10-05 12:38:40 +02:00
Rainer Gerhards
21aef2dffd bugfix[minor]: CHKiRet improperly used 2009-10-02 16:11:13 +02:00
Rainer Gerhards
36bfaf6348 DirCreateMode was always zero. work-around now is to do a...
one-time write to the mode, then all works. However, if no such write
is done, the variable always remains zero. I have used the memory
debugger as well as shuffled the code around and used guard variables
nothing changed. The problem always moved with the changes I did. So
I now consider the one-time write a usable work-around, because it
definitely fixes the issue even though it does not explain why it
happens.
2009-10-02 15:48:37 +02:00
Rainer Gerhards
4c8546fd6f bumped version number 2009-10-02 09:25:54 +02:00
Rainer Gerhards
f771764fab Merge branch 'aaron' into v4-beta
Conflicts:
	runtime/rsyslog.h
2009-10-02 09:21:25 +02:00
Rainer Gerhards
724ba2b27f bumped version number, corrected error message code (minor nit) 2009-10-01 18:47:16 +02:00
Rainer Gerhards
6a69e47822 added $InputTCPServerNotifyOnConnectionClose config directive 2009-10-01 18:39:21 +02:00
Rainer Gerhards
d33a486560 Merge branch 'v4-stable' into v4-beta
Conflicts:
	runtime/rsyslog.h
	tools/syslogd.c
2009-10-01 17:00:07 +02:00
Rainer Gerhards
cb97616276 RFC5424 formatted messages with only structured data and no MSG part were improperly handled.
This was a regression of one of the last bugfixes, so no previously released
version contained this bug (thus it does not show up in the ChangeLog).
2009-10-01 16:54:34 +02:00
Rainer Gerhards
176f773a2e Merge branch 'v4-stable' into v4-beta & BUGFIX
Conflicts:
	configure.ac
	doc/manual.html
	runtime/datetime.h
	runtime/parser.c
	runtime/rsyslog.h
	tools/syslogd.c

v4-stable had a bug with RFC5424-formatted structured data, which showed
was detected by the enhanced automatted testbench of v4-beta.
2009-10-01 16:30:32 +02:00
Rainer Gerhards
e13537ce90 Merge branch 'v3-stable' into v4-stable 2009-09-30 12:42:41 +02:00
Rainer Gerhards
7afe4b3a79 Merge branch 'v2-stable' into v3-stable 2009-09-30 12:42:01 +02:00
Rainer Gerhards
3be997f943 doc bugfix: default for $DirCreateMode incorrectly stated 2009-09-30 12:41:38 +02:00
Rainer Gerhards
f45217e776 bugfix: zero-sized UDP messages are no longer processed
Until now, they were forwarded to processing, but this makes no sense
Also, it looks like the system seems to provide a zero return code
on a UDP recvfrom() from time to time for some internal reasons. These
"receives" are now silently ignored.
2009-09-29 14:37:33 +02:00
Rainer Gerhards
536415cf3d bugfix: invalid handling of zero-sized messages
could lead to mis-addressing and potential memory corruption/segfault
2009-09-29 14:22:11 +02:00
Rainer Gerhards
5c6eee3e44 bumped version number 2009-09-29 13:59:02 +02:00
Rainer Gerhards
8bab264ba1 minor cleanup & preparation for 4.5.4 v4.5.4 2009-09-29 09:50:39 +02:00
Rainer Gerhards
d15eb7fa83 bugfix: this morning's race patch was incomplete, completing now
we needed to release ALL resources (including file handles!) only
after the the async writer thread has terminated (else it may access
them). In this case, we had a file handle leak, because the handle was
sometimes only opened in the async writer, but the close was attempted
before the writer even started (in some cases).
2009-09-24 16:05:40 +02:00
Rainer Gerhards
eb9da005ba (temporary?) removal of very conservative locks in stream.c
...after we seem to have identified the root cause of the segfault.
I leave them commented out so that we can re-activate it if need
arises (aka "get some practice drill first").
2009-09-24 11:02:00 +02:00
Rainer Gerhards
e0dde79a80 bugfix: potential segfault in stream writer on destruction
Most severely affected omfile. The problem was that some buffers were
freed before the asynchronous writer thread was shut down. So the
writer thread accessed invalid data, which may even already be
overwritten. Symptoms (with omfile) were segfaults, grabled data
and files with random names placed around the file system (most
prominently into the root directory). Special thanks to Aaron for
helping to track this down.
2009-09-24 10:49:11 +02:00
Rainer Gerhards
37ba1df6e3 bugfix: random data could be appended to message, possibly causing segfaults 2009-09-24 09:48:38 +02:00
Rainer Gerhards
44844b8af3 minor: increased buffer size to be safe in all cases
if the buffer was too small, we would see more API calls, but no
failure, so this is no fix!
2009-09-22 14:22:34 +02:00
Rainer Gerhards
4cc2db490a bugfixes: potential problems in out file zip writer.
Problems could lead to abort and/or memory leak. The module is now hardened in a very
conservative way, which is sub-optimal from a performance point of view. This should
be improved if it has proven reliable in practice.
2009-09-22 14:07:25 +02:00
Rainer Gerhards
22c32ca5b6 bumped version number 2009-09-22 12:49:48 +02:00
Rainer Gerhards
6946b6b7d9 bugfix: potential race in object loader during use/release of object interface 2009-09-22 12:48:51 +02:00