-
Notifications
You must be signed in to change notification settings - Fork 151
Closed
Labels
Description
Description
vprof crashes with a stacktrace on scripts with Python 3.6.1 32-bit and Windows
How to reproduce
- Use Windows 10.
- Install Python 3.6.1 32 bit. (Also had issues with 64 bit.)
- Type
pip install vprof - create a script that says
print("Hi")and save it astest.py - On the command line type
vprof -c p test.py
Actual results
C:\>vprof -c p test.py
Running Profiler...
Traceback (most recent call last):
File "c:\program files (x86)\python36-32\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\program files (x86)\python36-32\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Program Files (x86)\Python36-32\Scripts\vprof.exe\__main__.py", line 9, in <module>
File "c:\program files (x86)\python36-32\lib\site-packages\vprof\__main__.py", line 88, in main
source, config, verbose=True)
File "c:\program files (x86)\python36-32\lib\site-packages\vprof\runner.py", line 78, in run_profilers
run_stats[option] = curr_profiler.run()
File "c:\program files (x86)\python36-32\lib\site-packages\vprof\base_profiler.py", line 162, in run
return dispatcher()
File "c:\program files (x86)\python36-32\lib\site-packages\vprof\base_profiler.py", line 71, in multiprocessing_wrapper
process.start()
File "c:\program files (x86)\python36-32\lib\multiprocessing\process.py", line 105, in start
self._popen = self._Popen(self)
File "c:\program files (x86)\python36-32\lib\multiprocessing\context.py", line 223, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
File "c:\program files (x86)\python36-32\lib\multiprocessing\context.py", line 322, in _Popen
return Popen(process_obj)
File "c:\program files (x86)\python36-32\lib\multiprocessing\popen_spawn_win32.py", line 65, in __init__
reduction.dump(process_obj, to_child)
File "c:\program files (x86)\python36-32\lib\multiprocessing\reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
AttributeError: Can't pickle local object 'run_in_another_process.<locals>.multiprocessing_wrapper.<locals>.remote_wrapper'
C:\>Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\program files (x86)\python36-32\lib\multiprocessing\spawn.py", line 99, in spawn_main
new_handle = reduction.steal_handle(parent_pid, pipe_handle)
File "c:\program files (x86)\python36-32\lib\multiprocessing\reduction.py", line 82, in steal_handle
_winapi.PROCESS_DUP_HANDLE, False, source_pid)
OSError: [WinError 87] The parameter is incorrect
Expected results
Not a stack trace.
Version and platform
Python 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 17:54:52) [MSC v.1900 32 bit (Intel)] on win32
Reactions are currently unavailable