Re: 3.4.5 amcheck segfault in try_match with cleaning tape in library

Jason L Tibbitts III <[email protected]> Mon, 31 Jul 2017 13:36:29 -0500
Newsgroups gmane.comp.archivers.amanda.devel
Message-ID <[email protected]>
>>>>> "JM" == Jean-Louis Martineau <[email protected]> writes:

JM> Can you add a debugging statement before each
JM> call to match_labelstr?  (probably in
JM> perl/Amanda/Taper/Scan/traditional.pm) Something like: debug("I'm
JM> here");

Ah, I see now; that's a C function that's patched into the symbol table.

I believe the problem is in ScanInventory::volume_is_labelable:

        debug('XXX ScanInventory volume_is_labelable in');
        if (!match_labelstr($self->{'labelstr'}, $autolabel, $label,
                            $barcode, $meta, $self->{'chg'}->{'storage'}->{'storage_name'})) {


Nothing after that is executed.  But $self->{'labelstr'} has a value
there.  (It's a hash.)

 - J<