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 benjamin.peterson
Recipients barry, benjamin.peterson, christian.heimes, grahamd, loewis
Date 2009-07-19.16:33:21
SpamBayes Score 1.3242454e-06
Marked as misclassified No
Message-id <1afaf6160907190933p319adb80r5f98197a17f2695e@mail.gmail.com>
In-reply-to <1248005629.89.0.064677439988.issue4200@psf.upfronthosting.co.za>
Content
2009/7/19 Graham Dumpleton <report@bugs.python.org>:
>
> Graham Dumpleton <Graham.Dumpleton@gmail.com> added the comment:
>
> I know this issue is closed, but for this patch, the code:
>
> +    modstate = get_atexitmodule_state(module);
> +
> +    if (modstate->ncallbacks == 0)
> +        return;
>
> was added.
>
> Is there any condition under which modstate could be NULL.

The module is probably being deallocated before the callbacks are being called.

>
> Haven't touched Python 3.0 support in mod_wsgi for a long time and when
> revisiting code with final Python 3.0, I find that I get Py_Finalize()
> crashing on process shutdown. It is crashing because modstate above is
> NULL.
History
Date User Action Args
2009-07-19 16:33:22benjamin.petersonsetrecipients: + benjamin.peterson, loewis, barry, christian.heimes, grahamd
2009-07-19 16:33:21benjamin.petersonlinkissue4200 messages
2009-07-19 16:33:21benjamin.petersoncreate