Error From Libevent Tor
closed defect (fixed) libevent "error" causes Tor not to start at all Reported by: coshan Owned by: nickm Priority: Medium Milestone: Tor: 0.2.2.x-final Component: Core Tor/Tor Version: 0.2.0.29-rc Severity: Keywords: Cc: coshan, arma, nickm, phobos, Conflict, Metalfyre Actual Points: Parent ID: Points: Reviewer: Sponsor: Description (last modified by phobos) This is only tested on Windows Vista with Service Pack 1 and all updates except Windows Search 4.0 Tor 0.2.0.30 stable version was released officially a few days ago, but upon upgrading or uninstalling/reinstalling, the following messages always showed up 100% of the time. Aug 03 19:44:21.798 [Notice] Tor v0.2.0.30 (r15956). This is experimental software. Do not rely on it for strong anonymity. (Running on Windows "Longhorn" Service Pack 1 [workstation] {terminal services, single user}) Aug 03 19:44:21.936 [Error] Error from libevent: evsignal_init: socketpair: No error First of all this should not be experimental software since it is a stable release, and how come I am unable to start Tor especially when the "error" is actually "No error"? [Automatically added by flyspray2trac: Operating System: Windows Vista] Child Tickets Oldest first Newest first Threaded Comments only Change History (42) comment:1 Changed 8 years ago by arma Sounds like this might be a bug with the libevent we shipped in the 0.2.0.30 Windows bundle. Andrew, which libevent was that? Should we go with an older one for now? comment:2 Changed 8 years ago by nickm BTW, the "This is experimental software" warning has been on every version we've shipped for ages. We should debug libevent and get it working. The 1.3 version is not maintained; if 1.4 isn't working, we should get it working. At least, it should make a better error message in this case. comment:3 Changed 8 years ago by phobik I'd also like to follow this, in on a XP SP2 machine. comment:4 Changed 8 years ago by phobos So, we've been shipping libevent 1.4.4 with the Win32 packages since May 2008. 0.2.1.4-alpha packages include libevent 1.4.6. comment:5 Changed 8 years ago by phobos As for the comment "First of all this should not be experimental software since it is a stable release" Tor itself is still an experimental low-latency anonymity network. The difference between stable and alpha is explained here: https://www.torproject.org/download#packagediff comment:6 Changed 8 years ago by Conflict I can confirm this Bug with Vista SP1 and XP SP3 - all Updates applied. Going back to 0.1.2.19 unti
0 == g->n_members failed error (from libevent) Reported by: mr-4 Owned by: Priority: Medium Milestone: Tor: unspecified Component: Core Tor/Tor Version: Tor: 0.2.4.3-alpha Severity: Keywords: tor-relay bufferevents Cc: Actual Points: Parent ID: Points: Reviewer: Sponsor: Description The full error message I get is "Error from libevent: bufferevent_ratelim.c:724: Assertion 0 == g->n_members failed in bufferevent_rate_limit_group_free". This happened after the following sequence of events: Tried to connect to google.com using tor to check my mail and got "Tried for 120 seconds to get a connection to [scrubbed]:993. Giving up. (waiting for circuit)" message appearing twice. After https://trac.torproject.org/792 a while I shutdown tor. The above message appeared. Please let me know if you need any more info. Child Tickets Oldest first Newest first Threaded Comments only Change History (12) comment:1 Changed 4 years ago by nickm Keywords tor-relay bufferevents added comment:2 follow-up: ↓ 4 Changed 4 years ago by nickm I'm assuming this Tor was built with bufferevents; what https://trac.torproject.org/projects/tor/ticket/7091 version of Libevent did you use? comment:3 Changed 4 years ago by nickm Milestone set to Tor: unspecified comment:4 in reply to: ↑ 2 ; follow-up: ↓ 5 Changed 4 years ago by mr-4 Don't know about buffevents - how do I check this out? As for libevent - libevent-2.0.20 (built from source). comment:5 in reply to: ↑ 4 ; follow-up: ↓ 6 Changed 4 years ago by nickm Replying to mr-4: Don't know about buffevents - how do I check this out? How did you configure Tor? What are the first few lines it outputs when it starts? As for libevent - libevent-2.0.20 (built from source). comment:6 in reply to: ↑ 5 Changed 4 years ago by mr-4 Replying to nickm: How did you configure Tor? What are the first few lines it outputs when it starts? I finally got it! Seeing how I compiled tor, the buffevents option is active. Since I am building from source using Fedora's own rpmbuild, the following commands were used to create the tor rpm: export LDFLAGS='-m%{isa_bits} -Wl,--as-needed,--library-path=%{_libdir}' %configure --enable-gcc-warnings --disable-asciidoc --enable-gcc-hardening --enable-linker-hardening --enable-bufferevents -
closed defect (fixed) Tor static build issues with libevent Reported by: ioerror Owned by: nickm Priority: High Milestone: Component: Core Tor/Tor Version: Severity: Normal Keywords: tor-client https://trac.torproject.org/projects/tor/ticket/2698 Cc: nickm Actual Points: Parent ID: Points: Reviewer: Sponsor: Description When attempting to configure Tor with a static libevent, I find that Tor incorrectly bitches about the following: checking for u_int8_t... yes checking for libevent directory... (system) checking whether we need extra options to link libevent... (none) checking for event_get_version... yes checking error from for event_get_version_number... no checking for event_get_method... yes checking for event_set_log_callback... yes checking for evdns_set_outgoing_bind_address... no checking for event_base_loopexit... yes checking for struct event.min_heap_idx... yes checking event2/event.h usability... no checking event2/event.h presence... no checking for event2/event.h... no checking event2/dns.h usability... no checking event2/dns.h presence... no checking for event2/dns.h... no checking event2/bufferevent_ssl.h usability... no error from libevent checking event2/bufferevent_ssl.h presence... no checking for event2/bufferevent_ssl.h... no configure: error: "You must specify an explicit --with-libevent-dir=x option when using --enable-static-libevent" I configured with this configure switch: ./configure --enable-static-libevent --with-libevent-dir=/tmp/static-tor/libevent/usr/local There are two problems. First it declares that libevent is satisfied with the system libs: checking for libevent directory... (system) Secondly it complains that we didn't give a directory: --with-libevent-dir=/path/to/libevent/stuff Configure stops here and we're unable to proceed normally. However, we hacked our way past this and discovered that configure may find include files but will not find the library files for libevent. Child Tickets Oldest first Newest first Threaded Comments only Change History (24) comment:1 Changed 6 years ago by ioerror It appears that part of the issue is that when we test against the supplied libevent directory, we're failing because we failed to add '-lrt' to our test: configure:6070: result: yes configure:6106: checking for libevent directory configure:6168: gcc -o conftest -g -O2 -I/tmp/static-tor/libevent/usr/loc