which I guess handles the url rewrite. The problem i'm having is that any modules loaded (and an object subsequently created) within this index.cgi never seems to go out of scope. For instance I have two modules Session and Community, where and instance gets created on every call of index.cgi. Just to see what was going on I added the constructor<Location /site/> SetHandler perl-script PerlHandler Apache::ROOT::cgi_2dbin::index_2ecgi PerlSendHeader On AllowOverride None
to both of the modules, now when the script has finished and the objects HAVE gone out of scope the distructors are not called. However very regularly I get 'attempt to free unreferenced scalar' which coincides with what the perdoc says about this problem. Now when I shut down the webserver I suddenly get a whole load of the modules shut down i.e.sub DESTROY { my $self = shift; my $me = ref($self); print carp "i'm dying.....$me\n"; }
Also on shutdoen I get a series of[Tue Feb 19 11:08:57 2002] null: i'm dying.....Session [Tue Feb 19 11:08:57 2002] null: at /dev/null line 0 [Tue Feb 19 11:08:57 2002] null: i'm dying.....Community [Tue Feb 19 11:08:57 2002] null: at /dev/null line 0 [Tue Feb 19 11:08:57 2002] null: i'm dying.....Session [Tue Feb 19 11:08:57 2002] null: at /dev/null line 0 [Tue Feb 19 11:08:57 2002] null: i'm dying.....Community [Tue Feb 19 11:08:57 2002] null: at /dev/null line 0 [Tue Feb 19 11:08:57 2002] null: i'm dying.....Session [Tue Feb 19 11:08:57 2002] null: at /dev/null line 0 [Tue Feb 19 11:08:59 2002] [notice] caught SIGTERM, shutting down
So it seems the objects never 'automatically' go out of scope !! Has anyone experienced anything like this. I have looked on supersearch but to no avail ! Any guidance will be greatly appreciated.[Tue Feb 19 11:11:39 2002] null: Attempt to free unreferenced scalar.
In reply to Modules not going out of scope by ropey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |