> I don't have a test case involving Apache::Session yet (I've been out of > town for a couple days), but here's a simple one in Perl that > demonstrates the DESTROY order problem:
That's sort of a weird example, since it has a circular reference. Does it have problems without the circular ref? > So I think I need to find out why the Apache::Session objects aren't > being destroyed until global destruction time, i.e. why their refcounts > aren't going to zero. At a guess, I'd say you're making an unintentional closure somewhere. - Perrin