[Bug 706551] gsttestclock check failed

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Aug 22 19:57:46 PDT 2013


https://bugzilla.gnome.org/show_bug.cgi?id=706551
  GStreamer | gstreamer (core) | 1.1.3

--- Comment #5 from kel <kel13thuzadus at gmail.com> 2013-08-23 02:57:38 UTC ---
(In reply to comment #4)
> The testclock is not used in real world usage. This would seem like there is a
> general clock problem on your system, like the systemclock being completely
> unreliable.


1.try to run ntpdate to fix the time, it seems that ntpdate works correctly
with the ubuntu server.

$ sudo ntpdate ntp.ubuntu.com
23 Aug 08:53:43 ntpdate[4943]: adjust time server 91.189.89.199 offset 0.023004
sec


2.run in gdb mode(make libs/gsttestclock.gdb in tests/check), and the first
error is in line 432

432        g_cond_wait (&priv->entry_processed_cond, GST_OBJECT_GET_LOCK
(test_clock));
(gdb) 
**
ERROR:libs/gsttestclock.c:284:test_wait_synchronous_no_timeout: assertion
failed: (entry == (clock_id))

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x404dc900 (LWP 16438)]
0x40022424 in __kernel_vsyscall ()


and the values are:


(gdb) l
427        gst_test_clock_add_entry (test_clock, entry, jitter);
428    
429      GST_CLOCK_ENTRY_STATUS (entry) = GST_CLOCK_BUSY;
430    
431      while (GST_CLOCK_ENTRY_STATUS (entry) == GST_CLOCK_BUSY)
432        g_cond_wait (&priv->entry_processed_cond, GST_OBJECT_GET_LOCK
(test_clock));
433    
434      GST_OBJECT_UNLOCK (test_clock);
435    
436      return GST_CLOCK_ENTRY_STATUS (entry);

(*here is the problem?*)

(gdb) p *entry
$4 = {refcount = 3, clock = 0x806f5b0, type = GST_CLOCK_ENTRY_SINGLE, time =
999999999, 
  interval = 18446744073709551615, status = GST_CLOCK_BUSY, func = 0, user_data
= 0x0, destroy_data = 0, 
  unscheduled = 0, woken_up = 0, _gst_reserved = {0x0, 0x0, 0x0, 0x0}}

(gdb) p priv->entry_processed_cond
$5 = {p = 0x806ed78, i = {0, 0}}

(gdb) p *test_clock
$6 = {parent = {object = {object = {g_type_instance = {g_class = 0x806e7b0},
ref_count = 1, qdata = 0x0}, lock = {
        p = 0x806eb80, i = {134671232, 0}}, name = 0x806ee18 "testclock6",
parent = 0x0, flags = 240, 
      control_bindings = 0x0, control_rate = 100000000, last_sync =
18446744073709551615, _gst_reserved = 0x0}, 
    priv = 0x806f600, _gst_reserved = {0x0, 0x0, 0x0, 0x0}}, priv = 0x806f668}



still reading the code(/tests/check/libs/gsttestclock.c).

-- 
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