[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #30012 [Core Tor/Stem]: When stem receives a signal, log useful information
#30012: When stem receives a signal, log useful information
---------------------------+--------------------------
Reporter: teor | Owner: teor
Type: defect | Status: assigned
Priority: Medium | Milestone:
Component: Core Tor/Stem | Version:
Severity: Normal | Resolution:
Keywords: tor-needs | Actual Points:
Parent ID: #29437 | Points:
Reviewer: | Sponsor:
---------------------------+--------------------------
Changes (by teor):
* owner: atagar => teor
* status: new => assigned
Comment:
See my pull request:
https://github.com/torproject/stem/pull/11
When I run:
{{{
$ make test-stem
...
$ killall -USR1 <run_tests.py pid>
}}}
I see:
{{{
control.controller... Signal 30 received.
Traceback:
File "/Users/base/stem/run_tests.py", line 398, in <module>
main()
File "/Users/base/stem/run_tests.py", line 239, in main
run_result = _run_test(args, test_class, output_filters)
File "/Users/base/stem/run_tests.py", line 379, in _run_test
run_result = stem.util.test_tools.TimedTestRunner(test_results,
verbosity = 2).run(suite)
File "/Users/base/stem/stem/util/test_tools.py", line 308, in run
return super(TimedTestRunner, self).run(test)
File
"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/runner.py",
line 176, in run
test(result)
File
"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/suite.py",
line 84, in __call__
return self.run(*args, **kwds)
File
"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/suite.py",
line 122, in run
test(result)
File
"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py",
line 663, in __call__
return self.run(*args, **kwds)
File "/Users/base/stem/stem/util/test_tools.py", line 258, in run
result = super(type(self), self).run(result)
File
"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py",
line 615, in run
testMethod()
File "/Users/base/stem/test/require.py", line 58, in wrapped
return func(self, *args, **kwargs)
File "/Users/base/stem/test/require.py", line 58, in wrapped
return func(self, *args, **kwargs)
File "/Users/base/stem/test/integ/control/controller.py", line 538, in
test_with_invalid_ephemeral_hidden_service_port
self.assertRaisesWith(stem.ProtocolError, exc_msg,
controller.create_ephemeral_hidden_service, ports)
File "/Users/base/stem/stem/util/test_tools.py", line 288, in
assertRaisesWith
return self.assertRaisesRegexp(exc_type, '^%s$' % re.escape(exc_msg),
func, *args, **kwargs)
File "/Users/base/stem/stem/util/test_tools.py", line 298, in
assertRaisesRegexp
return super(original_type, self).assertRaisesRegexp(exc_type,
exc_msg, func, *args, **kwargs)
File
"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py",
line 1338, in deprecated_func
return original_func(*args, **kwargs)
File
"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py",
line 1285, in assertRaisesRegex
return context.handle('assertRaisesRegex', args, kwargs)
File
"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py",
line 178, in handle
callable_obj(*args, **kwargs)
File "/Users/base/stem/stem/control.py", line 3099, in
create_ephemeral_hidden_service
response = self.msg(request)
File "/Users/base/stem/stem/control.py", line 654, in msg
response = self._reply_queue.get()
File
"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/queue.py",
line 170, in get
self.not_empty.wait()
File
"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py",
line 296, in wait
waiter.acquire()
}}}
The control.controller test doesn't hang for me, but the stacktrace looks
promising.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/30012#comment:6>
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