Re: [Python-Dev] crashing on shutdown due to warning at shutdown

2007-01-04 Thread Gregory P. Smith
On Thu, Jan 04, 2007 at 09:35:16PM -0800, Neal Norwitz wrote: > I fixed the crash that was due to raising a warning on shutdown. I > have heard about crashes at shutdown and wonder if this was the cause. > There might be similar bugs lurking that assume PyModule_GetDict() > always returns a valid

[Python-Dev] crashing on shutdown due to warning at shutdown

2007-01-04 Thread Neal Norwitz
I fixed the crash that was due to raising a warning on shutdown. I have heard about crashes at shutdown and wonder if this was the cause. There might be similar bugs lurking that assume PyModule_GetDict() always returns a valid pointer. It doesn't, it can return NULL. I'm not sure if the origin