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

Mark De Wit mark.dewit at iesve.com
Tue Jan 12 06:07:42 EST 2016


Hi robin,

Thanks for checking up on that so fast!  That's exactly the behaviour I was seeing, a huge negative reference count, I was wondering if it was overflowing (underflowing) or getting corrupted elsewhere.  Let me know if you'd like me to try anything out, easy enough for me to rebuild the library.

Mark

-----Original Message-----
From: reportlab-users [mailto:reportlab-users-bounces at lists2.reportlab.com] On Behalf Of Robin Becker
Sent: 12 January 2016 10:53
To: reportlab-users <reportlab-users at lists2.reportlab.com>
Subject: Re: [reportlab-users] Crash on debug builds of python 3.4.3

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
>



_______________________________________________
reportlab-users mailing list
reportlab-users at lists2.reportlab.com
https://pairlist2.pair.net/mailman/listinfo/reportlab-users


More information about the reportlab-users mailing list