[tor-bugs] #4588 [Tor Relay]: Tor hang on with cpu at 100%

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Sun Nov 27 22:41:45 UTC 2011


#4588: Tor hang on with cpu at 100%
-----------------------+----------------------------------------------------
 Reporter:  stars      |          Owner:                    
     Type:  defect     |         Status:  new               
 Priority:  critical   |      Milestone:                    
Component:  Tor Relay  |        Version:  Tor: 0.2.3.8-alpha
 Keywords:             |         Parent:                    
   Points:             |   Actualpoints:                    
-----------------------+----------------------------------------------------

Comment(by stars):

 here are my new trace :

 Loaded symbols for /lib64/ld-linux-x86-64.so.2
 [Thread debugging using libthread_db enabled]
 [New Thread 0x7fb2123df700 (LWP 12462)]
 [New Thread 0x7fb212be0700 (LWP 12461)]
 [New Thread 0x7fb2133e1700 (LWP 12460)]
 [New Thread 0x7fb213be2700 (LWP 12459)]
 ev_token_bucket_get_tick (tv=0x7fff59a8b120, cfg=0x7fb219a014c0) at
 bufferevent_ratelim.c:140
 140     }
 (gdb) bt full
 #0  ev_token_bucket_get_tick (tv=0x7fff59a8b120, cfg=0x7fb219a014c0) at
 bufferevent_ratelim.c:140
 No locals.
 #1  0x00007fb215ff8d88 in bufferevent_update_buckets (bev=0x7fb219f73880)
 at bufferevent_ratelim.c:120
         now = {tv_sec = 1322428891, tv_usec = 707240}
         tick = <value optimized out>
 #2  _bufferevent_get_rlim_max (bev=0x7fb219f73880) at
 bufferevent_ratelim.c:225
         max_so_far = 16384
 #3  _bufferevent_get_read_max (bev=0x7fb219f73880) at
 bufferevent_ratelim.c:263
 No locals.
 #4  0x00007fb216225834 in do_read (bev_ssl=0x7fff59a8b120,
 n_to_read=429921472)
     at bufferevent_openssl.c:572
         input = 0x7fb21aab7010
         r = <value optimized out>
         n = <value optimized out>
         n_used = <value optimized out>
         blocked = <value optimized out>
         space = {{iov_base = 0x7fb21a3a3400, iov_len = 96}, {iov_base =
 0x4000,
             iov_len = 140402916538496}}
 #5  0x00007fb2162260ea in consider_reading (bev_ssl=0x7fb219f73880) at
 bufferevent_openssl.c:775
         r = <value optimized out>
         n_to_read = <value optimized out>
 #6  0x00007fb216226178 in be_openssl_readeventcb (fd=<value optimized
 out>, what=0,
     ptr=0x7fb219f73880) at bufferevent_openssl.c:890
 No locals.
 #7  0x00007fb215fed5e3 in event_process_active_single_queue
 (base=0x7fb218d15240,
     activeq=0x7fb218d162a0, max_to_process=<value optimized out>,
 endtime=<value optimized out>)
     at event.c:1407
         ev = 0x7fb219f73890
         count = 1
         __func__ = "event_process_active_single_queue"
 #8  0x00007fb215fee1b8 in event_process_active (base=0x7fb218d15240,
 flags=<value optimized out>)
     at event.c:1506
         i = 0
         tv = {tv_sec = 951494, tv_usec = 817325}
         maxcb = 2147483647
 ---Type <return> to continue, or q <return> to quit---
         endtime = 0x0
         limit_after_prio = 2147483647
 #9  event_base_loop (base=0x7fb218d15240, flags=<value optimized out>) at
 event.c:1709
         n = 339387029
         evsel = 0x7fb21621fd80
         tv = {tv_sec = 0, tv_usec = 460}
         tv_p = <value optimized out>
         res = <value optimized out>
         retval = <value optimized out>
         __func__ = "event_base_loop"
 #10 0x00007fb216afa5f7 in do_main_loop ()
 No symbol table info available.
 #11 0x00007fb216afbc8f in tor_main ()
 No symbol table info available.
 #12 0x00007fb216af586c in main ()
 No symbol table info available.

 (gdb) next
 bufferevent_update_buckets (bev=0x7fb219f73880) at
 bufferevent_ratelim.c:121
 121             if (tick != bev->rate_limiting->limit.last_updated)
 _bufferevent_get_rlim_max (bev=0x7fb219f73880) at
 bufferevent_ratelim.c:226
 226                     max_so_far = LIM(bev->rate_limiting->limit);
 228             if (bev->rate_limiting->group) {
 232                     LOCK_GROUP(g);
 233                     if (GROUP_SUSPENDED(g)) {
 _bufferevent_get_read_max (bev=0x7fb219f73880) at
 bufferevent_ratelim.c:263
 263             return _bufferevent_get_rlim_max(bev, 0);
 264     }
 do_read (bev_ssl=0x7fb219f73880, n_to_read=3968) at
 bufferevent_openssl.c:576
 576             n = evbuffer_reserve_space(input, n_to_read, space, 2);
 577             if (n < 0)

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/4588#comment:6>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list