Hi. Here goes another stupid report of mine. I'm sorry:
When I unplug my network cord, tor starts using my full cpu. If I run service tor stop, it loops and never kills it. I have to kill it with a SIGPWR. I don't know if it's related, but I use wicd.
How do I debug this to provide useful information? If we can prevent disclosing my OS, that would be nice.
Trac: Username: zqcxobbe
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Child items ...
Show closed items
Linked items 0
Link issues together to show that they're related.
Learn more.
Hi. Here goes another stupid report of mine. I'm sorry:
When I unplug my network cord, tor starts using my full cpu. If I run service tor stop, it loops and never kills it. I have to kill it with a SIGPWR. I don't know if it's related, but I use wicd.
How do I debug this to provide useful information? If we can prevent disclosing my OS, that would be nice.
I managed to solve it, and I cannot reproduce anymore. What I did was to install torsocks from official repositories, and re-install it with my own version. The problem is gone, and I cannot make it happen again. I tried to remove the official version before reinstalling, but that did not bring back the problem. I don't know what happened.
I managed to solve it, and I cannot reproduce anymore. What I did was to install torsocks from official repositories, and re-install it with my own version. The problem is gone, and I cannot make it happen again. I tried to remove the official version before reinstalling, but that did not bring back the problem. I don't know what happened.
It's still there. How it happened: suspended the computer, unplugged network and power cords, started the computer (came back from suspension) without power cord (laptop), worked a little on unrelated stuff (no torsocks running) and after a couple of minutes, tor started using up to 98% of the CPU.
Trac: Username: zqcxobbe Status: closed to reopened Resolution: fixed toN/A
What tor version? (what configure options used?) What libevent version?
How do I debug this to provide useful information?
[ticket:4588#comment:1 To debug], it would be good to know where we're actually freezing. Try running with "DisableDebuggerAttachment 0", then if it locks up again, attach a debugger with "gdb -p {PID of tor}", and use "bt" to get a stack trace and figure out where Tor is stalled?
Trac: Keywords: tor cpu deleted, tor cpu hang added
What tor version? (what configure options used?) What libevent version?
Tor version 0.2.7.6 (git-605ae665009853bd).
2.0.21-stable-1ubuntu1 libevent-2.0-5_2.0.21-stable-1ubuntu1_amd64.deb
However, and I'm really sorry, I haven't been able to reproduce this. I swear by all that is free that this happened to me at least three times. If it happens again, I will use your instructions and report. Double apologies if this was a duplicate. I did search for something similar (freezing is not really what happened; it started to again as soon as I plugged back the cord).
[ticket:4588#comment:1 To debug], it would be good to know where we're actually freezing. Try running with "DisableDebuggerAttachment 0", then if it locks up again, attach a debugger with "gdb -p {PID of tor}", and use "bt" to get a stack trace and figure out where Tor is stalled?
It happened again. I tried the suggestion above, but I only got "No stack" in gdb. Any ideas of how to get some useful information?
"Could not attach to process." and/or "ptrace: Operation not permitted." too?
I don't remember any of that, but I'll check when it happens again.
I hope that this helps
$ sudo gdb -p 2369GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1Copyright (C) 2014 Free Software Foundation, Inc.License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>This is free software: you are free to change and redistribute it.There is NO WARRANTY, to the extent permitted by law. Type "show copying"and "show warranty" for details.This GDB was configured as "x86_64-linux-gnu".Type "show configuration" for configuration details.For bug reporting instructions, please see:<http://www.gnu.org/software/gdb/bugs/>.Find the GDB manual and other documentation resources online at:<http://www.gnu.org/software/gdb/documentation/>.For help, type "help".Type "apropos word" to search for commands related to "word".Attaching to process 2369Reading symbols from /usr/bin/tor...(no debugging symbols found)...done.Reading symbols from /lib/x86_64-linux-gnu/libz.so.1...(no debugging symbols found)...done.Loaded symbols for /lib/x86_64-linux-gnu/libz.so.1Reading symbols from /lib/x86_64-linux-gnu/libm.so.6...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/libm-2.19.so...done.done.Loaded symbols for /lib/x86_64-linux-gnu/libm.so.6Reading symbols from /usr/lib/x86_64-linux-gnu/libevent-2.0.so.5...(no debugging symbols found)...done.Loaded symbols for /usr/lib/x86_64-linux-gnu/libevent-2.0.so.5Reading symbols from /lib/x86_64-linux-gnu/libssl.so.1.0.0...(no debugging symbols found)...done.Loaded symbols for /lib/x86_64-linux-gnu/libssl.so.1.0.0Reading symbols from /lib/x86_64-linux-gnu/libcrypto.so.1.0.0...(no debugging symbols found)...done.Loaded symbols for /lib/x86_64-linux-gnu/libcrypto.so.1.0.0Reading symbols from /usr/lib/x86_64-linux-gnu/libseccomp.so.2...(no debugging symbols found)...done.Loaded symbols for /usr/lib/x86_64-linux-gnu/libseccomp.so.2Reading symbols from /lib/x86_64-linux-gnu/libpthread.so.0...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/libpthread-2.19.so...done.done.[Thread debugging using libthread_db enabled]Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".Loaded symbols for /lib/x86_64-linux-gnu/libpthread.so.0Reading symbols from /lib/x86_64-linux-gnu/libc.so.6...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/libc-2.19.so...done.done.Loaded symbols for /lib/x86_64-linux-gnu/libc.so.6Reading symbols from /lib/x86_64-linux-gnu/libdl.so.2...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/libdl-2.19.so...done.done.Loaded symbols for /lib/x86_64-linux-gnu/libdl.so.2Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/ld-2.19.so...done.done.Loaded symbols for /lib64/ld-linux-x86-64.so.2Reading symbols from /lib/x86_64-linux-gnu/libgcc_s.so.1...(no debugging symbols found)...done.Loaded symbols for /lib/x86_64-linux-gnu/libgcc_s.so.1Reading symbols from /lib/x86_64-linux-gnu/libnss_compat.so.2...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/libnss_compat-2.19.so...done.done.Loaded symbols for /lib/x86_64-linux-gnu/libnss_compat.so.2Reading symbols from /lib/x86_64-linux-gnu/libnsl.so.1...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/libnsl-2.19.so...done.done.Loaded symbols for /lib/x86_64-linux-gnu/libnsl.so.1Reading symbols from /lib/x86_64-linux-gnu/libnss_nis.so.2...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/libnss_nis-2.19.so...done.done.Loaded symbols for /lib/x86_64-linux-gnu/libnss_nis.so.2Reading symbols from /lib/x86_64-linux-gnu/libnss_files.so.2...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/libnss_files-2.19.so...done.done.Loaded symbols for /lib/x86_64-linux-gnu/libnss_files.so.20x000056505b2d65b0 in circuit_get_global_list ()(gdb) bt#0 0x000056505b2d65b0 in circuit_get_global_list ()#1 0x000056505b2e27fa in circuit_stream_is_being_handled ()#2 0x000056505b2d0878 in ?? ()#3 0x000056505b2d429c in circuit_establish_circuit ()#4 0x000056505b2e5051 in circuit_launch_by_extend_info ()#5 0x000056505b2e5b75 in ?? ()#6 0x000056505b2e6422 in connection_ap_handshake_attach_circuit ()#7 0x000056505b306cf8 in connection_ap_handshake_rewrite_and_attach ()#8 0x000056505b336d3f in ?? ()#9 0x00007feed8b0efd3 in ?? () from /usr/lib/x86_64-linux-gnu/libevent-2.0.so.5#10 0x00007feed8b0f0a9 in ?? () from /usr/lib/x86_64-linux-gnu/libevent-2.0.so.5#11 0x00007feed8af2f24 in event_base_loop () from /usr/lib/x86_64-linux-gnu/libevent-2.0.so.5#12 0x000056505b25e49d in do_main_loop ()#13 0x000056505b2625ad in tor_main ()#14 0x000056505b25b7e9 in main ()
We've made a lot of progress since this was opened, and rewritten most of the periodic event code. Please reopen if this is still happening with 0.3.5.x or later.
Trac: Status: assigned to closed Resolution: N/Ato worksforme