A NOTE has been added to this issue. ====================================================================== https://www.opencsw.org/mantis/view.php?id=5216 ====================================================================== Reported By: zdima Assigned To: laurent ====================================================================== Project: apcupsd Issue ID: 5216 Category: regular use Reproducibility: always Severity: minor Priority: normal Status: confirmed ====================================================================== Date Submitted: 2014-11-14 22:06 CET Last Modified: 2014-11-20 14:02 CET ====================================================================== Summary: apctest dump core Description: While running apctest it is dumping a core.
Configuration: # uname -a SunOS freenas 5.11 omnios-10b9c79 i86pc i386 i86pc # pkginfo -l SUNWlibusb | grep VER VERSION: 11.11.0,REV=2013.03.05.02.28 # grep -v "^#" /etc/opt/csw/apcupsd/apcupsd.conf | grep -v "^$" UPSNAME UPS UPSCABLE usb UPSTYPE usb DEVICE LOCKFILE /var/spool/locks SCRIPTDIR /etc/opt/csw/apcupsd PWRFAILDIR /etc NOLOGINDIR /etc ONBATTERYDELAY 6 BATTERYLEVEL 5 MINUTES 3 TIMEOUT 0 ANNOY 300 ANNOYDELAY 60 NOLOGON disable KILLDELAY 0 NETSERVER on NISIP 127.0.0.1 NISPORT 3551 EVENTSFILE /var/opt/csw/apcupsd/apcupsd.events EVENTSFILEMAX 10 UPSCLASS standalone UPSMODE disable STATTIME 0 STATFILE /var/opt/csw/apcupsd/apcupsd.status LOGSTATS off DATATIME 0 # /opt/csw/sbin/apctest 2014-11-14 16:01:24 apctest 3.14.12 (29 March 2014) sun Checking configuration ... sharenet.type = Network & ShareUPS Disabled cable.type = USB Cable mode.type = USB UPS Driver Setting up the port ... Doing prep_device() ... You are using a USB cable type, so I'm entering USB test mode Hello, this is the apcupsd Cable Test program. This part of apctest is for testing USB UPSes. Getting UPS capabilities...Segmentation Fault (core dumped) ====================================================================== Relationships ID Summary ---------------------------------------------------------------------- has duplicate 0005217 apctest dump core ====================================================================== ---------------------------------------------------------------------- (0010978) zdima (reporter) - 2014-11-20 14:02 https://www.opencsw.org/mantis/view.php?id=5216#c10978 ---------------------------------------------------------------------- The apctest is not crashing anymore. However, it is reporting error: Checking source i found that more useful debug messages are at much higher value and run with -d 500. The information that lead to understanding is: libusbugen.so.1: libusb_init() returned 0 plugin rev is 1 wrapper rev is 1 winfo.ploaded is 1 completed usb init() usb_bus ptr = 0x80ce548 busp is 0x80ce548 0.001 apcupsd: generic-usb.c:416 Found 1 USB busses 0.025 apcupsd: generic-usb.c:418 Found 4 USB devices 0.025 apcupsd: generic-usb.c:429 /dev/usb:4f2.111/0 - 04f2:0111 0.025 apcupsd: generic-usb.c:304 Not an APC device. 0.025 apcupsd: generic-usb.c:429 /dev/usb:764.501/0 - 0764:0501 0.025 apcupsd: generic-usb.c:304 Not an APC device. My UPS is known as /dev/usb:764.501/0 - 0764:0501, and it is not considered as known UPS. This is CyberPower Intelligent LCD CP1000AVRLCD. I think we can close this ticket. One suggestion is to print in apctest output a proper reason for a failure if possible. Thanks for all your help.