Custom Query (26254 matches)


Show under each result:

Results (40 - 42 of 26254)

Ticket Resolution Summary Owner Reporter
#4998 implemented MyFamily as a list Jigsaw52 weasel


MyFamily currently is a config string. It'd be nice if it was a line list like RecommendedVersions as that would make configuration files a bit more readable.

#21788 fixed Very small memory leak with --verify-config Jigsaw52 Jigsaw52

When tor is run with the flag --verify-config, there is a memory leak of 45 bytes. Although the leak is insignificant, not leaking any memory helps testing the configuration related code against memory leaks.

This leak is due to clean_up_backtrace_handler not being called during tor shutdown process. I believe the fix is calling it inside tor_free_all. I will post a link to a branch with my proposed fix.

Valgrind log:

user@lubuntu:~/Desktop/tor$ valgrind --tool=memcheck --leak-check=full --show-leak-kinds=all  /usr/local/bin/tor --verify-config
==19135== Memcheck, a memory error detector
==19135== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==19135== Using Valgrind-3.12.0.SVN and LibVEX; rerun with -h for copyright info
==19135== Command: /usr/local/bin/tor --verify-config
Mar 20 00:59:33.916 [notice] Tor (git-411736a13250586c) running on Linux with Libevent 2.0.21-stable, OpenSSL 1.0.2g and Zlib 1.2.8.
Mar 20 00:59:34.005 [notice] Tor can't help you if you use it wrong! Learn how to be safe at
Mar 20 00:59:34.008 [notice] This version is not a stable Tor release. Expect more bugs than usual.
Mar 20 00:59:34.036 [notice] Read configuration file "/usr/local/etc/tor/torrc".
Configuration was valid
==19135== HEAP SUMMARY:
==19135==     in use at exit: 45 bytes in 1 blocks
==19135==   total heap usage: 8,709 allocs, 8,708 frees, 460,735 bytes allocated
==19135== 45 bytes in 1 blocks are still reachable in loss record 1 of 1
==19135==    at 0x4C2CB3F: malloc (in /usr/lib/valgrind/
==19135==    by 0x61CBB4F: __vasprintf_chk (vasprintf_chk.c:80)
==19135==    by 0x2669F3: vasprintf (stdio2.h:210)
==19135==    by 0x2669F3: tor_vasprintf (compat.c:539)
==19135==    by 0x2669F3: tor_asprintf (compat.c:516)
==19135==    by 0x2657E1: configure_backtrace_handler (backtrace.c:232)
==19135==    by 0x1556AF: tor_main (main.c:3609)
==19135==    by 0x14F238: main (tor_main.c:34)
==19135== LEAK SUMMARY:
==19135==    definitely lost: 0 bytes in 0 blocks
==19135==    indirectly lost: 0 bytes in 0 blocks
==19135==      possibly lost: 0 bytes in 0 blocks
==19135==    still reachable: 45 bytes in 1 blocks
==19135==         suppressed: 0 bytes in 0 blocks
==19135== For counts of detected and suppressed errors, rerun with: -v
==19135== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
#22101 wontfix Can't have relative DataDirectory with CookieAuthentication enabled Jigsaw52 pastly
DataDirectory ./datadir-3hop
Log notice file ./datadir-3hop/notice.log
RunAsDaemon 1
ControlPort 9980
CookieAuthentication 1

leads to

Apr 29 12:29:03.000 [notice] Tor (git-47d2e4f06ec26a79) opening new log file.
Apr 29 12:29:02.994 [warn] OpenSSL version from headers does not match the version we're running with. If you get weird crashes, that might be why. (Compiled with 1000105f: OpenSSL 1.0.1e 11 Feb 2013; running with 1000105f: OpenSSL 1.0.1e-fips 11 Feb 2013).
Apr 29 12:29:03.013 [notice] Tor (git-47d2e4f06ec26a79) running on Linux with Libevent 2.0.21-stable, OpenSSL 1.0.1e-fips and Zlib 1.2.7.
Apr 29 12:29:03.013 [notice] Tor can't help you if you use it wrong! Learn how to be safe at
Apr 29 12:29:03.014 [notice] Read configuration file "/home/mtraudt/src/qtime-with-load-testing/torrc-3hop".
Apr 29 12:29:03.015 [warn] Path for DataDirectory (./datadir-3hop) is relative and will resolve to /home/mtraudt/src/qtime-with-load-testing/./datadir-3hop. Is this what you wanted?
Apr 29 12:29:03.016 [notice] Opening Socks listener on
Apr 29 12:29:03.016 [notice] Opening Control listener on
Apr 29 12:29:03.000 [warn] Couldn't open "./datadir-3hop/control_auth_cookie.tmp" (./datadir-3hop/control_auth_cookie) for writing: No such file or directory
Apr 29 12:29:03.000 [warn] Error writing auth cookie to "./datadir-3hop/control_auth_cookie".
Apr 29 12:29:03.000 [warn] Error creating control cookie authentication file.
Apr 29 12:29:03.000 [err] set_options(): Bug: Acting on config options left us in a broken state. Dying. (on Tor 47d2e4f06ec26a79)

Setting DataDirectory to the absolute path in the torrc allows Tor to start

Note: See TracQuery for help on using queries.