[Bug 1483615] Re: usbhid-ups driver segfaults on discovery of UPS

2016-07-19 Thread Charles Lepple
@william-gallaf, likely related. While the patch mentioned in comment #6 above will prevent the segfault, it also prevents the driver from determining whether some APC workarounds need to be applied: https://github.com/networkupstools/nut/blob/master/drivers/apc-hid.c#L40 Which size Back-UPS ES

[Bug 1483615] Re: usbhid-ups driver segfaults on discovery of UPS

2016-07-18 Thread William Gallafent
I wonder if https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812604 is related? I also see a segfault on discovering the UPS, with an APC Back-UPS ES attached. ** Bug watch added: Debian Bug tracker #812604 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812604 -- You received this bug not

[Bug 1483615] Re: usbhid-ups driver segfaults on discovery of UPS

2016-01-25 Thread davis
Hi Charles, Thanks. I think that solved it: root@barnbox:~# tail -n 7 /etc/nut/ups.conf && /lib/nut/usbhid-ups -u nut -a apc [apc] driver = usbhid-ups port = auto desc = "APC Back-UPS" #bus="001" #vendor="051d" Network UPS Tools - Generic HID driver 0.38 (

[Bug 1483615] Re: usbhid-ups driver segfaults on discovery of UPS

2016-01-25 Thread Charles Lepple
Since you only have one UPS, I would recommend removing the extra "-x" options (this prevents problems down the road if a new kernel assigns a different bus number). I believe the regex matcher is case-sensitive, so the "051D" does not match. Interestingly enough, we did have another recent unrepr

[Bug 1483615] Re: usbhid-ups driver segfaults on discovery of UPS

2016-01-25 Thread davis
Hi Charles, I can see your thinking, but no, this isn't a VM, nor is the kernel I'm using a Hypervisor - it's a plain old machine: root@barnbox:~# grep -i hyper /proc/cpuinfo root@barnbox:~# I updated the machine with apt-get (again) and I also updated the machine's BIOS. Prior to doing the u

[Bug 1483615] Re: usbhid-ups driver segfaults on discovery of UPS

2016-01-24 Thread Charles Lepple
@davis65536: I think we might have a lead on this. Are you running in a VM? https://github.com/networkupstools/nut/issues/258 The APC portion of usbhid-ups expects that if it can open the device, it can read the string descriptors. Your system is printing "unknown" for the Manufacturer, Product a

[Bug 1483615] Re: usbhid-ups driver segfaults on discovery of UPS

2015-11-18 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: nut (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1483615 Title: usbhid

[Bug 1483615] Re: usbhid-ups driver segfaults on discovery of UPS

2015-08-11 Thread Robie Basak
** Changed in: nut (Ubuntu) Importance: Undecided => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1483615 Title: usbhid-ups driver segfaults on discovery of UPS To manage notifications a

[Bug 1483615] Re: usbhid-ups driver segfaults on discovery of UPS

2015-08-11 Thread davis
** Attachment added: "Valgrind logfile" https://bugs.launchpad.net/ubuntu/+source/nut/+bug/1483615/+attachment/4442830/+files/valgrind.log -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1483615 Tit

[Bug 1483615] Re: usbhid-ups driver segfaults on discovery of UPS

2015-08-11 Thread davis
** Attachment added: "Valgrind session output" https://bugs.launchpad.net/ubuntu/+source/nut/+bug/1483615/+attachment/4442829/+files/02_valgrind_session.txt -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net

[Bug 1483615] Re: usbhid-ups driver segfaults on discovery of UPS

2015-08-11 Thread davis
** Attachment added: "GDB session with backtrace" https://bugs.launchpad.net/ubuntu/+source/nut/+bug/1483615/+attachment/4442828/+files/01_gdb_session.txt -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/b