Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-06-29 | Merge remote-tracking branch 'tor-github/pr/1722/head' into maint-0.4.2 | Nick Mathewson | |
2020-02-12 | err/log: Stop closing stderr and stdout during shutdown | teor | |
Closing these file descriptors can hide sanitiser logs. Fixes bug 33087; bugfix on 0.4.1.6. | |||
2019-12-05 | Merge branch 'maint-0.4.0' into maint-0.4.1 | teor | |
2019-12-05 | Merge branch 'maint-0.3.5' into maint-0.4.0 | teor | |
2019-10-22 | Merge remote-tracking branch 'tor-github/pr/1303' into maint-0.4.1 | Nick Mathewson | |
2019-10-22 | Merge remote-tracking branch 'tor-github/pr/1302' into maint-0.4.1 | Nick Mathewson | |
2019-10-20 | err: Use the correct type for cb_buf | teor | |
Fixes bug 32060; bug not in any released version of tor. Resolves CID 1454761. | |||
2019-10-07 | Merge remote-tracking branch 'tor-github/pr/1379' | Nick Mathewson | |
2019-09-30 | err: Remove a duplicate header in backtrace.c | teor | |
2019-09-30 | err: Always lock the backtrace buffer before it is used | teor | |
Fixes bug 31734; bugfix on 0.2.5.3-alpha. | |||
2019-09-30 | Re-run "make autostyle" with improved annotate_ifdef_directives | Nick Mathewson | |
2019-09-30 | Merge branch 'tor-github/pr/1302' | George Kadianakis | |
2019-09-26 | backtrace: avoid undefined behaviour on re-initialisation | teor | |
cb_buf_mutex is statically initialised, so we can not destroy it when we are shutting down the err subsystem. If we destroy it, and then re-initialise tor, all our backtraces will fail. Part of 31736, but committed in this branch to avoid merge conflicts. | |||
2019-09-24 | backtrace: Add a missing check for HAVE_PTHREAD_H before using mutexes | teor | |
Fixes bug 31614; bugfix on 0.2.5.2-alpha. | |||
2019-09-24 | backtrace: Disable signal handlers in remove_bt_handler() | teor | |
Fixes bug 31614; bugfix on 0.2.5.2-alpha. | |||
2019-09-12 | Merge branch 'tor-github/pr/1303' | George Kadianakis | |
2019-09-10 | Merge branch 'bug31615_041' into bug31615_master | teor | |
Merged modified lines from bug31615_041, and unmodified lines from master. | |||
2019-09-10 | Merge branch 'bug31615_040' into bug31615_041 | teor | |
Merged modified lines from bug31615_040, and unmodified lines from maint-0.4.1. | |||
2019-09-09 | Merge branch 'tor-github/pr/1287' | David Goulet | |
2019-09-09 | log: Close log and err file descriptors before aborting | teor | |
Part of 31594. | |||
2019-09-09 | log: Don't close file log fds that are being used by the err module | teor | |
Instead, dup() file log fds, before passing them to the err module. Closes 31613, part of 31594. | |||
2019-09-09 | torerr: Close sigsafe fds on shutdown | teor | |
And clear the list of error fds. Part of 31594. | |||
2019-09-06 | subsys: Make the subsystem init order match the module dependencies | teor | |
Fix levels for subsystems that depend on log/err * winprocess (security) doesn't use err: * call windows process security APIs as early as possible * init err after winprocess * move wallclock so it's still after err * network and time depend on log: * make sure that network and time can use logging. * init network and time after log Add comments explaining the module init order. Fixes bug 31615; bugfix on 0.4.0.1-alpha. | |||
2019-09-04 | torerr: Fix a comment typo and update the comment for format_number_sigsafe() | teor | |
Closes 31612. | |||
2019-09-04 | Merge branch 'bug31571_040' into bug31571_041 | teor | |
2019-09-04 | Merge branch 'bug31571_035' into bug31571_040 | teor | |
2019-09-04 | backtrace: Check the return values of snprintf() and strncpy() | teor | |
We can't use strlcat() or strlcpy() in torerr, because they are defined in string/compat_string.h on some platforms, and string uses torerr. Part of 31571. | |||
2019-08-30 | torerr: Try harder to flush raw assert messages before process termination | teor | |
Some platforms (macOS, maybe others?) can swallow the last write before an abort. This issue is probably caused by a race condition between write buffer cache flushing, and process termination. So we write an extra newline, to make sure that the message always gets through. Fixes bug 31571; bugfix on 0.3.5.1-alpha. | |||
2019-08-30 | torerr: Log the Tor backtrace version when a raw assertion fails | teor | |
Part of 31571. | |||
2019-08-30 | backtrace: Log the Tor backtrace version whenever we log a backtrace | teor | |
Previously, we just logged it in the crash handler. Part of 31571. | |||
2019-08-30 | backtrace: Always set a backtrace Tor version | teor | |
We want to report the tor version, even on platforms that don't have backtrace support (like Android). This commit stores the backtrace Tor version, regardless of USE_BACKTRACE. Preparation for 31571. | |||
2019-07-19 | Extract the log_domain_t type to a lower-level header | Nick Mathewson | |
This way, both err and log may depend on it. | |||
2019-07-08 | Use a 64-bit mask for log domains, and fix a conflict | Nick Mathewson | |
When we added LD_MESG, we created a conflict with the LD_NO_MOCK flag. We now need 64 bits for log domains in order to fix this issue. Fixes bug 31080; bugfix on 0.4.1.1-alpha. | |||
2019-06-05 | Run "make autostyle." | Nick Mathewson | |
2019-05-02 | Add comments to include.am files to note where new sources go | Nick Mathewson | |
This mechanism isn't perfect, and sometimes it will guess wrong, but it will help our automation. | |||
2019-01-16 | Bump copyright date to 2019 | Nick Mathewson | |
2019-01-16 | Bump copyright date to 2019. | Nick Mathewson | |
2019-01-09 | Merge branch 'maint-0.3.5' | Nick Mathewson | |
2019-01-09 | Fix (and make consistent) the use of OpenBSD preprocessor macro tests | Kris Katterjohn | |
Prior to this commit, the testsuite was failing on OpenBSD. After this commit the testsuite runs fine on OpenBSD. It was previously decided to test for the OpenBSD macro (rather than __OpenBSD__, etc.) because OpenBSD forks seem to have the former macro defined. sys/param.h must be included for the OpenBSD macro definition; however, many files tested for the OpenBSD macro without having this header included. This commit includes sys/param.h in the files where the OpenBSD macro is used (and sys/param.h is not already included), and it also changes some instances of the __OpenBSD__ macro to OpenBSD. See commit 27df23abb675ffeb198bf0c1cc85c4baed77a988 which changed everything to use OpenBSD instead of __OpenBSD__ or OPENBSD. See also tickets #6982 and #20980 (the latter ticket is where it was decided to use the OpenBSD macro). Signed-off-by: Kris Katterjohn <katterjohn@gmail.com> | |||
2018-11-09 | Rename subsystem callback functions to make them consistent | Nick Mathewson | |
2018-11-09 | fixup! Make initialization for the "err" library into a subsystem. | Nick Mathewson | |
Check for failure to install backtrace handler. | |||
2018-11-05 | Make initialization for the "err" library into a subsystem. | Nick Mathewson | |
2018-07-03 | Refrain from potentially insecure usage of strncat() | rl1987 | |
2018-07-01 | File-level documentation for some of src/lib. | Nick Mathewson | |
2018-06-25 | Include stdio.h in torerr.c. | Nick Mathewson | |
2018-06-21 | New script to check includes for modularity violations | Nick Mathewson | |
Includes configuration files to enforce these rules on lib and common. Of course, "common" *is* a modularity violation right now, so these rules aren't as strict as I would like them to be. | |||
2018-06-21 | Rectify include paths (automated) | Nick Mathewson | |
2018-06-21 | Make sure liberr-testing is build with testing flags. | Nick Mathewson | |
2018-06-21 | Rectify include paths (automated) | Nick Mathewson | |
2018-06-21 | Extract error functionality into a new lowest-level library. | Nick Mathewson | |