Created attachment 327251 [details] Nut 2.2.2 Tripplite Reconnect Patch Description of problem: NUT tripplite_usb driver segfaults in libc when UPS switches to battery. This causes upsmon to lose connection to UPS driver, think the UPS' battery is immediately dead and begin immediate system shutdown. Syslog trace below: Dec 16 05:25:05 jobs upsmon[2899]: UPS tripplite@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) Dec 16 05:25:07 jobs upsd[2895]: Data for UPS [tripplite] is stale - check driver Dec 16 05:25:07 jobs tripplite_usb[2892]: Reconnect attempt #1 Dec 16 05:25:07 jobs kernel: tripplite_usb[2892]: segfault at d ip 00180892 sp bfb9ba30 error 4 in libc-2.8.so[111000+163000] Dec 16 05:25:07 jobs upsd[2895]: UPS [tripplite] disconnected - check driver Dec 16 05:25:07 jobs upsd[2895]: Can't connect to UPS [tripplite] (tripplite_usb-tripplite): Connection refused Dec 16 05:25:10 jobs upsmon[2899]: Poll UPS [tripplite@jobs] failed - Driver not connected Dec 16 05:25:10 jobs upsmon[2899]: Communications with UPS tripplite@jobs lost Dec 16 05:25:10 jobs wall[27599]: wall: user nut broadcasted 1 lines (45 chars) Dec 16 05:25:15 jobs upsmon[2899]: Poll UPS [tripplite@jobs] failed - Driver not connected Dec 16 05:25:20 jobs upsmon[2899]: Poll UPS [tripplite@jobs] failed - Driver not connected Dec 16 05:25:25 jobs upsmon[2899]: Poll UPS [tripplite@jobs] failed - Driver not connected Dec 16 05:25:25 jobs upsd[2895]: Client monusermaster.0.1 set FSD on UPS [tripplite] Dec 16 05:25:25 jobs upsmon[2899]: Executing automatic power-fail shutdown Dec 16 05:25:25 jobs wall[27616]: wall: user nut broadcasted 2 lines (43 chars) Dec 16 05:25:25 jobs upsmon[2899]: Auto logout and shutdown proceeding Dec 16 05:25:25 jobs wall[27619]: wall: user nut broadcasted 1 lines (37 chars) Version-Release number of selected component (if applicable): 2.2.2 How reproducible: Easily Steps to Reproduce: 1. Unplug UPS to put in battery state. 2. 3. Actual results: Driver segfaults, produces syslog entries as shown above Expected results: No segfault. Upsmon continues to communicate with UPS via tripplite_usb driver. Additional info: Patch by Charles Lepple (maintainer of NUT tripplite_usb driver) attached.
thanks for reporting
nut-2.2.2-2.fc9 has been submitted as an update for Fedora 9. http://admin.fedoraproject.org/updates/nut-2.2.2-2.fc9
nut-2.2.2-4.fc10 has been submitted as an update for Fedora 10. http://admin.fedoraproject.org/updates/nut-2.2.2-4.fc10
nut-2.2.2-4.fc10 has been pushed to the Fedora 10 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update nut'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2008-11607
nut-2.2.2-2.fc9 has been pushed to the Fedora 9 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing-newkey update nut'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2008-11552
nut-2.2.2-4.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.
nut-2.2.2-2.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report.