[Bug 724487] New: apcupsd segfault when terminated
https://bugzilla.novell.com/show_bug.cgi?id=724487 https://bugzilla.novell.com/show_bug.cgi?id=724487#c0 Summary: apcupsd segfault when terminated Classification: openSUSE Product: openSUSE 12.1 Version: Factory Platform: x86-64 OS/Version: SuSE Other Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: sbrabec@suse.com ReportedBy: mkubecek@suse.com QAContact: qa@suse.de Found By: --- Blocker: --- I had a segfault when terminating apcupsd. Analysis of the core dump showed that it happened in pusb_ups_check_state() in src/drivers/usb/linux/linux-usb.c because main thread has freed ups->driver_internal_data while the other was still using copy of the pointer (local variable my_data). Version 3.14.10 fixes this in apcupsd_terminate() by moving call to clean_threads() before other cleanup (clear_files() and device_close(ups)). I'll attach the patch in a moment. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=724487 https://bugzilla.novell.com/show_bug.cgi?id=724487#c1 --- Comment #1 from Michal Kubeček <mkubecek@suse.com> 2011-10-17 09:08:10 UTC --- Created an attachment (id=456864) --> (http://bugzilla.novell.com/attachment.cgi?id=456864) avoid race dondition on exit submitrequest 88164 created -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=724487 https://bugzilla.novell.com/show_bug.cgi?id=724487#c2 --- Comment #2 from Bernhard Wiedemann <bwiedemann@suse.com> 2011-10-18 11:00:07 CEST --- This is an autogenerated message for OBS integration: This bug (724487) was mentioned in https://build.opensuse.org/request/show/88432 Factory / apcupsd -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=724487 https://bugzilla.novell.com/show_bug.cgi?id=724487#c3 Stanislav Brabec <sbrabec@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Stanislav Brabec <sbrabec@suse.com> 2011-10-20 18:42:07 CEST --- The fix is already in Factory. Nothing to be done from my side. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com