2896 Commits

Author SHA1 Message Date
Rainer Gerhards
25bc3b2e30 Merge branch 'v4-stable-solaris' into v4-devel
Conflicts:
	ChangeLog
	configure.ac
	doc/manual.html
	tools/omfile.c
	tools/syslogd.c
2010-04-12 09:10:19 +02:00
Rainer Gerhards
5ef852f4a3 Merge branch 'v4-stable' into v4-stable-solaris
Conflicts:
	ChangeLog
	tests/Makefile.am
	tests/tcpflood.c
2010-04-07 14:40:55 +02:00
Rainer Gerhards
e2ceb7247c bugfix: default for $OMFileFlushOnTXEnd was wrong ("off").
This, in default mode, caused buffered writing to be used, what
means that it looked like no output were written or partial
lines. Thanks to Michael Biebl for pointing out this bug.
2010-04-07 14:25:40 +02:00
Rainer Gerhards
7db6ffbce3 bugfix: the T/P/E config size specifiers did not work properly under call 32-bit platforms 2010-04-07 13:57:46 +02:00
Rainer Gerhards
2cd132eebb enhanced nettester tool so that it re-uses it's callers environment
this enables us to work with the "usual" environment tweaks (for
debugging and other purposes), without the need for any special
handling in nettester itself
2010-04-07 12:42:41 +02:00
Rainer Gerhards
23a3fdb094 git "bugfix": added file previously forgotten 2010-04-01 15:16:05 +02:00
Rainer Gerhards
1cba216220 improvded testbench: added test with truly random data received via syslog to test robustness 2010-04-01 15:11:16 +02:00
Rainer Gerhards
302ad02e77 temporary bugfix replaced by permanent one for...
...message-induced off-by-one error (potential segfault) (see 4.6.2)
The analysis has been completed and a better fix been crafted and
integrated.
2010-03-31 16:21:58 +02:00
Rainer Gerhards
cb2fe4a585 added some more useful info to Solaris README 2010-03-29 17:14:43 +02:00
Rainer Gerhards
55639bd99d Merge branch 'v4-stable' into v4-stable-solaris 2010-03-29 15:04:03 +02:00
Rainer Gerhards
e3b469befa bugfix: testbench failed when not executed in UTC+1 timezone
accidently, the time zone information was kept inside some
to-be-checked-for responses
2010-03-29 14:48:36 +02:00
Rainer Gerhards
46ac70bb30 Merge branch 'v4-stable' into v4-stable-solaris
Conflicts:
	ChangeLog
2010-03-26 17:00:12 +01:00
Rainer Gerhards
3ab759c40d cleanup in solaris components for imklog 2010-03-26 16:59:00 +01:00
Rainer Gerhards
b67b5b8f73 bugfix: local unix system log socket was deleted even when it was not configured
Also made sure that /dev/log will not be processed by imuxsock
when running under Solaris -- otherwise, the module may had
accidently deleted the log socket and cause problems.
2010-03-26 16:38:34 +01:00
Rainer Gerhards
91a5e176d6 added initial files for door support & fixed imklog
imklog now basically works, but needs quite some more work to do
2010-03-26 15:49:39 +01:00
Rainer Gerhards
b6ce75cb6c preparing for 4.6.2 v4.6.2 2010-03-26 15:41:59 +01:00
Rainer Gerhards
ee6ce30b47 interim commit: imklog/solaris compiles, but does not work
saving this area of work, because some further clarification
is needed. Do not try to run the current imklog, it will fail.
2010-03-26 09:14:31 +01:00
Rainer Gerhards
da65d88017 added forgotten file 2010-03-25 18:36:27 +01:00
Rainer Gerhards
d8b68e1b1a Merge branch 'v4-stable-solaris' of git+ssh://git.adiscon.com/git/rsyslog into v4-stable-solaris 2010-03-25 18:22:51 +01:00
Rainer Gerhards
92369b253c added some starting point for a solaris imklog driver
... far from being functional at this time!
2010-03-25 18:22:14 +01:00
Rainer Gerhards
927a1b54ad Merge branch 'v4-stable' into v4-stable-solaris 2010-03-25 17:38:26 +01:00
Rainer Gerhards
77f4230c10 $OMFileAsyncWriting directive did not work properly 2010-03-25 17:36:50 +01:00
Rainer Gerhards
b628ec633e added missing header 2010-03-25 17:21:36 +01:00
Rainer Gerhards
0e0eaae433 Merge branch 'v4-stable' into v4-stable-solaris
Conflicts:
	ChangeLog
2010-03-25 15:48:05 +01:00
Rainer Gerhards
93de3028b3 disable testcases affected by temporary bugfix in commit a3e48b697fa664110567fcd0027d24ea5a239041
... so that the testbench continues to work
2010-03-25 15:36:54 +01:00
Rainer Gerhards
d102aab886 new feature: $OMFileAsyncWriting directive added
it permits to specifiy if asynchronous writing should be done or not
2010-03-25 15:23:39 +01:00
Rainer Gerhards
ec883905c1 testbench improved to run on Solaris 2010-03-25 14:58:23 +01:00
Rainer Gerhards
7e1060295a manytcp test tool must tell OS to provide enough file handles
On some platforms, the default is too low to carry out all test cases
2010-03-25 11:21:10 +01:00
Rainer Gerhards
bdb632e6d2 added some instructions for building rsyslog on Solaris 2010-03-25 10:12:36 +01:00
Rainer Gerhards
2ca1ade1a5 Merge branch 'v4-stable-solaris' of git+ssh://rger@git.adiscon.com/git/rsyslog into v4-stable-solaris 2010-03-25 09:36:51 +01:00
Rainer Gerhards
5deea302b0 replaced sleep in test suite by a small self-crafted tool
subsecond sleep did not work on all platforms
2010-03-25 09:35:49 +01:00
Rainer Gerhards
648e84cad8 Merge branch 'v4-stable' into v4-stable-solaris
Conflicts:
	ChangeLog
2010-03-25 08:26:18 +01:00
Rainer Gerhards
841f841ce1 minor: add INSTALL file to git
some versions of autotools seem to require it. The file itself is NOT
of interest for the project
2010-03-25 08:21:41 +01:00
Rainer Gerhards
bcddd30c2e undo experimental commit dccadb677c5a6b8379f631e4c1f14c8c4089d4a6
Further testing turned out that the rsyslog core works correctly and
this fix is not needed. The concurrency we saw was actually caused by
other actions (even processes) during directory creation. See commit
9e5b31fc44136dbcc1e443cfe7714e9daf97d844 for further details.
2010-03-25 08:13:58 +01:00
Rainer Gerhards
a3e48b697f bugfix(temporary): message-induced off-by-one error (potential segfault)
Some types of malformed messages could trigger an off-by-one error
(for example, \0 or \n as the last character, and generally control
character escaption is questionable). This is due to not strictly
following a the \0 or string counted string paradigm (during the last
optimization on the cstring class). As a temporary fix, we have
introduced a proper recalculation of the size. However, a final
patch is expected in the future. See bug tracker for further details
and when the final patch will be available:
http://bugzilla.adiscon.com/show_bug.cgi?id=184
Note that the current patch is considered sufficient to solve the
situation, but it requires a bit more runtime than desirable.
2010-03-25 08:03:37 +01:00
Rainer Gerhards
28b3703c95 bugfix: potential segfault in dynafile cache
This bug was triggered by an open failure. The the cache was full and
a new entry needed to be placed inside it, a victim for eviction was
selected. That victim was freed, then the open of the new file tried. If
the open failed, the victim entry was still freed, and the function
exited. However, on next invocation and cache search, the victim entry
was used as if it were populated, most probably resulting in a segfault.
2010-03-25 07:56:03 +01:00
Rainer Gerhards
9e5b31fc44 bugfix: race condition during directory creation
If multiple files try to create a directory at (almost) the same time,
some of them may fail. This is a data race and also exists with other
processes that may create the same directory. We do now check for this
condition and gracefully handle it.
2010-03-25 07:50:55 +01:00
Rainer Gerhards
2f8b5cafd0 forgot to add file with last commit 2010-03-23 15:05:34 +01:00
Rainer Gerhards
072fc663a8 added replacements for atomic instructions on systems that do not support them.
[backport of Stefen Sledz' patch for v5]
2010-03-23 15:04:24 +01:00
Rainer Gerhards
5d58774813 streamline dynafile cache entry deletion a bit
The old code looks a bit "strange", though not necessarily incorrect.
The new code looks correct and is probably less irritating during bug
hunting.
2010-03-23 14:21:33 +01:00
Rainer Gerhards
f8dee56243 bugfix: potential re-use of free()ed file stream object in omfile
when dynaCache is enabled, the cache is full, a new entry needs to
be allocated, thus the LRU discarded, then a new entry is opend and that
fails. In that case, it looks like the discarded stream may be reused
improperly (based on code analysis, test case and confirmation pending)
2010-03-23 14:11:50 +01:00
Rainer Gerhards
e0afe5c825 added some diagnostics info to startup 2010-03-23 08:03:21 +01:00
Rainer Gerhards
aa77ac1d71 Merge branch 'v4-stable' into v4-stable-solaris 2010-03-23 07:22:46 +01:00
Rainer Gerhards
41552fbc50 adding testcase files missing in git 2010-03-23 07:22:07 +01:00
Rainer Gerhards
d2f242edcb Merge branch 'v4-stable' into v4-stable-solaris 2010-03-23 07:10:03 +01:00
Rainer Gerhards
2f1d5a1203 valgrand accidently left enabled in diag.sh with the last commit 2010-03-22 15:59:33 +01:00
Rainer Gerhards
ea892d6cf0 cleanup: removed no longer needed variable
Most importantly, this keeps the thread debugger output clean.
2010-03-22 15:53:45 +01:00
Rainer Gerhards
148910c285 bugfix(minor): BSD_SO_COMPAT query function had some global vars not properly initialized.
However, in practice the loader initializes them with zero, the
desired value, so there were no actual issue in almost all cases.
2010-03-22 15:47:07 +01:00
Rainer Gerhards
e6aaf12544 added one more test case for dynafile cache 2010-03-22 14:53:08 +01:00
Rainer Gerhards
42d2c13072 cleanup of debug message in testbench 2010-03-22 14:37:36 +01:00