This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author unsec treedee
Recipients unsec treedee
Date 2016-04-20.16:04:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1461168268.36.0.0880478693475.issue26810@psf.upfronthosting.co.za>
In-reply-to
Content
The garbage collector is not behaving consistently across platforms for python 2.7.11.

I realize that the example code and style is not proper :-)

On the Mac OSX platform this code runs without the garbage collector "cleaning house" and there is no resulting crash from a NULL pointer.  On the Linux platform the garbage collector decides to "clean house" (deallocates the object) resulting in a NULL pointer which is not handled correctly by the c-function code (some legacy stuff) and causes a segmentation fault.

Temporarily disabling the garbage collector and enabling it later on allows a workaround (valid or not) that is consistent on all platforms.

Improper coding and style aside... the issue I am reporting is the inconsistent behaviour of the garbage collector.  I am looking for consistency across platforms (same result on all platforms).  :-)
History
Date User Action Args
2016-04-20 16:04:28unsec treedeesetrecipients: + unsec treedee
2016-04-20 16:04:28unsec treedeesetmessageid: <1461168268.36.0.0880478693475.issue26810@psf.upfronthosting.co.za>
2016-04-20 16:04:28unsec treedeelinkissue26810 messages
2016-04-20 16:04:28unsec treedeecreate