Re: [Python-Dev] libffi embedded in CPython

2015-03-24 Thread Paul Moore
On 12 March 2015 at 17:44, Paul Moore wrote: > On 12 March 2015 at 17:26, Brett Cannon wrote: >>> I'm all for ditching our 'libffi_msvc' in favor of adding libffi as >>> another 'external' for the Windows build. I have managed to get >>> _ctypes to build on Windows using vanilla libffi sources,

Re: [Python-Dev] PiCxx

2015-03-24 Thread Terry Reedy
On 3/24/2015 11:53 AM, π wrote: Hello PythonDevvers, I apologise in advance. This is slightly off topic. This will be my only post on the subject. pydev is about development *of* Python the language and CPython the implementation. python-list is about development *with* Python. This post w

[Python-Dev] PiCxx

2015-03-24 Thread π
Hello PythonDevvers, I apologise in advance. This is slightly off topic. This will be my only post on the subject. PyCXX (http://sourceforge.net/projects/cxx/ ) accomplishes roughly the same as Boost::Python (C++ wrapper for CPython), only without requirin

Re: [Python-Dev] How is obmalloc safe with "Invalid read of size 4" ?

2015-03-24 Thread Hrvoje Niksic
On 03/24/2015 03:28 PM, Karl Pickett wrote: So we then tried running it under valgrind, and we got a lot of nasty errors. Even after reading the Misc/README.valgrind, which talks about *uninitialized* reads being ok, I still don't see how reading from *freed* memory would ever be safe, and why t

[Python-Dev] How is obmalloc safe with "Invalid read of size 4" ?

2015-03-24 Thread Karl Pickett
We are having random, rare, nonreproducible segfaults/hangs with python2 on ubuntu 14.04 in EC2. I've managed to attach GDB to some hung ones and there looks like clear memory corruption in the 'interned' hash table, causing lookdict_string() to spin forever because all remaining slots have a garb