Error From Libevent Event C 1413
closed defect (fixed) Assertion at startup on Windows 7 when socketpair fails Reported by: Vigdis Owned by: Priority: High Milestone: Tor: 0.2.2.x-final Component: Core Tor/Tor Version: Tor: 0.2.2.34 Severity: Keywords: tor-client Cc: Actual Points: Parent ID: Points: Reviewer: Sponsor: Description Hello, I talked to "Sebastian" and "helix" on the IRC, and they advised me to report my bug. I used to run vidalia-bundle-0.2.1.28-0.2.10 but since a security problem was known I had to update it. I installed vidalia-bundle-0.2.2.33-0.2.15 and tor quit at the begining. The error message are -[Warning] Warning from libevent: evsig_init: socketpair: Permission denied [WSAEACCES ] -[Warning] Warning from libevent: evthread_make_base_notifiable: socketpair: Permission denied [WSAEACCES ] -[Error] Error from libevent: event.c:1413: Assertion base failed in event_base_get_method The new alpha version is working correctly. If you need to contact me, send me a mail, it's in my info :) Child Tickets Oldest first Newest first Threaded Comments only Change History (14) comment:1 Changed 5 years ago by Sebastian Component changed from Tor Bridge to Tor Client Milestone changed from Vidalia: 0.2.15 to Tor: 0.2.2.x-final Priority changed from normal to major Summary changed from tor quit to Assertion at startup on Windows 7 when socketpair fails Version changed from Tor: 0.2.2.33 to Tor: 0.2.2.34 If I understand it correctly, what happens here is the following: We call tor_libevent_initialize(), where we have the_event_base = event_base_new_with_config(cfg);. A little below, we call log(LOG_NOTICE, LD_GENERAL, "Initialized libevent version %s using method %s. Good.", event_get_version(), tor_libevent_get_method()); with the call to tor_libevent_get_method(), which calls event_base_get_method(the_event_base);. The call asserts, because the_event_base is NULL. It is NULL because inside of event_base_new_with_config(), we have this section of code: #ifndef _EVENT_DISABLE_THREAD_SUPPORT if (!cfg || !(cfg->flags & EVENT_BASE_FLAG_NOLOCK)) { int r; EVTHREAD_ALLOC_LOCK(base->th_base_lock, EVTHREAD_LOCKTYPE_RECURSIVE); base->defer_queue.lock = base->th_base_lock; EVTHR
instructions: Windows Mac Red Hat Linux Ubuntu Click URL instructions: Right-click on ad, choose "Copy Link", then paste here → (This may not be possible with some types of ads) More information about our ad policies X You seem to have CSS turned off. Please don't fill out this field. You seem to have CSS turned off. Please don't https://trac.torproject.org/projects/tor/ticket/4457 fill out this field. Briefly describe the problem (required): Upload screenshot of ad (required): Select a file, or drag & drop file here. ✔ ✘ Please provide the ad click URL, if possible: Home Browse libevent - an asynchronous event library Mailing Lists libevent - an https://sourceforge.net/p/levent/mailman/message/21404920/ asynchronous event library Brought to you by: nickm, nprovos, strncpy Summary Files Reviews Support Wiki Mailing Lists Tickets ▾ Please use https://github.com/libevent/libevent/issues Please use https://github.com/libevent/libevent/pulls Feature Requests News Code levent-announce levent-commits levent-tracker [Levent-commits] SF.net SVN: levent:[1038] trunk/libevent/bufferevent.c [Levent-commits] SF.net SVN: levent:[1038] trunk/libevent/bufferevent.c From:
Additionally, the source code examples in these documents are also licensed under the so-called "3-Clause" or "Modified" BSD license. See the license_bsd file distributed with these documents for the full terms. For the latest version of this document, see http://www.wangafu.net/~nickm/libevent-book/Ref3_eventloop.html http://www.wangafu.net/~nickm/libevent-book/TOC.html To get the source for the latest version of this document, install git and run "git clone git://github.com/nmathewson/libevent-book.git" Working with an event loop Running the loop Once you have an event_base with some events registered https://fossies.org/dox/netatalk-3.1.9/event_8c_source.html (see the next section about how to create and register events), you will want Libevent to wait for events and alert you about them. Interface #define EVLOOP_ONCE 0x01 #define EVLOOP_NONBLOCK 0x02 #define EVLOOP_NO_EXIT_ON_EMPTY 0x04 int error from event_base_loop(struct event_base *base, int flags); By default, the event_base_loop() function runs an event_base until there are no more events registered in it. To run the loop, it repeatedly checks whether any of the registered events has triggered (for example, if a read event's file descriptor is ready to read, or if a timeout event's timeout is ready to expire). Once this happens, it marks all triggered events as "active", and starts to error from libevent run them. You can change the behavior of event_base_loop() by setting one or more flags in its flags argument. If EVLOOP_ONCE is set, then the loop will wait until some events become active, then run active events until there are no more to run, then return. If EVLOOP_NONBLOCK is set, then the loop will not wait for events to trigger: it will only check whether any events are ready to trigger immediately, and run their callbacks if so. Ordinarily, the loop will exit as soon as it has no pending or active events. You can override this behavior by passing the EVLOOP_NO_EXIT_ON_EMPTY flag---for example, if you're going to be adding events from some other thread. If you do set EVLOOP_NO_EXIT_ON_EMPTY, the loop will keep running until somebody calls event_base_loopbreak(), or calls event_base_loopexit(), or an error occurs. When it is done, event_base_loop() returns 0 if it exited normally, -1 if it exited because of some unhandled error in the backend, and 1 if it exited because there were no more pending or active events. To aid in understanding, here's an approximate summary of the event_base_loop algorithm: Pseudocode while (any events are registered with the loop, or EVLOOP_NO_EXIT_ON_EMPTY was set) { if (EVLOOP_NONBLOCK was set, or any events are already active) If any reg
server - probably since the according package was replaced by a newer version. A search for a fresher respectively similar named package gives the following result (to browse the archive contents click on the name of the found archive): ... in the Fossies Fresh archive path "/linux/misc": netatalk-3.1.10.tar.gz (12 Sep 12:15, 2493009 Bytes) Netatalk can be used to turn an *NIX machine into a high-performance and reliable file and print server for Macintosh computers. Just a guess: The requested Fossies doxygen-generated file or documentation you searched for originally under /dox/netatalk-3.1.9/event_8c_source.html may now be available under /dox/netatalk-3.1.10/event_8c_source.html