Ok, getting smarter... following your suggestion
# truss amtape ninfo newtonl Tail of the output (I can script if if you want more) amtapewrite(2, " a m t a p e", 6) = 6 : scanning all write(2, " : s c a n n i n g a".., 15) = 15 9write(2, " 9", 1) = 1 slots in tape-changer rack: write(2, " s l o t s i n t a".., 29) = 29 so_socket(PF_UNIX, SOCK_STREAM, 0, "", 1) = 4 so_socket(PF_UNIX, SOCK_STREAM, 0, "", 1) = 5 so_socketpair(0xFFBFFB48) = 0 close(4) = 0 fork() = 21854 close(5) = 0 read(6, " 2 / d e v / r m t / 1".., 1024) = 15 wait() = 21854 [0x0000] close(6) = 0 write(10, " c h a n g e r : g o t".., 41) = 41 open64("/dev/rmt/1cn", O_RDONLY) = 4 brk(0x0002FEC8) = 0 brk(0x00035EC8) = 0 ioctl(4, MNTIOC_NMNTS, 0xFFBFF258) = 0 read(4, " A M A N D A : T A P E".., 32768) = 32768 close(4) = 0 slot write(2, " s l o t ", 5) = 5 2write(2, " 2", 1) = 1 : date write(2, " : d a t e ", 7) = 7 20030403write(2, " 2 0 0 3 0 4 0 3", 8) = 8 label write(2, " l a b e l ", 7) = 7 NEWTONL02write(2, " N E W T O N L 0 2", 9) = 9 write(2, "\n", 1) = 1 write(10, " c h a n g e r _ l a b e".., 36) = 36 so_socket(PF_UNIX, SOCK_STREAM, 0, "", 1) = 4 so_socket(PF_UNIX, SOCK_STREAM, 0, "", 1) = 5 so_socketpair(0xFFBFFA50) = 0 close(4) = 0 fork() = 21962 close(5) = 0 read(6, " 2 9 1 1\n", 1024) = 8 wait() = 21962 [0x0000] close(6) = 0 write(10, " c h a n g e r : g o t".., 34) = 34 write(10, " c h a n g e r _ q u e r".., 40) = 40 write(10, " c h a n g e r _ q u e r".., 30) = 30 write(10, " c h a n g e r _ l a b e".., 48) = 48 so_socket(PF_UNIX, SOCK_STREAM, 0, "", 1) = 4 so_socket(PF_UNIX, SOCK_STREAM, 0, "", 1) = 5 so_socketpair(0xFFBFFAC8) = 0 close(4) = 0 fork() = 22058 close(5) = 0 read(6, " 2 / d e v / r m t / 1".., 1024) = 15 wait() = 22058 [0x0000] close(6) = 0 write(10, " c h a n g e r : g o t".., 41) = 41 Incurred fault #5, FLTACCESS %pc = 0xFF0C37F4 siginfo: SIGBUS BUS_ADRALN addr=0x000248F2 Received signal #10, SIGBUS [default] siginfo: SIGBUS BUS_ADRALN addr=0x000248F2 > Gene, > Jon, > > This useful ? In order from newest file to eldest... > > Personally I don't see an error here but the command that > produced these (and other files) was > > > amtape ninfo update > amtape: scanning all 9 slots in tape-changer rack: > slot 3: date X label NTNWKLY10 > Bus error (core dumped) > > > # cat amtape.20030404133143.debug > amtape: debug 1 pid 20316 ruid 110 euid 110: start at Fri Apr 4 13:31:43 2003 > changer: got exit: 0 str: 3 9 1 1 > changer: got exit: 0 str: 3 /dev/rmt/0cn > changer_label: NTNWKLY10 for slot 3 > changer: got exit: 0 str: 3 9 1 1 > changer_query: changer return was 9 1 1 > changer_query: searchable = 1 > changer_label: calling changer -label NTNWKLY10 > changer: got exit: 0 str: 3 /dev/rmt/0cn > > > # cat chg-zd-mtx.20030404133149000.debug > chg-zd-mtx: debug 1 pid 20624 ruid 110 euid 110: start at Fri Apr 4 13:31:49 2003 > 13:31:49 Arg info: > $# = 2 > $0 = "/usr/local/libexec/chg-zd-mtx" > $1 = "-label" > $2 = "NTNWKLY10" > 13:31:49 Running: /usr/local/sbin/mtx status > 13:31:50 Exit code: 0 > Stdout: > Storage Changer /dev/scsi/changer/c5t4d0:1 Drives, 9 Slots ( 0 Import/Export ) > Data Transfer Element 0:Full (Storage Element 3 Loaded):VolumeTag = AF6411L1 > > Storage Element 1:Full :VolumeTag=AF6410L1 > Storage Element 2:Full :VolumeTag=AF6402L1 > Storage Element 3:Empty:VolumeTag= > Storage Element 4:Full :VolumeTag=AF6412L1 > Storage Element 5:Full :VolumeTag=AF6394L1 > Storage Element 6:Full :VolumeTag=CLNI55L1 > Storage Element 7:Full :VolumeTag=AF6396L1 > Storage Element 8:Full :VolumeTag=AF6398L1 > Storage Element 9:Full :VolumeTag=AF6397L1 > 13:31:50 Config info: > firstslot = "1" > lastslot = "9" > cleanslot = "-1" > cleancycle = "120" > offline_before_unload = "0" > unloadpause = "0" > autoclean = "0" > autocleancount = "99" > havereader = "1" > driveslot = "0" > poll_drive_ready = "3" > max_drive_wait = "120" > 13:31:50 STATUS -> currently loaded slot = 3 > -> currently loaded barcode = "AF6411L1" > 13:31:50 LABEL -> Adding label "NTNWKLY10" with barcode "AF6411L1" for slot 3 > into /usr/local/etc/amanda/ninfo/chg-zd-mtx-barcodes > -> already synced > 13:31:50 Exit (0) -> 3 /dev/rmt/0cn > chg-zd-mtx: pid 20714 finish time Fri Apr 4 13:31:50 2003 > > Then a new core file > > # cat chg-zd-mtx.20030404133149.debug > chg-zd-mtx: debug 1 pid 20526 ruid 110 euid 110: start at Fri Apr 4 13:31:49 2003 > 13:31:49 Arg info: > $# = 1 > $0 = "/usr/local/libexec/chg-zd-mtx" > $1 = "-info" > 13:31:49 Running: /usr/local/sbin/mtx status > 13:31:49 Exit code: 0 > Stdout: > Storage Changer /dev/scsi/changer/c5t4d0:1 Drives, 9 Slots ( 0 Import/Export ) > Data Transfer Element 0:Full (Storage Element 3 Loaded):VolumeTag = AF6411L1 > > Storage Element 1:Full :VolumeTag=AF6410L1 > Storage Element 2:Full :VolumeTag=AF6402L1 > Storage Element 3:Empty:VolumeTag= > Storage Element 4:Full :VolumeTag=AF6412L1 > Storage Element 5:Full :VolumeTag=AF6394L1 > Storage Element 6:Full :VolumeTag=CLNI55L1 > Storage Element 7:Full :VolumeTag=AF6396L1 > Storage Element 8:Full :VolumeTag=AF6398L1 > Storage Element 9:Full :VolumeTag=AF6397L1 > 13:31:49 Config info: > firstslot = "1" > lastslot = "9" > cleanslot = "-1" > cleancycle = "120" > offline_before_unload = "0" > unloadpause = "0" > autoclean = "0" > autocleancount = "99" > havereader = "1" > driveslot = "0" > poll_drive_ready = "3" > max_drive_wait = "120" > 13:31:49 STATUS -> currently loaded slot = 3 > -> currently loaded barcode = "AF6411L1" > 13:31:49 INFO -> first slot: 1 > -> current slot: 3 > -> loaded slot: 3 > -> last slot: 9 > -> slot list: 1 2 3 4 5 6 7 8 9 > -> can go backwards: 1 > -> havereader: 1 > 13:31:49 Exit (0) -> 3 9 1 1 > chg-zd-mtx: pid 20614 finish time Fri Apr 4 13:31:49 2003