[Nut-upsdev] Segfault in Tripplite_usb driver when UPS on battery

Bradley Feldman bradley at bradleyloritheo.com
Wed Dec 17 02:23:46 UTC 2008


Charles:

Yes, this is the same rpm from the FC9 distro.

I'll give rebuilding the rpm a try based on your instructions.

Thank you,

*Bradley

-----Original Message-----
From: Charles Lepple [mailto:clepple at gmail.com] 
Sent: Tuesday, December 16, 2008 9:20 PM
To: Bradley Feldman
Cc: nut-upsdev list
Subject: Re: Segfault in Tripplite_usb driver when UPS on battery

On Dec 16, 2008, at 10:36 AM, Bradley Feldman wrote:

> Looking at the syslog, I noticed that the tripplite_usb driver 
> segfaulted once it switched to battery (see below).  I'm not sure 
> whether you still maintain the driver or if I need to file a bug 
> somewhere.

I still have the unit in question; however, since the segfault happened
inside libc, I won't be able to reproduce it easily here.

Just to be sure, this is the same NUT 2.2.2 (from Fedora Core 9 RPMs) that
you mentioned in the last email?

Also, I am copying the nut-upsdev list so that other people can find this
email thread.

> --------------------------------
> Dec 16 05:25:05 jobs upsmon[2899]: UPS tripplite at jobs on battery Dec 
> 16 05:25:05 jobs wall[27596]: wall: user nut broadcasted 1 lines (31
> chars)
> Dec 16 05:25:07 jobs tripplite_usb[2892]: Error reading B value:  
> Device
> detached
> ? (error 0: error sending control message: Operation not permitted)


Hmm, the device shouldn't have detached here.

It looks like we patched this in the trunk, so it would be released as part
of NUT 2.4.0. I'm not sure if they will be releasing NUT 2.4.0 for FC9, so I
am attaching the updated files that you would need to rebuild the NUT 2.2.2
RPM.

Grab the SRPM from here: http://rpmfind.net/linux/RPM/fedora/updates/
9/SRPMS/nut-2.2.2-1.fc9.src.html

Install it (probably "rpm -i nut-2.2.2*.src.rpm).

Copy nut.spec and nut-2.2.2-tl-reconnect.patch into /usr/src/rpm/ SPECS and
/usr/src/rpm/SOURCES, respectively.

cd into SPECS and run 'rpmbuild -bb nut.spec'.

--
Charles Lepple
clepple at gmail






More information about the Nut-upsdev mailing list