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

Charles Lepple clepple at gmail.com
Wed Dec 17 02:20:09 UTC 2008


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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: nut.spec
Type: application/octet-stream
Size: 19474 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20081216/83f8575f/attachment-0002.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nut-2.2.2-tl-reconnect.patch
Type: application/octet-stream
Size: 1202 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20081216/83f8575f/attachment-0003.obj 


More information about the Nut-upsdev mailing list