Re: 3.4.5 amcheck segfault in try_match with cleaning tape in library
Jean-Louis Martineau <[email protected]> Mon, 31 Jul 2017 15:26:56 -0400
| Newsgroups | gmane.comp.archivers.amanda.devel |
|---|---|
| Message-ID | <[email protected]> |
On 31/07/17 02:36 PM, Jason L Tibbitts III wrote: >>>>>> "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'})) { That's strange, it means $dev_status == $DEVICE_STATUS_SUCCESS and $f_type != $Amanda::Header::F_TAPESTART which should not happen for a cleaning tape. It might be some cache issue, can you send me the /var/lib/amanda/chg-robot-dev-sg7 file and retry. At the beginning of volume_is_labelable, can you add: debug("volume_is_labelable sl: " . Data::Dumper::Dumper($sl)); Jean-Louis > > > Nothing after that is executed. But $self->{'labelstr'} has a value > there. (It's a hash.) > > - J< > This message is the property of CARBONITE, INC. and may contain confidential or privileged information. If this message has been delivered to you by mistake, then do not copy or deliver this message to anyone. Instead, destroy it and notify me by reply e-mail