[Bug 732554] New: Watchdog sometimes expire even when stopped and causes crash.

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Tue Jul 1 06:54:51 PDT 2014


https://bugzilla.gnome.org/show_bug.cgi?id=732554
  GStreamer | gst-plugins-good | unspecified

           Summary: Watchdog sometimes expire even when stopped and causes
                    crash.
    Classification: Platform
           Product: GStreamer
           Version: unspecified
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins-good
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: goran.jonsson at axis.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


Created an attachment (id=279680)
 View: https://bugzilla.gnome.org/attachment.cgi?id=279680
 Review: https://bugzilla.gnome.org/review?bug=732554&attachment=279680

gst-plugins-good.patch

Watchdog sometimes expire even when stopped and causes crash.


This because of a gst_watchdog_stop 
is ongoing then a gst_watchdog_src_event is stuck at mutex.
As soon as stop is finish then the gst_watchdog_src_event continue.
Then in gst_watchdog_feed, a source will be attach to default context
(since watchdog->main_context is NULL).

When this expire there are no data to gst_watchdog_trigger since 
references to watchdog have been zero.

Solution is to check watchdog->main_context is not NULL before create and
attach a source.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list