Paul, can you run this under gdb (e.i. 'gdb --args ./dmraid -s -vvv' and provide a backtrace after it segfaulted, please ? Heinz On Sat, Mar 11, 2006 at 04:16:30PM -0500, Paul Blazejowski wrote: > Hello folks, > > I keep getting segfault with the latest dmraid tools (and the previous > rc9 also) this does not happen when using 1.0.0.rc8 > > Here's what i see: > > ./dmraid -V > dmraid version: 1.0.0.rc10 (2006.02.17) > dmraid library version: 1.0.0.rc10 (2006.02.17) > device-mapper version: 4.4.0 > > ./dmraid -s -vvv > WARN: locking /var/lock/dmraid/.lock > NOTICE: skipping removable device /dev/hda > NOTICE: /dev/sda: asr discovering > NOTICE: /dev/sda: hpt37x discovering > NOTICE: /dev/sda: hpt45x discovering > NOTICE: /dev/sda: isw discovering > NOTICE: /dev/sda: jmicron discovering > NOTICE: /dev/sda: lsi discovering > NOTICE: /dev/sda: nvidia discovering > NOTICE: /dev/sda: pdc discovering > NOTICE: /dev/sda: sil discovering > NOTICE: /dev/sda: via discovering > NOTICE: /dev/sdb: asr discovering > NOTICE: /dev/sdb: hpt37x discovering > NOTICE: /dev/sdb: hpt45x discovering > NOTICE: /dev/sdb: isw discovering > NOTICE: /dev/sdb: jmicron discovering > NOTICE: /dev/sdb: lsi discovering > NOTICE: /dev/sdb: nvidia discovering > NOTICE: /dev/sdb: nvidia metadata discovered > NOTICE: /dev/sdb: pdc discovering > NOTICE: /dev/sdb: sil discovering > NOTICE: /dev/sdb: via discovering > NOTICE: /dev/sdc: asr discovering > NOTICE: /dev/sdc: hpt37x discovering > NOTICE: /dev/sdc: hpt45x discovering > NOTICE: /dev/sdc: isw discovering > NOTICE: /dev/sdc: jmicron discovering > NOTICE: /dev/sdc: lsi discovering > NOTICE: /dev/sdc: nvidia discovering > NOTICE: /dev/sdc: nvidia metadata discovered > NOTICE: /dev/sdc: pdc discovering > NOTICE: /dev/sdc: sil discovering > NOTICE: sil: areas 1[4] is valid > ERROR: sil: only 2/4 metadata areas found on /dev/sdc, electing... > Segmentation fault > > ./dmraid -ay nvidia -vvv > WARN: locking /var/lock/dmraid/.lock > NOTICE: skipping removable device /dev/hda > NOTICE: /dev/sda: asr discovering > NOTICE: /dev/sda: hpt37x discovering > NOTICE: /dev/sda: hpt45x discovering > NOTICE: /dev/sda: isw discovering > NOTICE: /dev/sda: jmicron discovering > NOTICE: /dev/sda: lsi discovering > NOTICE: /dev/sda: nvidia discovering > NOTICE: /dev/sda: pdc discovering > NOTICE: /dev/sda: sil discovering > NOTICE: /dev/sda: via discovering > NOTICE: /dev/sdb: asr discovering > NOTICE: /dev/sdb: hpt37x discovering > NOTICE: /dev/sdb: hpt45x discovering > NOTICE: /dev/sdb: isw discovering > NOTICE: /dev/sdb: jmicron discovering > NOTICE: /dev/sdb: lsi discovering > NOTICE: /dev/sdb: nvidia discovering > NOTICE: /dev/sdb: nvidia metadata discovered > NOTICE: /dev/sdb: pdc discovering > NOTICE: /dev/sdb: sil discovering > NOTICE: /dev/sdb: via discovering > NOTICE: /dev/sdc: asr discovering > NOTICE: /dev/sdc: hpt37x discovering > NOTICE: /dev/sdc: hpt45x discovering > NOTICE: /dev/sdc: isw discovering > NOTICE: /dev/sdc: jmicron discovering > NOTICE: /dev/sdc: lsi discovering > NOTICE: /dev/sdc: nvidia discovering > NOTICE: /dev/sdc: nvidia metadata discovered > NOTICE: /dev/sdc: pdc discovering > NOTICE: /dev/sdc: sil discovering > NOTICE: sil: areas 1[4] is valid > ERROR: sil: only 2/4 metadata areas found on /dev/sdc, electing... > Segmentation fault > > With rc8 i get this: > > dmraid -V > dmraid version: 1.0.0.rc8 (2005.05.19) > dmraid library version: 1.0.0.rc8 (2005.05.19) > device-mapper version: 4.4.0 > > dmraid -s -vvv nvidia > WARN: locking /var/lock/dmraid/.lock > NOTICE: skipping removable device /dev/hda > NOTICE: /dev/sda: hpt37x discovering > NOTICE: /dev/sda: hpt45x discovering > NOTICE: /dev/sda: isw discovering > NOTICE: /dev/sda: lsi discovering > NOTICE: /dev/sda: nvidia discovering > NOTICE: /dev/sda: pdc discovering > NOTICE: /dev/sda: sil discovering > NOTICE: /dev/sda: via discovering > NOTICE: /dev/sdb: hpt37x discovering > NOTICE: /dev/sdb: hpt45x discovering > NOTICE: /dev/sdb: isw discovering > NOTICE: /dev/sdb: lsi discovering > NOTICE: /dev/sdb: nvidia discovering > NOTICE: /dev/sdb: nvidia metadata discovered > NOTICE: /dev/sdb: pdc discovering > NOTICE: /dev/sdb: sil discovering > NOTICE: /dev/sdb: via discovering > NOTICE: /dev/sdc: hpt37x discovering > NOTICE: /dev/sdc: hpt45x discovering > NOTICE: /dev/sdc: isw discovering > NOTICE: /dev/sdc: lsi discovering > NOTICE: /dev/sdc: nvidia discovering > NOTICE: /dev/sdc: nvidia metadata discovered > NOTICE: /dev/sdc: pdc discovering > NOTICE: /dev/sdc: sil discovering > NOTICE: sil: areas 1[4] is valid > ERROR: sil: only 1/4 metadata areas found on /dev/sdc, picking... > ERROR: sil: zero sectors on /dev/sdc > ERROR: sil: setting up RAID device /dev/sdc > NOTICE: /dev/sdc: via discovering > NOTICE: added /dev/sdb to RAID set "nvidia_hbiaffeg" > NOTICE: added /dev/sdc to RAID set "nvidia_hbiaffeg" > *** Active Set > name : nvidia_hbiaffeg > size : 390721966 > stride : 128 > type : mirror > status : ok > subsets: 0 > devs : 2 > spares : 0 > WARN: unlocking /var/lock/dmraid/.lock > > dmraid -ay -vvv nvidia > WARN: locking /var/lock/dmraid/.lock > NOTICE: skipping removable device /dev/hda > NOTICE: /dev/sda: hpt37x discovering > NOTICE: /dev/sda: hpt45x discovering > NOTICE: /dev/sda: isw discovering > NOTICE: /dev/sda: lsi discovering > NOTICE: /dev/sda: nvidia discovering > NOTICE: /dev/sda: pdc discovering > NOTICE: /dev/sda: sil discovering > NOTICE: /dev/sda: via discovering > NOTICE: /dev/sdb: hpt37x discovering > NOTICE: /dev/sdb: hpt45x discovering > NOTICE: /dev/sdb: isw discovering > NOTICE: /dev/sdb: lsi discovering > NOTICE: /dev/sdb: nvidia discovering > NOTICE: /dev/sdb: nvidia metadata discovered > NOTICE: /dev/sdb: pdc discovering > NOTICE: /dev/sdb: sil discovering > NOTICE: /dev/sdb: via discovering > NOTICE: /dev/sdc: hpt37x discovering > NOTICE: /dev/sdc: hpt45x discovering > NOTICE: /dev/sdc: isw discovering > NOTICE: /dev/sdc: lsi discovering > NOTICE: /dev/sdc: nvidia discovering > NOTICE: /dev/sdc: nvidia metadata discovered > NOTICE: /dev/sdc: pdc discovering > NOTICE: /dev/sdc: sil discovering > NOTICE: sil: areas 1[4] is valid > ERROR: sil: only 1/4 metadata areas found on /dev/sdc, picking... > ERROR: sil: zero sectors on /dev/sdc > ERROR: sil: setting up RAID device /dev/sdc > NOTICE: /dev/sdc: via discovering > NOTICE: added /dev/sdb to RAID set "nvidia_hbiaffeg" > NOTICE: added /dev/sdc to RAID set "nvidia_hbiaffeg" > nvidia_hbiaffeg already active > INFO: Activating mirror RAID set "nvidia_hbiaffeg" > NOTICE: discovering partitions on "nvidia_hbiaffeg" > NOTICE: /dev/mapper/nvidia_hbiaffeg: dos discovering > ERROR: dos: reading /dev/mapper/nvidia_hbiaffeg[No such file or > directory] > WARN: unlocking /var/lock/dmraid/.lock > > I don't know what could be the cause of such segfaults but i am willing > to work this issue out and provide any debug/info if such is needed. > > The host is running kernel 2.6.15 with sata_nv module and is using > Nforce4 chipset with 2x200gb WDC sata-1 drives in RAID1 mirror mode. > > The dev entries show: > > ls -l /dev/mapper/ > total 0 > crw-rw---- 1 root root 10, 63 2006-03-11 09:28 control > brw------- 1 root root 254, 0 2006-03-11 15:21 nvidia_hbiaffeg > > Fdisk from a single drive shows: > > Disk /dev/sdb: 200.0 GB, 200049647616 bytes > 255 heads, 63 sectors/track, 24321 cylinders > Units = cylinders of 16065 * 512 = 8225280 bytes > > Device Boot Start End Blocks Id System > /dev/sdb1 1 6375 51207156 83 Linux > /dev/sdb2 * 6376 12750 51207187+ 7 HPFS/NTFS > /dev/sdb3 12751 19125 51207187+ 83 Linux > /dev/sdb4 19126 24321 41736870 c W95 FAT32 (LBA) > > dmesg entries: > > device-mapper: 4.4.0-ioctl (2005-01-12) initialised: dm-devel@xxxxxxxxxx > libata version 1.20 loaded. > sata_nv 0000:00:07.0: version 0.8 > ACPI: PCI Interrupt Link [APSI] enabled at IRQ 22 > ACPI: PCI Interrupt 0000:00:07.0[A] -> Link [APSI] -> GSI 22 (level, > low) -> IRQ 20 > PCI: Setting latency timer of device 0000:00:07.0 to 64 > ata1: SATA max UDMA/133 cmd 0x9F0 ctl 0xBF2 bmdma 0xD800 irq 20 > ata2: SATA max UDMA/133 cmd 0x970 ctl 0xB72 bmdma 0xD808 irq 20 > ata1: no device found (phy stat 00000000) > scsi1 : sata_nv > ata2: no device found (phy stat 00000000) > scsi2 : sata_nv > ACPI: PCI Interrupt Link [APSJ] enabled at IRQ 21 > ACPI: PCI Interrupt 0000:00:08.0[A] -> Link [APSJ] -> GSI 21 (level, > low) -> IRQ 21 > PCI: Setting latency timer of device 0000:00:08.0 to 64 > ata3: SATA max UDMA/133 cmd 0x9E0 ctl 0xBE2 bmdma 0xC400 irq 21 > ata4: SATA max UDMA/133 cmd 0x960 ctl 0xB62 bmdma 0xC408 irq 21 > eth0: link up. > ieee1394: Host added: ID:BUS[0-00:1023] GUID[00023c0091065c55] > ata3: dev 0 cfg 49:2f00 82:306b 83:7e01 84:4003 85:3068 86:3c01 87:4003 > 88:203f > ata3: dev 0 ATA-6, max UDMA/100, 390721968 sectors: LBA48 > nv_sata: Primary device added > nv_sata: Primary device removed > nv_sata: Secondary device added > nv_sata: Secondary device removed > ata3: dev 0 configured for UDMA/100 > scsi3 : sata_nv > ieee1394: Host added: ID:BUS[1-00:1023] GUID[0011d800004f6359] > ata4: dev 0 cfg 49:2f00 82:346b 83:7f61 84:4003 85:3468 86:3c41 87:4003 > 88:407f > ata4: dev 0 ATA-6, max UDMA/133, 390721968 sectors: LBA48 > nv_sata: Primary device added > nv_sata: Primary device removed > nv_sata: Secondary device added > nv_sata: Secondary device removed > ata4: dev 0 configured for UDMA/133 > scsi4 : sata_nv > Vendor: ATA Model: WDC WD2000JD-60K Rev: 08.0 > Type: Direct-Access ANSI SCSI revision: 05 > SCSI device sdb: 390721968 512-byte hdwr sectors (200050 MB) > SCSI device sdb: drive cache: write back > SCSI device sdb: 390721968 512-byte hdwr sectors (200050 MB) > SCSI device sdb: drive cache: write back > sdb:<4>nv_sata: Primary device added > nv_sata: Primary device removed > nv_sata: Secondary device added > nv_sata: Secondary device removed > sdb1 sdb2 sdb3 sdb4 > sd 3:0:0:0: Attached scsi disk sdb > Vendor: ATA Model: WDC WD2000JD-00H Rev: 08.0 > Type: Direct-Access ANSI SCSI revision: 05 > SCSI device sdc: 390721968 512-byte hdwr sectors (200050 MB) > SCSI device sdc: drive cache: write back > SCSI device sdc: 390721968 512-byte hdwr sectors (200050 MB) > SCSI device sdc: drive cache: write back > sdc:<4>nv_sata: Primary device added > nv_sata: Primary device removed > nv_sata: Secondary device added > nv_sata: Secondary device removed > sdc1 sdc2 sdc3 sdc4 > sd 4:0:0:0: Attached scsi disk sdc > > /proc/modules: > > dm_mirror 18384 0 - Live 0xf95ea000 > sata_nv 6532 5 - Live 0xf933a000 > libata 45580 1 sata_nv, Live 0xf9412000 > > Please CC any replies as i am not subscribed to this list. > > Thank you, > > Paul B. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Heinz Mauelshagen Red Hat GmbH Consulting Development Engineer Am Sonnenhang 11 Storage Development 56242 Marienrachdorf Germany Mauelshagen@xxxxxxxxxx PHONE +49 171 7803392 FAX +49 2626 924446 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- _______________________________________________ Ataraid-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/ataraid-list