kern/72539: Panic: vm_page_remove(): page not found in hash

Matthew Seaman m.seaman at
Tue Nov 16 08:40:18 PST 2004

On Tue, Nov 16, 2004 at 08:30:50PM +0800, Xin LI wrote:

> I'd like to try to reproduce your panic on my test box, however I got stopped
> with:
> Can't locate in @INC (@INC contains: /usr/local/lib/perl5/site_perl/5.005/i386-freebsd /usr/local/lib/perl5/site_perl/5.005 . /usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503) at ./portindex line 40.
> Do I need newer Perl version?  Or install some Perl Modules?

Err -- yes.  Both of those things.  You need perl-5.8.5 and you'll
need to install the databases/p5-BerkeleyDB module.

I don't think those two requirements are anything to do with the
material cause of the crash though -- the example code is just from
something I was developing -- actually, now developed in a way that
avoids knocking over my machine, and released: see

I have a feeling that the problem is triggered by code like the
following in perl:

   sub foo {
     my $bar = {};

     $bar->{blurlf} = "gronk";

     return $bar;

and repeat that sort of thing a few thousand times.  If instead of
having $bar as a 'my' variable, you pass it into the function it seems
to avoid the problem.  Nb. as that code is in essence the standard way
of instantiating a perl object, that's pretty bad.



Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP:         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the freebsd-bugs mailing list