Skip to content

NULL pointer acess on Windows 7 #137

Open
@crziter

Description

@crziter

I just tried pyre on Windows 7 and got an exception right here: https://github.com/zeromq/pyre/blob/master/pyre/zhelper.py#L527

Full stack traceback:

Traceback (most recent call last):
  File "C:\Python\Python37-32\lib\threading.py", line 885, in _bootstrap
    self._bootstrap_inner()
  File "C:\Python\Python37-32\lib\threading.py", line 917, in _bootstrap_inner
    self.run()
  File "c:\development\mon\venv\lib\site-packages\fbs_runtime\excepthook\__init__.py", line 84, in run_with_except_hook
    run_original(*args2, **kwargs2)
  File "C:\Python\Python37-32\lib\threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "c:\development\mon\venv\lib\site-packages\pyre\zactor.py", line 59, in run
    self.shim_handler(*self.shim_args, **self.shim_kwargs)
  File "c:\development\mon\venv\lib\site-packages\pyre\zbeacon.py", line 64, in __init__
    self.run()
  File "c:\development\mon\venv\lib\site-packages\pyre\zbeacon.py", line 287, in run
    self.handle_pipe()
  File "c:\development\mon\venv\lib\site-packages\pyre\zbeacon.py", line 216, in handle_pipe
    self.configure(port)
  File "c:\development\mon\venv\lib\site-packages\pyre\zbeacon.py", line 199, in configure
    self.prepare_udp()
  File "c:\development\mon\venv\lib\site-packages\pyre\zbeacon.py", line 71, in prepare_udp
    self._prepare_socket()
  File "c:\development\mon\venv\lib\site-packages\pyre\zbeacon.py", line 135, in _prepare_socket
    netinf = zhelper.get_ifaddrs()
  File "c:\development\mon\venv\lib\site-packages\pyre\zhelper.py", line 113, in get_ifaddrs
    return get_win_ifaddrs()
  File "c:\development\mon\venv\lib\site-packages\pyre\zhelper.py", line 527, in get_win_ifaddrs
    fu = i.first_unicast_address.contents
ValueError: NULL pointer access

A workaround is to add try...except around the block inside for loop, and continue on exception but maybe it's not a solution for the bug.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions