On Sun, Jul 11, 2010 at 06:27:41PM -0700, Philip Guenther wrote:
> When in doubt, use a bigger hammer. You could try using 'ktrace' on
> the web server (probably with the -i option) to see exactly what is
> happening when perl tries to open the Carp/Heavy.pm file.
>
>
> Philip Guenther
Hi Philip,
ktrace produces a rather large (6M) kdump file. I checked all the paths
below and the only place the file exists is at
/usr/libdata/perl5/Carp/Heavy.pm. The permissions on the file are root:wheel
and 0444, so it should be readable by anyone. I am not sure why it can't
find this file at all. It seems to find Exporter/Heavy.pm further up in the
trace. Copying that file to one of the other places doesn't help.
Here are the relevant bits from the trace:
2037 httpd CALL stat(0x8325d900,0xcfbdac90)
2037 httpd NAMI
"/usr/local/lib/perl5/site_perl/5.10.1/i386-openbsd/Carp/Heavy.pmc"
2037 httpd RET stat -1 errno 2 No such file or directory
2037 httpd CALL stat(0x8325d280,0xcfbdabf0)
2037 httpd NAMI
"/usr/local/lib/perl5/site_perl/5.10.1/i386-openbsd/Carp/Heavy.pm"
2037 httpd RET stat -1 errno 2 No such file or directory
2037 httpd CALL stat(0x8325f180,0xcfbdac90)
2037 httpd NAMI "/usr/libdata/perl5/i386-openbsd/5.10.1/Carp/Heavy.pmc"
2037 httpd RET stat -1 errno 2 No such file or directory
2037 httpd CALL stat(0x8325d280,0xcfbdabf0)
2037 httpd NAMI "/usr/libdata/perl5/i386-openbsd/5.10.1/Carp/Heavy.pm"
2037 httpd RET stat -1 errno 2 No such file or directory
2037 httpd CALL stat(0x8325f780,0xcfbdac90)
2037 httpd NAMI
"/usr/local/libdata/perl5/i386-openbsd/5.10.1/Carp/Heavy.pmc"
2037 httpd RET stat -1 errno 2 No such file or directory
2037 httpd CALL stat(0x8325d280,0xcfbdabf0)
2037 httpd NAMI
"/usr/local/libdata/perl5/i386-openbsd/5.10.1/Carp/Heavy.pm"
2037 httpd RET stat -1 errno 2 No such file or directory
2037 httpd CALL stat(0x8325f480,0xcfbdac90)
2037 httpd NAMI "/usr/libdata/perl5/Carp/Heavy.pmc"
2037 httpd RET stat -1 errno 2 No such file or directory
2037 httpd CALL stat(0x8325d280,0xcfbdabf0)
2037 httpd NAMI "/usr/libdata/perl5/Carp/Heavy.pm"
2037 httpd RET stat -1 errno 2 No such file or directory
2037 httpd CALL stat(0x8325f080,0xcfbdac90)
2037 httpd NAMI "/usr/local/libdata/perl5/Carp/Heavy.pmc"
2037 httpd RET stat -1 errno 2 No such file or directory
2037 httpd CALL stat(0x8325d280,0xcfbdabf0)
2037 httpd NAMI "/usr/local/libdata/perl5/Carp/Heavy.pm"
2037 httpd RET stat -1 errno 2 No such file or directory
2037 httpd CALL stat(0x8325f7c0,0xcfbdac90)
2037 httpd NAMI
"/usr/local/libdata/perl5/site_perl/i386-openbsd/Carp/Heavy.pmc"
2037 httpd RET stat -1 errno 2 No such file or directory
2037 httpd CALL stat(0x8325d280,0xcfbdabf0)
2037 httpd NAMI
"/usr/local/libdata/perl5/site_perl/i386-openbsd/Carp/Heavy.pm"
2037 httpd RET stat -1 errno 2 No such file or directory
2037 httpd CALL stat(0x8325f580,0xcfbdac90)
2037 httpd NAMI "/usr/libdata/perl5/site_perl/i386-openbsd/Carp/Heavy.pmc"
2037 httpd RET stat -1 errno 2 No such file or directory
2037 httpd CALL stat(0x8325d280,0xcfbdabf0)
2037 httpd NAMI "/usr/libdata/perl5/site_perl/i386-openbsd/Carp/Heavy.pm"
2037 httpd RET stat -1 errno 2 No such file or directory
2037 httpd CALL stat(0x8325f540,0xcfbdac90)
2037 httpd NAMI "/usr/local/libdata/perl5/site_perl/Carp/Heavy.pmc"
2037 httpd RET stat -1 errno 2 No such file or directory
2037 httpd CALL stat(0x8325d280,0xcfbdabf0)
2037 httpd NAMI "/usr/local/libdata/perl5/site_perl/Carp/Heavy.pm"
2037 httpd RET stat -1 errno 2 No such file or directory
2037 httpd CALL stat(0x8325f280,0xcfbdac90)
2037 httpd NAMI "/usr/libdata/perl5/site_perl/Carp/Heavy.pmc"
2037 httpd RET stat -1 errno 2 No such file or directory
2037 httpd CALL stat(0x8325d280,0xcfbdabf0)
2037 httpd NAMI "/usr/libdata/perl5/site_perl/Carp/Heavy.pm"
2037 httpd RET stat -1 errno 2 No such file or directory
2037 httpd CALL stat(0x88596f60,0xcfbdac90)
2037 httpd NAMI "./Carp/Heavy.pmc"
2037 httpd RET stat -1 errno 2 No such file or directory
2037 httpd CALL stat(0x8325d280,0xcfbdabf0)
2037 httpd NAMI "./Carp/Heavy.pm"
2037 httpd RET stat -1 errno 2 No such file or directory
2037 httpd CALL stat(0x88596fa0,0xcfbdac90)
2037 httpd NAMI "/var/www//Carp/Heavy.pmc"
2037 httpd RET stat -1 errno 2 No such file or directory
2037 httpd CALL stat(0x8325d280,0xcfbdabf0)
2037 httpd NAMI "/var/www//Carp/Heavy.pm"
2037 httpd RET stat -1 errno 2 No such file or directory
2037 httpd CALL stat(0x8325f580,0xcfbdac90)
2037 httpd NAMI "/var/www/lib/perl/Carp/Heavy.pmc"
2037 httpd RET stat -1 errno 2 No such file or directory
2037 httpd CALL stat(0x8325d280,0xcfbdabf0)
2037 httpd NAMI "/var/www/lib/perl/Carp/Heavy.pm"
2037 httpd RET stat -1 errno 2 No such file or directory
2037 httpd CALL gettimeofday(0xcfbd6c48,0)
2037 httpd RET gettimeofday 0
2037 httpd CALL fstat(0x12,0xcfbd6b10)
2037 httpd RET fstat 0
2037 httpd CALL mprotect(0x819b3000,0x1000,0x3)
2037 httpd RET mprotect 0
2037 httpd CALL mprotect(0x819b3000,0x1000,0x1)
2037 httpd RET mprotect 0
2037 httpd CALL write(0x12,0x8a23f000,0x1f6)
2037 httpd GIO fd 18 wrote 502 bytes
"[Tue Jul 20 13:10:55 2010] [error] PerlRun: `Can't locate Carp/Heavy.p\
m in @INC (@INC contains: /usr/local/lib/perl5/site_perl/5.10.1/i386-o\
penbsd /usr/libdata/perl5/i386-openbsd/5.10.1 /usr/local/libdata/perl5\
/i386-openbsd/5.10.1 /usr/libdata/perl5 /usr/local/libdata/perl5 /usr/\
local/libdata/perl5/site_perl/i386-openbsd /usr/libdata/perl5/site_per\
l/i386-openbsd /usr/local/libdata/perl5/site_perl /usr/libdata/perl5/s\
ite_perl . /var/www/ /var/www/lib/perl) at /usr/libdata/perl5/Carp.pm \
line 39.\\n'
"