[pypy-dev] 2.6.1 and freebsd-9
David Naylor
naylor.b.david at gmail.com
Wed Aug 26 22:32:59 CEST 2015
On Tuesday, 25 August 2015 23:27:35 David Naylor wrote:
> On Wednesday, 26 August 2015 00:09:14 Matti Picus wrote:
> > On 25/08/15 21:26, David Naylor wrote:
> >
> > Please find attached for a patch that fixes this issue. Would you like me
> > to submit a bug report for this patch?
> >
> > I have not translation tested this patch as yet.
> >
> > Regards
> >
> > I committed your patches as c2f97b8c2415, the last chunk looks strange
> > (why
> > standard_c_lib.__error.restype ? ) , but let's give it a shot and see what
> > happens. Matti
>
> The last chunk was unrelated to this change - it was just cleaning up
> references to FreeBSD.
>
> Although the tests now pass when run with python they still do not pass when
> run from pypy.
>
> It appears pypy does not properly handle ctypes.CDLL(name, handle=X) where X
> is an integer as returned by dlopen(3). I have an idea on how to implement
> the fix but that will need to wait for tomorrow.
Please find attached for a patch that adds support for:
ctypes.CDLL(name, handle=X)
The patch includes tests for the pypy and rpython changes. I am not sure
about the policy regarding changes to the python libraries and thus did not
add a unit test there (the standard tests are lacking one for handle support
anyway).
I have translation tested the change and the previous fix I submitted now
works on pypy :-D.
I also filed an issue #2126 to clean up the handling of 'freebsd' for
sys.platform.
Lastly, regarding the segfault: it appears to be threading related. I'll file
an issue detailing all the stack traces and anything else that I can find that
would be helpful.
Regards
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pypy-CDLL-handle.diff
Type: text/x-patch
Size: 4886 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20150826/d6e246b1/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20150826/d6e246b1/attachment.sig>
More information about the pypy-dev
mailing list