I have a fix for this in the repository but it looks like I never put out a version with the fix into a released version. I'll do that shortly.
Baruch On Thu, Apr 16, 2015 at 11:35 PM, Gerald Turner <gtur...@unzane.com> wrote: > Package: diskscan > Version: 0.14.1-6 > Severity: normal > > Dear Maintainer, > > diskscan segfaults before scanning begins as follows: > > # diskscan -v /dev/sde > diskscan version HEAD > > V: Verbosity set > I: Validating path /dev/sde > [1] 13746 segmentation fault diskscan -v /dev/sde > > I built the package from source and ran under gdb which produces the > following backtrace: > > # gdb ./diskscan > GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1 > Copyright (C) 2014 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > <http://gnu.org/licenses/gpl.html> > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. Type "show copying" > and "show warranty" for details. > This GDB was configured as "x86_64-linux-gnu". > Type "show configuration" for configuration details. > For bug reporting instructions, please see: > <http://www.gnu.org/software/gdb/bugs/>. > Find the GDB manual and other documentation resources online at: > <http://www.gnu.org/software/gdb/documentation/>. > For help, type "help". > Type "apropos word" to search for commands related to "word"... > Reading symbols from ./diskscan...done. > (gdb) run /dev/sde > Starting program: /tmp/diskscan-0.14.1/diskscan /dev/sde > [Thread debugging using libthread_db enabled] > Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". > diskscan version HEAD > > I: Validating path /dev/sde > > Program received signal SIGSEGV, Segmentation fault. > parse_read_capacity_16 (buf=buf@entry=0x7fffffffe080 "", buf_len=<optimized > out>, max_lba=max_lba@entry=0x60a510 <disk+912>, > block_size=block_size@entry=0x7fffffffddfc, > prot_enable=prot_enable@entry=0x0, p_type=p_type@entry=0x0, > p_i_exponent=0x0, logical_blocks_per_physical_block_exponent=0x0, > thin_provisioning_enabled=0x0, > thin_provisioning_zero=0x0, lowest_aligned_lba=0x0) at > src/parse_read_cap.c:84 > 84 if (*lowest_aligned_lba) > (gdb) backtrace > #0 parse_read_capacity_16 (buf=buf@entry=0x7fffffffe080 "", > buf_len=<optimized out>, max_lba=max_lba@entry=0x60a510 <disk+912>, > block_size=block_size@entry=0x7fffffffddfc, > prot_enable=prot_enable@entry=0x0, p_type=p_type@entry=0x0, p_i_exponent=0x0, > logical_blocks_per_physical_block_exponent=0x0, > thin_provisioning_enabled=0x0, thin_provisioning_zero=0x0, > lowest_aligned_lba=0x0) at src/parse_read_cap.c:84 > #1 0x0000000000406179 in parse_read_capacity_16_simple > (block_size=0x7fffffffddfc, max_lba=0x60a510 <disk+912>, buf_len=<optimized > out>, buf=0x7fffffffe080 "") > at ./libscsicmd/include/scsicmd.h:151 > #2 disk_dev_read_cap (dev=0x60a180 <disk>, size_bytes=0x60a510 <disk+912>, > sector_size=0x60a518 <disk+920>) at arch/arch.c:266 > #3 0x00000000004021d7 in disk_open (disk=0x60a180 <disk>, > path=0x7fffffffe780 "/dev/sde", fix=0, latency_graph_len=70) at > lib/diskscan.c:96 > #4 0x0000000000401c71 in diskscan_cli (argc=<optimized out>, > argv=<optimized out>) at cli/cli.c:322 > #5 0x00007ffff784cb45 in __libc_start_main () from > /lib/x86_64-linux-gnu/libc.so.6 > #6 0x00000000004014ce in _start () > > Looks like it could have something to do with reading the drive > geometry, it's a 3TB drive, here's some partial hdparam output: > > # hdparm -I /dev/sde > /dev/sde: > > ATA device, with non-removable media > Model Number: ST3000DM001-1ER166 > Serial Number: Z500VYNW > Firmware Revision: CC25 > Transport: Serial, SATA 1.0a, SATA II Extensions, SATA Rev > 2.5, SATA Rev 2.6, SATA Rev 3.0 > Standards: > Used: unknown (minor revision code 0x001f) > Supported: 9 8 7 6 5 > Likely used: 9 > Configuration: > Logical max current > cylinders 16383 16383 > heads 16 16 > sectors/track 63 63 > -- > CHS current addressable sectors: 16514064 > LBA user addressable sectors: 268435455 > LBA48 user addressable sectors: 5860533168 > Logical Sector size: 512 bytes > Physical Sector size: 4096 bytes > Logical Sector-0 offset: 0 bytes > device size with M = 1024*1024: 2861588 MBytes > device size with M = 1000*1000: 3000592 MBytes (3000 GB) > cache/buffer size = unknown > Form Factor: 3.5 inch > Nominal Media Rotation Rate: 7200 > ... > > -- System Information: > Debian Release: 8.0 > APT prefers testing-updates > APT policy: (500, 'testing-updates'), (500, 'testing'), (50, 'unstable') > Architecture: amd64 (x86_64) > > Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores) > Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: > LC_ALL set to en_US.UTF-8) > Shell: /bin/sh linked to /bin/dash > Init: systemd (via /run/systemd/system) > > Versions of packages diskscan depends on: > ii libc6 2.19-17 > > diskscan recommends no packages. > > diskscan suggests no packages. > > -- no debconf information > > -- > Gerald Turner <gtur...@unzane.com> Encrypted mail preferred! > OpenPGP: 4096R / CA89 B27A 30FA 66C5 1B80 3858 EC94 2276 FDB8 716D -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org