[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #27813 [Core Tor/Tor]: Tor 0.3.4.8 is leaking memory



#27813: Tor 0.3.4.8 is leaking memory
--------------------------+------------------------------
 Reporter:  anong         |          Owner:  (none)
     Type:  defect        |         Status:  new
 Priority:  High          |      Milestone:
Component:  Core Tor/Tor  |        Version:  Tor: 0.3.4.8
 Severity:  Critical      |     Resolution:
 Keywords:  oom           |  Actual Points:
Parent ID:                |         Points:
 Reviewer:                |        Sponsor:
--------------------------+------------------------------

Comment (by anong):

 Here are the latest log entries before the process got killed. Tor is
 running on a Raspberri Pi.


 {{{
 Sep 21 12:37:03 DietPi Tor[1369]: Heartbeat: Tor's uptime is 1 day 12:00
 hours, with 1365 circuits open. I've sent 69.43 GB and received 68.12 GB.
 Sep 21 12:37:03 DietPi Tor[1369]: Circuit handshake stats since last time:
 3340/3340 TAP, 33194/33194 NTor.
 Sep 21 12:37:03 DietPi Tor[1369]: Since startup, we have initiated 0 v1
 connections, 0 v2 connections, 0 v3 connections, and 32984 v4 connections;
 and received 2 v1 connect
 Sep 21 12:37:03 DietPi Tor[1369]: DoS mitigation since startup: 0 circuits
 killed with too many cells. 0 circuits rejected, 0 marked addresses. 0
 connections closed. 389 si
 Sep 21 13:17:01 DietPi CRON[7483]: pam_unix(cron:session): session opened
 for user root by (uid=0)
 Sep 21 13:17:01 DietPi CRON[7487]: (root) CMD (   cd / && run-parts
 --report /etc/cron.hourly)
 Sep 21 13:17:02 DietPi CRON[7483]: pam_unix(cron:session): session closed
 for user root
 Sep 21 14:17:01 DietPi CRON[7615]: pam_unix(cron:session): session opened
 for user root by (uid=0)
 Sep 21 14:17:01 DietPi CRON[7619]: (root) CMD (   cd / && run-parts
 --report /etc/cron.hourly)
 Sep 21 14:17:01 DietPi CRON[7615]: pam_unix(cron:session): session closed
 for user root
 Sep 21 14:26:18 DietPi dropbear[7726]: Child connection from
 192.168.100.11:51216
 Sep 21 14:26:18 DietPi dropbear[7726]: Pubkey auth succeeded for 'root'
 with key md5 de:04:75:29:92:ad:c2:a0:9a:62:27:4a:37:53:92:fb from
 192.168.100.11:51216
 Sep 21 14:26:18 DietPi dropbear[7727]: lastlog_perform_login: Couldn't
 stat /var/log/lastlog: No such file or directory
 Sep 21 14:26:18 DietPi dropbear[7727]: lastlog_openseek: /var/log/lastlog
 is not a file or directory!
 Sep 21 14:27:23 DietPi sudo[7880]:     root : TTY=pts/1 ; PWD=/root ; USER
 =debian-tor ; COMMAND=/usr/local/bin/nyx
 Sep 21 14:27:23 DietPi sudo[7880]: pam_unix(sudo:session): session opened
 for user debian-tor by root(uid=0)
 Sep 21 14:27:25 DietPi Tor[1369]: New control connection opened from
 127.0.0.1.
 Sep 21 14:28:30 DietPi sudo[7880]: pam_unix(sudo:session): session closed
 for user debian-tor
 Sep 21 15:17:01 DietPi CRON[7943]: pam_unix(cron:session): session opened
 for user root by (uid=0)
 Sep 21 15:17:01 DietPi CRON[7947]: (root) CMD (   cd / && run-parts
 --report /etc/cron.hourly)
 Sep 21 15:17:02 DietPi CRON[7943]: pam_unix(cron:session): session closed
 for user root
 Sep 21 15:34:42 DietPi dropbear[7726]: Exit (root): Disconnect received
 Sep 21 16:17:01 DietPi CRON[8072]: pam_unix(cron:session): session opened
 for user root by (uid=0)
 Sep 21 16:17:01 DietPi CRON[8076]: (root) CMD (   cd / && run-parts
 --report /etc/cron.hourly)
 Sep 21 16:17:02 DietPi CRON[8072]: pam_unix(cron:session): session closed
 for user root
 Sep 21 17:17:01 DietPi kernel: tor invoked oom-killer:
 gfp_mask=0x14080c0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),  order=0,
 oom_score_adj=0
 Sep 21 17:17:02 DietPi kernel: tor cpuset=/ mems_allowed=0
 Sep 21 17:17:02 DietPi kernel: CPU: 3 PID: 1376 Comm: tor Not tainted
 4.14.70-v7+ #1144
 Sep 21 17:17:02 DietPi kernel: Hardware name: BCM2835
 Sep 21 17:17:02 DietPi kernel: [<8010ffd8>] (unwind_backtrace) from
 [<8010c240>] (show_stack+0x20/0x24)
 Sep 21 17:17:02 DietPi kernel: [<8010c240>] (show_stack) from [<80787b24>]
 (dump_stack+0xd4/0x118)
 Sep 21 17:17:02 DietPi kernel: [<80787b24>] (dump_stack) from [<80224564>]
 (dump_header+0xac/0x208)
 Sep 21 17:17:02 DietPi kernel: [<80224564>] (dump_header) from
 [<802238cc>] (oom_kill_process+0x478/0x584)
 Sep 21 17:17:02 DietPi kernel: [<802238cc>] (oom_kill_process) from
 [<8022422c>] (out_of_memory+0x124/0x334)
 Sep 21 17:17:02 DietPi kernel: [<8022422c>] (out_of_memory) from
 [<80229ce8>] (__alloc_pages_nodemask+0x1060/0x11d8)
 Sep 21 17:17:02 DietPi kernel: [<80229ce8>] (__alloc_pages_nodemask) from
 [<802561e8>] (__pte_alloc+0x34/0x19c)
 Sep 21 17:17:02 DietPi kernel: [<802561e8>] (__pte_alloc) from
 [<80259eb4>] (handle_mm_fault+0xb98/0xc20)
 Sep 21 17:17:02 DietPi kernel: [<80259eb4>] (handle_mm_fault) from
 [<802543f0>] (__get_user_pages+0x108/0x470)
 Sep 21 17:17:02 DietPi kernel: [<802543f0>] (__get_user_pages) from
 [<80254dc4>] (populate_vma_page_range+0x84/0x8c)
 Sep 21 17:17:02 DietPi kernel: [<80254dc4>] (populate_vma_page_range) from
 [<80254e7c>] (__mm_populate+0xb0/0x148)
 Sep 21 17:17:02 DietPi kernel: [<80254e7c>] (__mm_populate) from
 [<802429cc>] (vm_mmap_pgoff+0xc4/0xc8)
 Sep 21 17:17:02 DietPi kernel: [<802429cc>] (vm_mmap_pgoff) from
 [<8025d3d0>] (SyS_mmap_pgoff+0x58/0xd0)
 Sep 21 17:17:02 DietPi kernel: [<8025d3d0>] (SyS_mmap_pgoff) from
 [<80108060>] (ret_fast_syscall+0x0/0x28)
 Sep 21 17:17:02 DietPi kernel: Mem-Info:
 Sep 21 17:17:02 DietPi kernel: active_anon:7 inactive_anon:0
 isolated_anon:0
                                 active_file:19 inactive_file:0
 isolated_file:0
                                 unevictable:177347 dirty:6 writeback:0
 unstable:0
                                 slab_reclaimable:2269
 slab_unreclaimable:6250
                                 mapped:18266 shmem:20 pagetables:394
 bounce:0
                                 free:5786 free_pcp:42 free_cma:1700
 Sep 21 17:17:02 DietPi kernel: Node 0 active_anon:28kB inactive_anon:0kB
 active_file:76kB inactive_file:0kB unevictable:709388kB isolated(anon):0kB
 isolated(file):0kB mappe
 Sep 21 17:17:02 DietPi kernel: Normal free:23144kB min:16384kB low:20480kB
 high:24576kB active_anon:196kB inactive_anon:0kB active_file:44kB
 inactive_file:0kB unevictable:7
 Sep 21 17:17:02 DietPi kernel: lowmem_reserve[]: 0 0
 Sep 21 17:17:02 DietPi kernel: Normal: 198*4kB (UMEC) 229*8kB (UMEC)
 325*16kB (UMEC) 69*32kB (UMEC) 14*64kB (UMEC) 6*128kB (UMC) 2*256kB (UC)
 3*512kB (M) 3*1024kB (UM) 1*20
 Sep 21 17:17:02 DietPi kernel: 18353 total pagecache pages
 Sep 21 17:17:02 DietPi kernel: 11 pages in swap cache
 Sep 21 17:17:02 DietPi kernel: Swap cache stats: add 4204, delete 4193,
 find 24/46
 Sep 21 17:17:02 DietPi kernel: Free swap  = 1080828kB
 Sep 21 17:17:02 DietPi kernel: Total swap = 1097724kB
 Sep 21 17:17:02 DietPi kernel: 255488 pages RAM
 Sep 21 17:17:02 DietPi kernel: 0 pages HighMem/MovableOnly
 Sep 21 17:17:02 DietPi kernel: 5443 pages reserved
 Sep 21 17:17:02 DietPi kernel: 2048 pages cma reserved
 Sep 21 17:17:02 DietPi kernel: [ pid ]   uid  tgid total_vm      rss
 nr_ptes nr_pmds swapents oom_score_adj name
 Sep 21 17:17:02 DietPi kernel: [   84]     0    84     6889      446
 10       0       98             0 systemd-journal
 Sep 21 17:17:02 DietPi kernel: [  142]     0   142     3492      435
 8       0      126         -1000 systemd-udevd
 Sep 21 17:17:02 DietPi kernel: [  276]     0   276      616      262
 6       0       30             0 dropbear
 Sep 21 17:17:02 DietPi kernel: [  814]     0   814     1049      258
 5       0       35             0 agetty
 Sep 21 17:17:02 DietPi kernel: [  953]     0   953     1324      403
 6       0       43             0 cron
 Sep 21 17:17:02 DietPi kernel: [ 1369]  1001  1369   182943   177124
 358       0        0             0 tor
 Sep 21 17:17:02 DietPi kernel: Out of memory: Kill process 1369 (tor)
 score 338 or sacrifice child
 Sep 21 17:17:02 DietPi kernel: Killed process 1369 (tor) total-
 vm:731772kB, anon-rss:635436kB, file-rss:73060kB, shmem-rss:0kB
 Sep 21 17:17:02 DietPi kernel: oom_reaper: reaped process 1369 (tor), now
 anon-rss:636364kB, file-rss:73048kB, shmem-rss:0kB
 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/27813#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs