summaryrefslogtreecommitdiffstats
path: root/runtime/debug.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'v5-beta' into betaRainer Gerhards2012-05-291-3/+1
|\ | | | | | | | | Conflicts: ChangeLog
| * bugfix: if debug message could end up in log file when forkingTomas Heinrich2012-05-291-3/+1
| | | | | | | | | | | | | | | | | | | | | | if rsyslog was set to auto-background (thus fork, the default) and debug mode to stdout was enabled, debug messages ended up in the first log file opened. Currently, stdout logging is completely disabled in forking mode (but writing to the debug log file is still possible). This is a change in behaviour, which is under review. If it causes problems to you, please let us know. Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* | Merge branch 'v5-stable' into masterRainer Gerhards2012-01-181-16/+14
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog action.h configure.ac doc/manual.html plugins/immark/immark.c plugins/impstats/impstats.c plugins/imptcp/imptcp.c plugins/imtcp/imtcp.c runtime/cfsysline.c runtime/cfsysline.h runtime/conf.c runtime/ctok.c runtime/ctok.h runtime/ctok_token.c runtime/ctok_token.h runtime/dnscache.h runtime/expr.c runtime/expr.h runtime/rule.c runtime/rule.h runtime/ruleset.h runtime/sysvar.c runtime/vm.h runtime/vmop.c runtime/vmop.h runtime/vmprg.c runtime/vmprg.h runtime/vmstk.c runtime/vmstk.h tools/omusrmsg.c
| * Merge branch 'v4-stable' into v5-stableRainer Gerhards2012-01-161-16/+14
| |\ | | | | | | | | | | | | | | | | | | | | | Conflicts: runtime/debug.h runtime/obj.c runtime/parser.h runtime/wti.h
| | * runtime license changeRainer Gerhards2012-01-161-16/+14
| | |
| | * Merge branch 'v4-stable' into v4-develRainer Gerhards2010-12-161-4/+2
| | |\ | | | | | | | | | | | | | | | | Conflicts: runtime/parser.c
* | | | tcpsrv select-handler experimentally moved to multi-threading as wellRainer Gerhards2011-01-311-1/+1
| | | | | | | | | | | | | | | | | | | | first tests done with plain tcp, TLS subsystems tests need to be carried out. No serious lab testing done so far.
* | | | interim commit: current debug state of new imptcpRainer Gerhards2011-01-281-17/+23
|/ / / | | | | | | | | | | | | | | | I need to verify the concept used in a simpler environment, and this means I probably need to freeze the (non-working) state here for a couple of days.
* | | Merge branch 'v5-stable' into v5-develRainer Gerhards2010-12-171-9/+5
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html
| * | | bugfix: batch processing flagged invalid message as "bad" under some ↵Rainer Gerhards2010-12-161-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | circumstances also fixed some cosmetic nits
| * | | Merge branch 'v4-stable' into v5-stableRainer Gerhards2010-12-161-4/+2
| |\ \ \ | | | |/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog runtime/parser.c runtime/queue.c runtime/wtp.c template.c threads.c tools/syslogd.c
| | * | some cleanup based on clang static analyzer resultsRainer Gerhards2010-12-161-4/+2
| | | |
* | | | minor: added version number to some error messagesRainer Gerhards2010-09-171-3/+3
|/ / /
* | | Merge branch 'v4-devel' into masterRainer Gerhards2010-04-271-1/+1
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: runtime/Makefile.am runtime/atomic.h runtime/queue.c runtime/queue.h runtime/wti.c runtime/wti.h runtime/wtp.c runtime/wtp.h
| * | bugfix: problems with atomic operations emulationRainer Gerhards2010-04-271-1/+1
| | | | | | | | | | | | | | | | | | replaced atomic operation emulation with new code. The previous code seemed to have some issue and also limited concurrency severely. The whole atomic operation emulation has been rewritten.
* | | Merge branch 'v4-devel' into masterRainer Gerhards2010-04-191-1/+12
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog Makefile.am configure.ac doc/manual.html runtime/debug.c runtime/rsyslog.h tests/Makefile.am tests/diag.sh tests/nettester.c tools/syslogd.c
| * | slightly improved/cleaned up debugging systemRainer Gerhards2010-04-141-3/+16
| | |
| * | Merge branch 'v4-stable-solaris' into v4-develRainer Gerhards2010-04-121-3/+12
| |\| | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html tools/omfile.c tools/syslogd.c
* | | Merge branch 'beta' into masterRainer Gerhards2010-04-091-8/+7
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac plugins/imudp/imudp.c runtime/stream.h tests/Makefile.am tests/diag.sh tools/omfile.c
| * \ \ Merge branch 'v4-stable' into v5-stableRainer Gerhards2010-03-291-8/+7
| |\ \ \ | | | |/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html runtime/debug.c runtime/stream.c tests/Makefile.am tests/diskqueue.sh tests/nettester.c tools/omfile.c
| | * | enhanced dbgoprint() buffer sizeRainer Gerhards2010-03-161-1/+1
| | | |
| | * | bugfix(minor): handling of extremely large strings in dbgprintf() fixedRainer Gerhards2010-03-151-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | 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.
| | * | added more tests to testbench and improved testing toolsRainer Gerhards2010-03-111-1/+1
| | | |
* | | | Merge branch 'v5-stable'Rainer Gerhards2010-03-091-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html doc/property_replacer.html runtime/datetime.h
| * | | Merge branch 'v4-stable' into betaRainer Gerhards2010-03-081-1/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html tests/rt-init.c
| | * | Includes "config.h" before any other header.Yann Droneaud2010-03-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | For consistency, ./configure generated "config.h" must be the first header include through out the project. Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* | | | patch to make rsyslog compile under Apple OS Xtrey2010-02-031-0/+13
| | | | | | | | | | | | | | | | Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* | | | Merge branch 'v4-devel' into tmpRainer Gerhards2009-11-201-2/+2
|\ \ \ \ | |/ / / |/| | / | | |/ | |/| | | | | | | | | | Conflicts: ChangeLog tests/Makefile.am tests/sndrcv_drvr.sh tools/syslogd.c
| * | debugondemand mode caused backgrounding to failRainer Gerhards2009-11-201-2/+2
| |/ | | | | | | | | This is close to a bug, but I'd consider the ability to background in this mode a new feature...
* | Merge branch 'v4-beta'Rainer Gerhards2009-11-101-0/+9
|\| | | | | | | | | Conflicts: ChangeLog
| * added a so-called "On Demand Debug" modeRainer Gerhards2009-11-101-0/+9
| | | | | | | | | | | | 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.
* | enhanced test environment (including testbench)Rainer Gerhards2009-10-221-0/+14
| | | | | | | | | | | | | | | | support for enhancing probability of memory addressing failure by using non-NULL default value for malloced memory (optional, only if requested by configure option). This helps to track down some otherwise undetected issues within the testbench and is expected to be very useful in the future.
* | Merge branch 'david-master' into masterRainer Gerhards2009-10-161-1/+11
|\ \ | | | | | | | | | | | | | | | Conflicts: ChangeLog runtime/msg.c
| * | bugfix in debug system and more instrumentation to find an issueRainer Gerhards2009-10-081-1/+11
| | | | | | | | | | | | | | | bugfix: debug string larger than 1K were improperly displayed. Max size is now 32K, and if a string is even longer it is meaningful truncated.
* | | Merge branch 'v4-beta' into betaRainer Gerhards2009-10-081-1/+1
|\ \ \ | |/ / |/| / | |/
| * bugfix: debug string larger than 1K were improperly displayed.Rainer Gerhards2009-10-081-1/+1
| | | | | | | | Max size is now 32K.
* | Merge branch 'v4-devel'Rainer Gerhards2009-07-081-1/+3
|\| | | | | | | | | | | Conflicts: runtime/debug.h runtime/stream.c
| * fixed a bug introduced today that lead to an abort in queue disk modeRainer Gerhards2009-07-071-1/+1
| |
| * solved a race conditionRainer Gerhards2009-07-071-0/+2
| |
* | free last processed message in all casesRainer Gerhards2009-05-201-21/+30
| | | | | | | | | | | | | | | | | | so far, the last processed message was only freed when the next one was processed. This has been changed now. More precisely, a better algorithm has been selected for the queue worker process, which also involves less overhead than the previous one. The fix for "free last processed message" as then more or less a side-effect (easy to do) of the new algorithm.
* | moving to a cleaner implementation of batchesRainer Gerhards2009-05-121-5/+9
|/ | | | ... now that we know what we need from a theoretical POV.
* added O_CLOEXEC to open() callsRainer Gerhards2009-04-021-1/+1
| | | | | | | | to make sure only the minimum number of file handles is left open during a exec call. This is not a 100% solution, as there are also some fopen() calls and, more importantly, file descriptors opened by libraries. But it is better than nothing (and it was quick, at least until we run into platform hell, what we will for sure ;)).
* Merge branch 'dapatch'Rainer Gerhards2009-03-251-0/+69
|\
| * bugfix: potential abort with DA queue after high watermark is reachedRainer Gerhards2009-03-251-0/+69
| | | | | | | | | | | | There exists a race condition that can lead to a segfault. Thanks go to vbernetr, who performed the analysis and provided patch, which I only tweaked a very little bit.
* | resolved compile problem, e.g. on FreeBSDRainer Gerhards2008-12-081-2/+2
| | | | | | | | | | | | | | | | I commented out some debug code that is only useful in some testing scenarios and re-enabled the old code. This solved a FreeBSD compile issue. Also, I fixed some other syntax error, which somehow went into the tree (I am still puzzled about that, especially as some have already and successfully build from that tree... anyhow ;)).
* | Merge branch 'helgrind' into perfRainer Gerhards2008-09-261-2/+13
|\ \
| * | some more threading cleanupRainer Gerhards2008-09-261-2/+13
| | | | | | | | | | | | | | | | | | - removed newly-introduced potential deadlock in debug system - removed unnecessary pthread_cond_signal - a bit general cleanup
* | | Merge branch 'helgrind' into perfRainer Gerhards2008-09-261-130/+81
|\| | | | | | | | | | | | | | | | | Conflicts: runtime/debug.c
| * | cleaned up internal debug system code and made it behave better in regard to ↵Rainer Gerhards2008-09-261-129/+79
| | | | | | | | | | | | multi-threading
* | | Merge branch 'helgrind' into perfRainer Gerhards2008-09-181-0/+16
|\| | | | | | | | | | | | | | | | | Conflicts: ChangeLog