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 mark.dickinson
Recipients mark.dickinson, vojtechfried
Date 2017-07-24.12:27:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1500899228.15.0.515412720689.issue31005@psf.upfronthosting.co.za>
In-reply-to
Content
It's the f_back reference from the inner frame that's keeping the outer frame alive.

Here's a picture of the create garbage: http://imgur.com/a/OCRe3

And here's the script that created it:


import gc
import refcycle
import sys
import traceback

def hold_world():
    try:
        raise Exception("test1")
    except Exception as exc:
        tmp = exc

def use_obj( o ):
    hold_world()

def main():
    gc.disable()
    gc.collect()
    o = ["survivor"]
    use_obj( o )
    garbage = refcycle.garbage()
    garbage.export_image()


if __name__ == '__main__':
    main()
History
Date User Action Args
2017-07-24 12:27:08mark.dickinsonsetrecipients: + mark.dickinson, vojtechfried
2017-07-24 12:27:08mark.dickinsonsetmessageid: <1500899228.15.0.515412720689.issue31005@psf.upfronthosting.co.za>
2017-07-24 12:27:08mark.dickinsonlinkissue31005 messages
2017-07-24 12:27:08mark.dickinsoncreate