TypeError thrown on RunCommand kill -9 in cros_vm |
||||
Issue description
We get an error like:
Exception TypeError: TypeError('signal handler must be signal.SIG_IGN, signal.SIG_DFL, or a callable object',) in <bound method VMTest.__del__ of <chromite.scripts.cros_run_vm_test.VMTest object at 0x7fd5ac72f510>> ignored
This is thrown by RunCommand here:
https://cs.corp.google.com/chromeos_public/chromite/scripts/cros_vm.py?l=202
I only see this when I run cros_run_vm_test --disable-kvm
RunCommand does some funky signal handling, and maybe there's a bug in there somewhere.
,
Jun 17 2017
Mike, I wasn't able to get a traceback - I think this is because this failure is happening on exit in the __del__ function. I used debug_level=logging.DEBUG but got no new info, and tried some printf debugging. Anyway I have a fix that seems to be ok: https://chromium-review.googlesource.com/c/538059/
,
Jun 17 2017
for printing, try writing directly. something like:
print('...', file=open('/dev/tty', 'w'))
,
Jul 20 2017
,
Jan 22 2018
|
||||
►
Sign in to add a comment |
||||
Comment 1 by vapier@chromium.org
, Jun 16 2017