Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 103293 - sys-apps/sdparm-0.94 is broken on AMD64
Summary: sys-apps/sdparm-0.94 is broken on AMD64
Status: VERIFIED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Joshua Kinard
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-21 16:23 UTC by Joshua Hoblitt
Modified: 2007-07-19 00:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joshua Hoblitt 2005-08-21 16:23:30 UTC
This ebuild is broken enough that ~amd64 should be removed from it's keywords.

dull ~ # sdparm --all /dev/sda
    /dev/sda: 01/jre/b  in:/usr/qt/3/bin    [pdt=0xb]
dull ~ # sdparm --all /dev/sda
    /dev/sda: illa  0  OPEN  [pdt=0x5]
dull ~ # sdparm --all /dev/sda
    /dev/sda: 01/jre/b  in:/usr/qt/3/bin    [pdt=0xb]
dull ~ # sdparm --all /dev/sda
    /dev/sda: 01/jre/b  in:/usr/qt/3/bin    [pdt=0xb]
dull ~ # sdparm --all /dev/sda
    /dev/sda: \uffff\uffff\uffff\uffff\uffff\uffff\uffff\uffff  '  XINI  [pdt=0x1f]
dull ~ # sdparm --all /dev/sda
    /dev/sda: \uffff\uffff\uffff\uffff\uffff\uffff\uffff\uffff  '  XINI  [pdt=0x1f]
dull ~ # sdparm --all /dev/sda
    /dev/sda: \uffff\uffff\uffff\uffff\uffff\uffff\uffff\uffff  '  XINI  [pdt=0x1f]
dull ~ # sdparm --all /dev/sda
    /dev/sda: \uffff\uffff\uffff\uffff\uffff\uffff\uffff\uffff  '  XINI  [pdt=0x1f]
dull ~ # sdparm --all /dev/sda
    /dev/sda: inux-gnu  /3.4.3/man::/opt  /bla  [pdt=0x1f]
dull ~ # sdparm --all /dev/sda
    /dev/sda: \uffff\uffff\uffff\uffff\uffff\uffff\uffff\uffff  '  XINI  [pdt=0x1f]
dull ~ # sdparm --all /dev/sda
    /dev/sda: l all  ] && EDI!  #112  [pdt=0x7]
dull ~ # sdparm --all /dev/sda
    /dev/sda: \uffff\uffff\uffff\uffff\uffff\uffff\uffff\uffff  '  XINI  [pdt=0x1f]
dull ~ # sdparm --all /dev/sda
    /dev/sda: inux-gnu  /3.4.3/man::/opt  /bla  [pdt=0x1f]


Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.51.22-r1 (default-linux/amd64/2005.0, gcc-3.4.3,
glibc-2.3.4.20041102-r1, 2.6.12-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.12-gentoo-r4 x86_64 AMD Opteron(tm) Processor 146
Gentoo Base System version 1.6.12
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.10
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig digest distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/src/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aac aalib acl acpi4linux aim alsa amd avi bash-completion berkdb
bitmap-fonts bzip2 cairo cddb cdr chroot crypt cups curl directfb dvd dvdr eds
emul-linux encode esd fam flac foomaticdb fortran freetype gdbm gif gnome gnome2
gnutls gphoto2 gpm gstreamer gtk gtk2 hal howl imlib ipv6 jpeg ldap libwww lzw
lzw-tiff mailwrapper mbox md5sum mikmod mng mono mozilla mozsvg mp3 mpeg mysql
ncurses nls nptl offensive ogg oggvorbis opengl pam pcre pdflib perl pic png
python quicktime readline samba sdl slang spell sqlite ssl svg sysfs sysvipc
tcpd tetex theora tiff truetype-fonts type1-fonts unicode usb userlocales vim
vim-pager vim-with-x vorbis xine xinerama xml2 xmms xpm xv xvid zlib
userland_GNU kernel_linux elibc_glibc"
Comment 1 Allan Wang 2005-08-21 16:34:49 UTC
Works for me: (on amd64 too)

aw ~ # sdparm --all /dev/sda
    /dev/sda: ATA       ST3300831AS       3.01
Read write error recovery mode page:
  AWRE        1  [ sav:  1]
  ARRE        1  [ sav:  1]
  TB          0  [ sav:  0]
  RC          0  [ sav:  0]
  EER         0  [ sav:  0]
  PER         0  [ sav:  0]
  DTE         0  [ sav:  0]
  DCR         0  [ sav:  0]
  RRC         0  [ sav:  0]
  WRC         0  [ sav:  0]
  RTL         0  [ sav:  0]
Caching (SBC) mode page:
  IC          0  [ sav:  0]
  ABPF        0  [ sav:  0]
  CAP         0  [ sav:  0]
  DISC        0  [ sav:  0]
  SIZE        0  [ sav:  0]
  WCE         1  [ sav:  1]
  MF          0  [ sav:  0]
  RCD         0  [ sav:  0]
  DRRP        0  [ sav:  0]
  WRP         0  [ sav:  0]
  DPTL        0  [ sav:  0]
  MIPF        0  [ sav:  0]
  MAPF        0  [ sav:  0]
  MAPFC       0  [ sav:  0]
  FSW         0  [ sav:  0]
  LBCSS       0  [ sav:  0]
  DRA         0  [ sav:  0]
  NV_DIS      0  [ sav:  0]
  NCS         0  [ sav:  0]
  CSS         0  [ sav:  0]
Control mode page:
  TST         0  [ sav:  0]
  TMF_ONLY    0  [ sav:  0]
  D_SENSE     1  [ sav:  1]
  GLTSD       1  [ sav:  1]
  RLEC        0  [ sav:  0]
  QAM         0  [ sav:  0]
  QERR        0  [ sav:  0]
  RAC         0  [ sav:  0]
  UA_INTLCK   0  [ sav:  0]
  SWP         0  [ sav:  0]
  ATO         0  [ sav:  0]
  TAS         0  [ sav:  0]
  AUTOLOAD    0  [ sav:  0]
  BTP        -1  [ sav: -1]
  ESTCT      30  [ sav: 30]
Comment 2 Joshua Hoblitt 2005-08-21 18:42:25 UTC
Allan, can you post your `emerge info`?
Comment 3 Ben Skeggs 2005-08-22 06:32:17 UTC
Also works here.

darktama@disoft-dc ~ $ emerge info
Portage 2.0.51.22-r2 (!/usr/portage/profiles/default-linux/amd64/2005.1,
gcc-3.4.4, glibc-2.3.5-r1, 2.6.13-rc6 x86_64)
=================================================================
System uname: 2.6.13-rc6 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.12.0_pre6
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O3 -pipe"
DISTDIR="/home/portage/distfiles"
FEATURES="autoconfig buildpkg ccache distlocks multilib-strict sandbox sfperms
strict"
GENTOO_MIRRORS="ftp://ftp.iinet.net.au/pub/Gentoo/
http://mirror.pacific.net.au/linux/Gentoo/"
LINGUAS="en de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/home/portage"
PORTDIR_OVERLAY="/usr/local/overlays/scratch /usr/local/overlays/gnome_2_11"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="amd64 3dnowex X a52 aac aalib acl acpi alsa apache2 audiofile avi
bash-completion berkdb bitmap-fonts bonobo bzlib cairo calendar cdparanoia cdr
crypt cups curl dbus dlloader dri dvd dvdr dvdread eds encode esd exif expat fam
fbcon ffmpeg flac foomaticdb fortran ftp gd gif glitz glut gnome gpm gstreamer
gtk gtk2 guile hal imagemagick imlib inotify ipv6 ithreads jack java javascript
jikes jpeg junit kde kerberos krb4 lcms ldap libwww lm_sensors lzw lzw-tiff mad
mmap mng mono motif mozilla mp3 mpeg mpi msn mysql ncurses nls nocd nptl
nptlonly nvidia offensive ogg oggvorbis openal opengl oss pam pdflib perl png
python qt quicktime readline recode samba sasl sdl session speex spell sqlite
ssl subversion sysvipc szip tcltk tcpd theora threads tiff truetype
truetype-fonts type1 type1-fonts unicode usb userlocales vcd videos vorbis wmf
wxwindows xine xinerama xml xml2 xmms xosd xpm xprint xsl xv xvid xvmc yahoo
zlib linguas_en linguas_de userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 4 Joshua Kinard gentoo-dev 2005-09-03 21:19:28 UTC
It looks to me like sdparm is spitting out invalid areas in memory...sounds like
bad code somewheres, maybe.  I'll fire an email to the upstream maintainer for info.
Comment 5 Joshua Kinard gentoo-dev 2005-09-04 13:40:08 UTC
Joshua: could you do a few things:

1) Gather the following information about your /dev/sda drive from these locations:
     * cat /proc/scsi/scsi
     * dmesg
     * /var/log/messages

2) Past the info into a comment or attach it as a file if the output is too big.

3) Try the sdparm-0.95 beta here and see if it causes the same problems from
http://sg.torque.net/sg/sdparm.html
Comment 6 Joshua Hoblitt 2005-09-17 04:39:34 UTC
I thought I had stated this but it looks like I left it out of the original bug
report.  This is a 3Ware SATA controller. I don't expect sdparm to be able to
set any parameters on it but I don't expect it to spew garbage either.

Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: 3ware    Model: Logical Disk 0   Rev: 1.2
  Type:   Direct-Access                    ANSI SCSI revision: ffffffff

3ware Storage Controller device driver for Linux v1.26.02.001.
ACPI: PCI Interrupt 0000:01:04.0[A] -> GSI 16 (level, low) -> IRQ 16
scsi0 : 3ware Storage Controller
3w-xxxx: scsi0: Found a 3ware Storage Controller at 0xa880, IRQ: 16.
  Vendor: 3ware     Model: Logical Disk 0    Rev: 1.2
  Type:   Direct-Access                      ANSI SCSI revision: 00
3ware 9000 Storage Controller device driver for Linux v2.26.02.002.
SCSI device sda: 488395120 512-byte hdwr sectors (250058 MB)
SCSI device sda: drive cache: write back
SCSI device sda: 488395120 512-byte hdwr sectors (250058 MB)
SCSI device sda: drive cache: write back
 /dev/scsi/host0/bus0/target0/lun0: p1 p2 p3 p4
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0,  type 0
Comment 7 Joshua Kinard gentoo-dev 2005-09-21 20:11:01 UTC
Joshua, I just added 0.95 to CVS, so it should sync out to the mirrors shortly.
 Try that on your box and see if it solves the problem.  Communicating with the
sdparm author, he added some defensive code to the region in sdparm which may be
triggering this particular issue.
Comment 8 Joshua Hoblitt 2007-07-19 00:18:57 UTC
This is is resolved as of at least v1.01 if not earlier.  Sorry for taking 2 years to test this, I wasn't CC'd on the last comment.