[reportlab-users] Crash on debug builds of python 3.4.3

Robin Becker robin at reportlab.com
Tue Jan 12 05:53:43 EST 2016

Hi Mark,

I believe you are right and that there is a reference count error in the 
_rl_accel extension. When I run certain tests in python3.4.4 debug I see a dict 
object refcount error at the end which vanishes when I remove the _rl_accel 
extension file  _rl_accel.cpython-34dm.so.

I guess I will have to start debugging :(
Robin Becker
On 11/01/2016 17:41, Mark De Wit wrote:
> Hi,
> I'm working on embedding Python into my application as a scripting tool.  I have therefore recompiled Python 3.4.3 using Visual Studio 2013, in both debug and release versions.  I have also built the ReportLab 3.2.0 source release from pypi using the same environment.
> When running the simplest of ReportLab samples (copy/paste from the user guide), I find that my Python interpreter crashes on shutdown (specifically, when calling Py_Finalize).  The error appears to be a negative reference count on an object in the main Dict.  The release version appears to work ok, though whether this is due to less error checking I don't know... Ignorance is perhaps bliss in this scenario.  Note that this happens both inside my application (embedded interpreter) and the official python shell (python_d.exe crashed at the end of generating the user guide).
> I guess my question is - is ReportLabs tested against debug builds of Python?  Is the error genuine or false-positive (it's not too benign, the Python interpreter calls abort() for this fatal error...)?
> Kind regards,
> Mark de Wit

More information about the reportlab-users mailing list