[libre-riscv-dev] [Bug 186] Create decoder for SOC: Power ISA and RISC-V
bugzilla-daemon at libre-riscv.org
bugzilla-daemon at libre-riscv.org
Thu Mar 26 11:02:24 GMT 2020
http://bugs.libre-riscv.org/show_bug.cgi?id=186
--- Comment #115 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
i enabled export PYTHONTRACEMALLOC=25
https://docs.python.org/3/using/cmdline.html#envvar-PYTHONTRACEMALLOC
/usr/lib/python3.7/subprocess.py:858: ResourceWarning: subprocess 1551551 is
still running
ResourceWarning, source=self)
Object allocated at (most recent call last):
File "simulator/test_sim.py", lineno 106
unittest.main()
File "/usr/lib/python3.7/unittest/main.py", lineno 101
self.runTests()
File "/usr/lib/python3.7/unittest/main.py", lineno 271
self.result = testRunner.run(self.test)
File "/usr/lib/python3.7/unittest/runner.py", lineno 176
test(result)
File "/usr/lib/python3.7/unittest/suite.py", lineno 84
return self.run(*args, **kwds)
File "/usr/lib/python3.7/unittest/suite.py", lineno 122
test(result)
File "/usr/lib/python3.7/unittest/suite.py", lineno 84
return self.run(*args, **kwds)
File "/usr/lib/python3.7/unittest/suite.py", lineno 122
test(result)
File "/usr/lib/python3.7/unittest/case.py", lineno 663
return self.run(*args, **kwds)
File "/usr/lib/python3.7/unittest/case.py", lineno 615
testMethod()
File "simulator/test_sim.py", lineno 58
self.run_test_program(program, [1, 2, 3, 4])
File "simulator/test_sim.py", lineno 95
with run_program(prog) as q:
File "/home/lkcl/src/libreriscv/soc/src/soc/simulator/qemu.py", lineno 54
q = QemuController(program.binfile.name)
File "/home/lkcl/src/libreriscv/soc/src/soc/simulator/qemu.py", lineno 16
stdin=subprocess.PIPE)
simulator/test_sim.py:58: ResourceWarning: unclosed file <_io.BufferedWriter
name=4>
self.run_test_program(program, [1, 2, 3, 4])
this gets rid of it:
self.qemu_popen.stdout.close()
self.qemu_popen.stdin.close()
except one of the qemus is still running, thissays you have
to call qemu_popen.communicate():
https://docs.python.org/3/library/subprocess.html
fixed with a quick commit.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the libre-riscv-dev
mailing list