Opened 8 years ago

Closed 8 years ago

#5104 defect closed duplicate (duplicate)

iocpreactor doesn't work with 64-bit Python

Reported by: Wolfgang Owned by:
Priority: high Milestone:
Component: core Keywords: iocp
Cc: ivank Branch:


I tried the version at:

and a self compile version (VC9 64bit SDK).

But there is an error in the ICOP reactor code with socket handling:

File "D:\svn\Python_Windows64bit\Lib\site-packages\twisted\internet\iocpreactor\", line 118, in


evt.callback(rc, bytes, evt)

File "D:\svn\Python_Windows64bit\Lib\site-packages\twisted\internet\iocpreactor\", line 585, in cbAc


self.handleAccept(rc, evt)

File "D:\svn\Python_Windows64bit\Lib\site-packages\twisted\internet\iocpreactor\", line 602, in hand


struct.pack('I', self.socket.fileno()))

File "D:\svn\Python_Windows64bit\lib\", line 224, in meth

return getattr(self._sock,name)(*args)

socket.error: [Errno 10014] The system detected an invalid pointer address in attempting to use a pointer argument in a call

Use Python 2.7.1 64bit Windows, ICOP reactor, simple webserver with one Resource. Twisted 11.0 Release

Change History (2)

comment:1 Changed 8 years ago by Wolfgang

changing struct.pack('I', self.socket.fileno())) to struct.pack('Q', self.socket.fileno())) fixes the problem for Win 64bit

duplicate of #4669 sorry didn't find that one

comment:2 Changed 8 years ago by ivank

Cc: ivank added
Keywords: iocp added; Windows 64bit icop removed
Resolution: duplicate
Status: newclosed
Summary: Windows 64bit, ICOP reactor don't work, Socket erroriocpreactor doesn't work with 64-bit Python

I saw a very similar exception when I tried it 1.5 years ago.

Note: See TracTickets for help on using tickets.