3489 Commits

Author SHA1 Message Date
Rainer Gerhards
adf3e203bd enabled imudp to send complete text of large messages to debug log
... it turns out that this is sometimes extremely useful when debugging
real-world problems at user sites.
2010-03-18 12:39:19 +01:00
Rainer Gerhards
1fb45d3e99 some cleanup, some additional comments and a bit more debug output 2010-03-18 12:34:26 +01:00
Rainer Gerhards
5c7225b776 added test for deadlock with dynafile writing and cache exhaustion
Note that this introduces a test case that breaks the current code. This
commit does NOT yet provide the necessary code patch. Thus "make check"
does currently hang.
2010-03-17 18:11:03 +01:00
Rainer Gerhards
679434312c added test to check for deadlock condition in async-written files
Note that this introduces a test case that breaks the current code. This
commit does NOT yet provide the necessary code patch. Thus make check
does currently hang.
2010-03-17 16:39:18 +01:00
Rainer Gerhards
ba0f23182a new feature: "." action type added to support writing files to relative pathes
(this is primarily meant as a debug aid)
2010-03-17 16:25:24 +01:00
Rainer Gerhards
d7faed130c bugfix(cosmetic): tried to close non-open fd, resulting in close(-1) 2010-03-16 19:06:01 +01:00
Rainer Gerhards
a577b09e58 reduced runtime requirements of inactive debug code a slight bit 2010-03-16 19:01:22 +01:00
Rainer Gerhards
16cb5ae53c enhanced dbgoprint() buffer size 2010-03-16 17:06:21 +01:00
Rainer Gerhards
219336ec5a bugfix: recent patch to fix small memory leak could cause invalid free.
This could only happen during config file parsing.
2010-03-16 17:02:49 +01:00
Rainer Gerhards
4cb3e80152 added new, complex testcase to testbench
this is an excerpt from some of the more intensen manual tests
I am doing, stripped down to be useful inside the testbench.
2010-03-16 14:23:13 +01:00
Rainer Gerhards
46861a84f8 fix recently introduced minor nit in Makefile for testbench 2010-03-15 09:36:02 +01:00
Rainer Gerhards
a1127abbae bugfix(minor): handling of extremely large strings in dbgprintf() fixed
Previously, it could lead to garbagge output and, in extreme cases, also
to segfaults. Note: this was a problem only when debug output was
actually enabled, so it caused no problem in production use.
2010-03-15 09:29:54 +01:00
Rainer Gerhards
4f97db43df added more parser test cases
also improved testing tools to support new testcase structure
2010-03-11 14:48:44 +01:00
Rainer Gerhards
83c15bb0a0 added more tests to testbench and improved testing tools 2010-03-11 12:36:21 +01:00
Rainer Gerhards
5106cbe466 added ability to work with larger message sizes to testbench tools 2010-03-10 12:19:51 +01:00
Rainer Gerhards
4408d4137a testbench: new calling interface for tcpflood
this is a perquisite to support more flexible testing modes, which
could not intelligently be implemented with the old interface
2010-03-10 11:07:26 +01:00
Rainer Gerhards
ee8bf6d687 Merge branch 'v4-stable' into v4-stable-next 2010-03-10 09:58:46 +01:00
Rainer Gerhards
6c43f93022 fixed regression introduced with previous commit
disk queue mode did no longer work correctly. A side-effect of
this commit here is slightly cleaned-up (and more elegant) code
for circular files.
2010-03-10 09:52:49 +01:00
Rainer Gerhards
8833612e75 some cosmetic changes
note that a buffer size calculation was done wrong, but this was cosmetic
because our buffers currently all use byte size, so even though the
formula was wrong, the result was correct.
2010-03-10 08:21:41 +01:00
Rainer Gerhards
5996414f04 bugfixes and testbench improvement
- improved testbench
- bugfix: potential data loss during file stream shutdown
- bugfix: potential problems during file stream shutdown
  The shutdown/close sequence was not clean, what potentially (but
  unlikely) could lead to some issues. We have not been able to describe
  any fatal cases, but there was some bug potential. Sequence has now
  been straighted out.
2010-03-10 07:36:38 +01:00
Rainer Gerhards
3d80d6ba30 bugfix: potential problem (loop, abort) when file write error occured
When a write error occured in stream.c, variable iWritten had the error
code but this was handled as if it were the actual number of bytes
written. That was used in pointer arithmetic later on, and thus could
lead to all sorts of problems. However, this could only happen if the
error was EINTR or the file in question was a tty. All other cases were
handled properly. Now, iWritten is reset to zero in such cases, resulting
in proper retries.
2010-03-09 18:07:31 +01:00
Rainer Gerhards
7916735ba6 retain old $OMFileFlushOnTXEnd semantics
required because due to bug the default was actually different than
specified (or better said: spec was inconsistent in doc as well).
2010-03-09 17:57:46 +01:00
Rainer Gerhards
9e0426da5f bugfix: $omfileFlushOnTXEnd was turned on when set to off and vice versa 2010-03-09 17:52:01 +01:00
Rainer Gerhards
a6df6a1740 Merge branch 'master' into master-solaris
Conflicts:
	ChangeLog
2010-03-09 14:40:26 +01:00
Rainer Gerhards
c802afb7e0 Merge branch 'v5-stable'
Conflicts:
	ChangeLog
	configure.ac
	doc/manual.html
	doc/property_replacer.html
	runtime/datetime.h
2010-03-09 14:28:30 +01:00
Rainer Gerhards
de7726cbf0 Merge branch 'v4-stable' into v5-stable
Conflicts:
	ChangeLog
	runtime/datetime.h
2010-03-09 09:15:14 +01:00
Rainer Gerhards
d97ad63e21 added new property replacer option "date-rfc3164-buggyday"
primarily to ease migration from syslog-ng. See property replacer doc for
details. [backport from 5.5.3 because urgently needed by some]
2010-03-08 17:56:11 +01:00
Rainer Gerhards
81c9cf8626 updated project status 2010-03-08 16:08:08 +01:00
Rainer Gerhards
a27c67a590 preparing for 5.4.0 v5.4.0 2010-03-08 16:06:04 +01:00
Rainer Gerhards
e675ffcd61 added forgotten file 2010-03-08 14:28:09 +01:00
Rainer Gerhards
06387e5592 Merge branch 'v4-stable' into beta
Conflicts:
	ChangeLog
	configure.ac
	doc/manual.html
	tests/rt-init.c
2010-03-08 14:27:20 +01:00
Rainer Gerhards
e983ea31b8 Merge branch 'master' into master-solaris 2010-03-05 13:51:39 +01:00
Rainer Gerhards
46cd79a781 added file so far forgotten in git 2010-03-05 13:50:52 +01:00
Rainer Gerhards
34d1694e9d bugfix: omfile.c did not properly compile without atomics
while this worked on another platform, it did not work here, and failed
to do so for good reasons ;)
2010-03-05 12:53:15 +01:00
Rainer Gerhards
40be6cb6e7 Merge branch 'v4-stable-solaris' into master-solaris
Conflicts:
	ChangeLog
	configure.ac
	doc/manual.html
	tests/rt-init.c
2010-03-05 09:54:42 +01:00
Rainer Gerhards
424de9fb94 Merge branch 'master' into master-solaris 2010-03-05 09:50:20 +01:00
Rainer Gerhards
c2acf59ff3 Merge branch 'solaris' into master-solaris 2010-03-05 09:50:07 +01:00
Rainer Gerhards
129eeca64b relaxed need for atomic builtins 2010-03-05 09:36:45 +01:00
Rainer Gerhards
396e211e5c enabled compilation by using "racy" replacements for atomic instructions
... but this is not considered a real solution. For some of the
uses, it may acutally be sufficient, but the implications need
to be analyzed in detail.
2010-03-05 08:27:26 +01:00
Rainer Gerhards
b54d56b9f8 updated project status 2010-03-05 08:22:10 +01:00
Rainer Gerhards
b3c8528b50 added new property replacer option "date-rfc3164-buggyday"
primarily to ease migration from syslog-ng. See property replacer doc
for details.
2010-03-05 07:56:57 +01:00
Rainer Gerhards
56764b912e Merge branch 'v4-stable' into v4-stable-solaris 2010-03-05 07:56:07 +01:00
Rainer Gerhards
0b84d47f7a prepared 4.6.1 v4.6.1 2010-03-04 11:42:21 +01:00
Cristiano
4c060687cf streamlined BSD utmpx.h patch
Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
2010-03-04 09:51:28 +01:00
Rainer Gerhards
ad8ec0577a cosmetic: ChangeLog update
including proper credits to Mandriva team.
2010-03-04 09:27:36 +01:00
Yann Droneaud
71ffb32ab8 Fix Large File Support (LFS) support (bug #182)
- _FILE_OFFSET_BITS must be defined before including any other system
headers otherwise it does nothing.

- Don't define it in rsyslog.h, let it be defined in config.h,
  and let ./configure script enable LFS since Autoconf provides
  a portable macro to enable LFS support : AC_SYS_LARGEFILE
2010-03-04 09:01:04 +01:00
Yann Droneaud
cd8c6abcc8 Includes "config.h" before any other header.
For consistency, ./configure generated "config.h" must be the first
header include through out the project.

Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
2010-03-04 08:00:39 +01:00
Rainer Gerhards
d080ffe467 reordered some include, because otherwise we get zlib-related errors
on some platforms (namely Debian sid). This smells like a bug in zlib.
Thanks to Michael Biebl for reporting the issue.
2010-03-03 09:24:40 +01:00
Rainer Gerhards
6cf9bf703d bugfix: potential (but very impropable) segfaults in omfile
- bugfix: potential segfault in omfile when a dynafile open failed
  In that case, a partial cache entry was written, and some internal
  pointers (iCurrElt) not correctly updated. In the next iteration, that
  could lead to a segfault, especially if iCurrElt then points to the
  then-partial record. Not very likely, but could happen in practice.
- bugfix (theoretical): potential segfault in omfile under low memory
  condition. This is only a theoretical bug, because it would only
  happen when strdup() fails to allocate memory - which is highly
  unlikely and will probably lead to all other sorts of errors.
2010-03-02 11:32:43 +01:00
Rainer Gerhards
5402ba982f bugfix: failed to compile on systems without epoll support 2010-03-02 10:40:23 +01:00