File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1616from qiling .os .windows .fncc import *
1717from qiling .os .windows .utils import *
1818from qiling .os .mapper import QlFsMappedObject
19+ # This is intended.
20+ # See https://stackoverflow.com/questions/8804830/python-multiprocessing-picklingerror-cant-pickle-type-function
1921import multiprocess as mb
22+ import traceback
2023
2124# On Windows, the CPython GC is too conservative and may hold too
2225# many Unicorn objects (nearly 16GB) until free-ing them which may
@@ -33,7 +36,8 @@ def _run_test(self, results):
3336 try :
3437 results ['result' ] = self ._test ()
3538 except Exception as e :
36- results ['exception' ] = e
39+ tb = traceback .format_exc ()
40+ results ['exception' ] = tb
3741 results ['result' ] = False
3842
3943 def run (self ):
@@ -45,7 +49,7 @@ def run(self):
4549 if "exception" not in results :
4650 return results ['result' ]
4751 else :
48- raise results ['exception' ]
52+ raise RuntimeError ( f" \n \n Got an exception during subprocess: \n \n { results ['exception' ]} " )
4953
5054
5155class TestOut :
You can’t perform that action at this time.
0 commit comments