From: SAWADA K. <car...@us...> - 2004-04-28 18:11:05
|
Hi Bertrand, > I have downloaded smartmontools on my Solaris 9 Sparc Ultra10, > compiled it with the Sun Compiler, installed > this machine has 2 Ata drives and a currently off Scsi disk (too noisy) > (same result when the ScSI disk in on) > smartd -d crashed with bus Error > smartd version 5.30 Copyright (C) 2002-4 Bruce Allen > Home page is http://smartmontools.sourceforge.net/ ... > Monitoring 2 ATA and 0 SCSI devices > Bus Error - core dumped > adb ./smartd /etc/core > core file = /etc/core -- program ``./smartd'' on platform SUNW,Ultra-5_10 > SIGBUS: Bus Error Did you supply '-xmemalign=1i' option to Sun compiler? Sun compiler needs this option for smartmontools compilation to access unaligned 2-bytes data. Normally, configure script automatically adds this option to CFLAGS, but it can be overwritten by command line argument or environment variable. If -xmemalign option is missing, you will recieve bus error right after "SMART READ ATTRIBUTE VALUES" command by "./smartd -d -r ioctl". Please try adding '-xmemalign=1i' to CFLAGS, or stopping overwriting CFLAGS, or using GCC instead. GCC seems to produce correct code that accesses unaligned data. -- ksw / SAWADA Keiji <car...@us...> |