Package: gitweb
Version: 1:1.5.4.3-1
Severity: normal

This gets logged here a few times a day:

[Sun Mar  2 12:12:49 2008] index.cgi: Use of uninitialized value in pattern 
match (m//) at /srv/web/git.ikiwiki.info/index.cgi line 2942, <$fd> line 1.

Line 2942 is the return line here, so $diffinfo->{'status_str'} must be 
undefined.

sub is_deleted {
        my $diffinfo = shift;

        return $diffinfo->{'status_str'} =~ /D/;
}

The request in the web server log that seems to correspond to the message
is this one:

74.6.27.36 - - [02/Mar/2008:12:12:49 -0500] "GET 
/?p=ikiwiki;a=blobdiff;h=9bf54298199d130dc3187c97c784df20c7e45e6e;hp=af27f1d7eb06631a06c4cb5c7583be23abc2b829;hb=cabd5140c4d6255afdcb527e7f6d7e7815e4aa43;f=doc/ikiwiki.setup
 HTTP/1.0" 200 6511 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; 
http://help.yahoo.com/help/us/ysearch/slurp)"

And indeed, I can reproduce the uninitialised value error by going to the url
http://git.ikiwiki.info/?p=ikiwiki;a=blobdiff;h=9bf54298199d130dc3187c97c784df20c7e45e6e;hp=af27f1d7eb06631a06c4cb5c7583be23abc2b829;hb=cabd5140c4d6255afdcb527e7f6d7e7815e4aa43;f=doc/ikiwiki.setup
The page there looks ok, FWIW.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (x86_64)

Kernel: Linux 2.6.18-6-xen-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gitweb depends on:
ii  git-core                     1:1.5.4.3-1 fast, scalable, distributed revisi
ii  perl                         5.8.8-12    Larry Wall's Practical Extraction 

gitweb recommends no packages.

-- no debconf information

-- 
see shy jo


Reply via email to