Thanks, I have moved on from there.  When I saw the strlen I decided it
was probably haveing problems with the chg-scsi.conf.  Now I am up to:

flash:/amanda# /usr/src/amanda-2.4.2/changer-src/chg-scsi -info
<none> drive number error (0 > -1)
chg-scsi: requested drive number (0) greater than number of supported
drives (-1)

Here is my chg-scsi.conf

number_configs  2
eject           1       # Tapedrives need an eject command
sleep           30      # Seconds to wait until the tape gets ready
cleanmax        10      # How many times could a cleaning tape get used
changerdev      /dev/rmt/rssta
#
# Next comes the data for drive 0
#
config          0
drivenum        0
dev             /dev/rmt/0cbn   # the device that is used for the
startuse        0       # The slots associated with the drive 0
enduse          19      #
statfile        /usr/local/etc/amanda/tape0-slot  # The file where the
cleancart       20      # the slot where the cleaningcartridge for drive 0
cleanfile       /usr/local/etc/amanda/tape0-clean # The file where the
usagecount      /usr/local/etc/amanda/backup/totaltime
tapestatus      /usr/local/etc/amanda/DailySet1/tape0-status
labelfile      /usr/local/etc/amanda/DailySet1/labelfile # Use this if you

# Next comes the data for drive 1

config          1
drivenum        1
dev             /dev/rmt/1cbn   # the device that is used for the
tapedrive 0
startuse        21      # The slots associated with the drive 0
enduse          39      #
statfile        /usr/local/etc/amanda/tape1-slot  # The file where the
cleancart       20      # the slot where the cleaningcartridge for drive 0
cleanfile       /usr/local/etc/amanda/tape1-clean # The file where the
usagecount      /usr/local/etc/amanda/backup1/totaltime
tapestatus      /usr/local/etc/amanda/DailySet1/tape1-status
labelfile      /usr/local/etc/amanda/DailySet1/labelfile # Use this if you

#
# This is the end


And here is the debug output.

chg-scsi: debug 1 pid 18423 ruid 0 euid 0 start time Tue Dec  5 14:31:28
2000
ARG [0] : /usr/src/amanda-2.4.2/changer-src/chg-scsi
ARG [1] : -info
Number of configurations: 2
Tapes need eject: Yes
Tapes need sleep: 30 seconds
Cleancycles     : 10
Changerdevice   : /dev/rmt/rssta
Labelfile       : /usr/local/etc/amanda/DailySet1/labelfile
Tapeconfig Nr: 0
  Drivenumber   : 0
  Startslot     : 0
  Endslot       : 19
  Cleanslot     : 20
  Devicename    : /dev/rmt/0cbn
  changerident  : none
  SCSITapedev   : none
  tapeident     : none
  statfile      : /usr/local/etc/amanda/DailySet1/tape0-status
  Slotfile      : /usr/local/etc/amanda/tape0-slot
  Cleanfile     : /usr/local/etc/amanda/tape0-clean
  Usagecount    : /usr/local/etc/amanda/backup/totaltime
Tapeconfig Nr: 1
  Drivenumber   : 1
  Startslot     : 21
  Endslot       : 39
  Cleanslot     : 20
  Devicename    : /dev/rmt/1cbn
  changerident  : none
  SCSITapedev   : none
  tapeident     : none
  statfile      : /usr/local/etc/amanda/DailySet1/tape1-status
  Slotfile      : /usr/local/etc/amanda/tape1-slot
  Cleanfile     : /usr/local/etc/amanda/tape1-clean
  Usagecount    : /usr/local/etc/amanda/backup1/totaltime
##### START OpenDevice
OpenDevice : /dev/rmt/rssta
##### START SCSI_Inquiry
SCSI_Inquiry start length = 56:
##### START DecodeSCSI
SCSI_ExecuteCommand :  INQUIRY 12 00 00 00 38 00
##### STOP DecodeSCSI
08 80 02 02 21 00 00 00 53 50 45 43 54 52 41 20    ........SPECTRA.
31 30 30 30 30 20 20 20 20 20 20 20 20 20 20 20    10000...........
30 35 30 30 31 35 00 00 00 00 00 00 00 00 00 00    050015..........
00 00 00 00 00 00 00 00
SCSI_Inquiry : end 0
##### START PrintInquiry
qualifier       0
type            8
data_format     2
ansi_version    2
ecma_version    0
iso_version     0
type_modifier   0
removable       1
vendor_info     SPECTRA
prod_ident      10000
prod_version    0500
vendor_specific 15
using ident = generic, type = Generic driver tape/robot [generic]
##### START OpenDevice
OpenDevice : /dev/rmt/0cbn
##### START SCSI_Inquiry
SCSI_Inquiry start length = 56:
##### START DecodeSCSI
SCSI_ExecuteCommand :  INQUIRY 12 00 00 00 38 00
##### STOP DecodeSCSI
01 80 02 02 1F 00 00 30 53 4F 4E 59 20 20 20 20    .......0SONY....
53 44 58 2D 35 30 30 43 20 20 20 20 20 20 20 20    SDX.500C........
30 31 63 64 00 00 00 00 00 00 00 00 00 00 00 00    01cd............
00 00 00 00 00 00 00 00
SCSI_Inquiry : end 0
##### START PrintInquiry
qualifier       0
type            1
data_format     2
ansi_version    2
ecma_version    0
iso_version     0
type_modifier   0
removable       1
vendor_info     SONY
prod_ident      SDX-500C
prod_version    01cd
vendor_specific
using ident = generic, type = Generic driver tape/robot [generic]
need_eject set to 1
###### START get_drive_count
get_drive_count      : fd 4
##### START GenericElementStatus
##### START SCSI_ModeSense
SCSI_ModeSense start length = 255:
##### START DecodeSCSI
SCSI_ExecuteCommand :  MODE SENSE 1A 08 3F 00 FF 00
##### STOP DecodeSCSI
SCSI_ModeSense end: 0
##### START DecodeModeSense
35 00 00 00 9D 12 00 4F 00 01 00 01 00 2A 00 00    5......O........
00 01 00 50 00 02 00 00 1E 02 00 00 1F 0E 0F 00    ...P............
0E 0F 0B 0F 00 00 00 00 00 00 00 00 80 08 07 00    ................
30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    0...............
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
buffer length = 49
DecodeModeSense : Element Address Assignment Page
        Medium Transport Element Address     79
        Number of Medium Transport Elements  1
        First Storage Element Address       1
        Number of  Storage Elements         42
        First Import/Export Element Address 0
        Number of  ImportExport Elements    1
        First Data Transfer Element Address 80
        Number of  Data Transfer Elements   2
DecodeModeSense : MT can store data cartridges 1
DecodeModeSense : ST can store data cartridges 1
DecodeModeSense : IE can store data cartridges 1
DecodeModeSense : DT can store data cartridges 1
DecodeModeSense : MT to MT 0
DecodeModeSense : MT to ST 1
DecodeModeSense : MT to IE 1
DecodeModeSense : MT to DT 1
DecodeModeSense : ST to MT 1
DecodeModeSense : ST to MT 1
DecodeModeSense : ST to DT 1
DecodeModeSense : IE to MT 1
DecodeModeSense : IE to ST 0
DecodeModeSense : IE to ST 1
DecodeModeSense : IE to ST 1
DecodeModeSense : DT to MT 1
DecodeModeSense : DT to ST 1
DecodeModeSense : DT to IE 1
DecodeModeSense : DT to DT 1
##### START BarCode
BarCode              : fd 4
Ident = [10000], function = [generic]
##### START NoBarCode
##### START SCSI_ReadElementStatus
##### START DecodeSCSI
SCSI_ExecuteCommand :  READ ELEMENT STATUS B8 01 00 4F 00 01 00 00 00 08
00 00
##### STOP DecodeSCSI
SCSI_ReadElementStatus : (1) SCSI_ExecuteCommand 0
SCSI_ReadElementStatus: DataBufferLength 20, ret 0
00 4F 00 01 00 00 00 18
##### START DecodeSCSI
SCSI_ExecuteCommand :  READ ELEMENT STATUS B8 01 00 4F 00 01 00 00 00 20
00 00
##### STOP DecodeSCSI
SCSI_ReadElementStatus : (2) SCSI_ExecuteCommand 0
00 4F 00 01 00 00 00 18 01 00 00 10 00 00 00 10    .O..............
00 4F 00 00 00 00 00 00 00 00 00 00 00 00 00 00    .O..............

##### START BarCode
BarCode              : fd 4
Ident = [10000], function = [generic]
##### START NoBarCode
##### START SCSI_ReadElementStatus
##### START DecodeSCSI
SCSI_ExecuteCommand :  READ ELEMENT STATUS B8 02 00 01 00 2A 00 00 00 08
00 00
##### STOP DecodeSCSI
SCSI_ReadElementStatus : (1) SCSI_ExecuteCommand 0
SCSI_ReadElementStatus: DataBufferLength 2B0, ret 0
00 01 00 2A 00 00 02 A8
##### START DecodeSCSI
SCSI_ExecuteCommand :  READ ELEMENT STATUS B8 02 00 01 00 2A 00 00 02 B0
00 00
##### STOP DecodeSCSI
SCSI_ReadElementStatus : (2) SCSI_ExecuteCommand 0
00 01 00 2A 00 00 02 A8 02 00 00 10 00 00 02 A0    ................
00 01 09 00 00 00 00 00 00 80 00 50 30 30 30 30    ...........P0000
00 02 09 00 00 00 00 00 00 80 00 51 30 30 30 30    ...........Q0000
00 03 09 00 00 00 00 00 00 00 00 00 30 30 30 30    ............0000
00 04 09 00 00 00 00 00 00 00 00 00 30 30 30 30    ............0000
00 05 09 00 00 00 00 00 00 00 00 00 30 30 30 30    ............0000
00 06 09 00 00 00 00 00 00 00 00 00 30 30 30 30    ............0000
00 07 09 00 00 00 00 00 00 00 00 00 30 30 30 30    ............0000
00 08 09 00 00 00 00 00 00 00 00 00 30 30 30 30    ............0000
00 09 09 00 00 00 00 00 00 00 00 00 30 30 30 30    ............0000
00 0A 09 00 00 00 00 00 00 00 00 00 30 30 30 30    ............0000
00 0B 09 00 00 00 00 00 00 00 00 00 30 30 30 30    ............0000
00 0C 09 00 00 00 00 00 00 00 00 00 30 30 30 30    ............0000
00 0D 09 00 00 00 00 00 00 00 00 00 30 30 30 30    ............0000
00 0E 09 00 00 00 00 00 00 00 00 00 30 30 30 30    ............0000
00 0F 09 00 00 00 00 00 00 00 00 00 30 30 30 30    ............0000
00 10 09 00 00 00 00 00 00 00 00 00 30 30 30 30    ............0000
00 11 09 00 00 00 00 00 00 00 00 00 30 30 30 30    ............0000
00 12 09 00 00 00 00 00 00 00 00 00 30 30 30 30    ............0000
00 13 08 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 14 08 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 15 08 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 16 08 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 17 08 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 18 08 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 19 08 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 1A 08 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 1B 08 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 1C 08 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 1D 08 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 1E 08 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 1F 08 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 20 08 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 21 08 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 22 08 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 23 08 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 24 08 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 25 08 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 26 08 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 27 08 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 28 08 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 29 08 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 2A 08 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

##### START BarCode
BarCode              : fd 4
Ident = [10000], function = [generic]
##### START NoBarCode
##### START SCSI_ReadElementStatus
##### START DecodeSCSI
SCSI_ExecuteCommand :  READ ELEMENT STATUS B8 03 00 00 00 01 00 00 00 08
00 00
##### STOP DecodeSCSI
SCSI_ReadElementStatus : (1) SCSI_ExecuteCommand 0
SCSI_ReadElementStatus: DataBufferLength 20, ret 0
00 00 00 01 00 00 00 18
##### START DecodeSCSI
SCSI_ExecuteCommand :  READ ELEMENT STATUS B8 03 00 00 00 01 00 00 00 20
00 00
##### STOP DecodeSCSI
SCSI_ReadElementStatus : (2) SCSI_ExecuteCommand 0
00 00 00 01 00 00 00 18 03 00 00 10 00 00 00 10    ................
00 00 38 00 00 00 00 00 00 00 00 00 00 00 00 00    ..8.............

##### START BarCode
BarCode              : fd 4
Ident = [10000], function = [generic]
##### START NoBarCode
##### START SCSI_ReadElementStatus
##### START DecodeSCSI
SCSI_ExecuteCommand :  READ ELEMENT STATUS B8 04 00 50 00 02 00 00 00 08
00 00
##### STOP DecodeSCSI
SCSI_ReadElementStatus : (1) SCSI_ExecuteCommand 0
SCSI_ReadElementStatus: DataBufferLength 30, ret 0
00 50 00 02 00 00 00 28
##### START DecodeSCSI
SCSI_ExecuteCommand :  READ ELEMENT STATUS B8 04 00 50 00 02 00 00 00 30
00 00
##### STOP DecodeSCSI
SCSI_ReadElementStatus : (2) SCSI_ExecuteCommand 0
00 50 00 02 00 00 00 28 04 00 00 10 00 00 00 20    .P..............
00 50 0D 00 83 12 30 08 00 80 00 14 30 30 30 30    .P....0.....0000
00 51 09 00 00 00 30 09 00 80 00 13 30 30 30 30    .Q....0.....0000

##### START SenseHandler
Ident = [10000], function = [generic]
##### START GenericSenseHandler
##### START DecodeSense
GenericSenseHandler : Sense Keys
        ErrorCode                     00
        Valid                         0
        ASC                           46
        ASCQ                          00
        Sense key                     00
                No Sense
GenericSenseHandler : Unknow 0 ASC = 46 ASCQ = 0
#### STOP SenseHandler
chg-scsi: requested drive number (0) greater than number of supported
drives (-1)



On Tue, 5 Dec 2000, John R. Jackson wrote:

> >Program received signal SIGSEGV, Segmentation fault.
> >0xff132e5c in strlen () from /usr/lib/libc.so.1
> >(gdb) step
> 
> Umm, after you take a segmentation fault, you're done.  You cannot
> keep trying to execute things (in general).
> 
> What you want to do is enter "where" to get a subroutine call traceback.
> 
> >Mike Taylor
> 
> John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]
> 

---
Mike Taylor
Coordinator of Systems Administration and Network Security
Indiana State University.               Rankin Hall Rm 039
210 N 7th St.                           Terre Haute, IN.
Voice: 812-237-8843                                  47809
---
"You have zero privacy anyway.  Get over it."
           --Scott McNealy, Sun MicroSystems. 




Reply via email to