Bug#674156: alignment issue

Koichi Akabe vbkaisetsu at gmail.com
Fri Oct 19 13:32:46 UTC 2012


According to the build log on armel:

> 0%: Checks: 1, Failures: 1, Errors: 0
> elements/rtpbin_buffer_list.c:198:F:general:test_bufferlist:0: '*(guint64 *) data' (939538581729009792) is not equal to '*(guint64 *) rtp_header[index]' (16815518223612020252)
>

It casts from *guint8 to *guint64. armel doesn't return expected result
if the first address is not suited for guint64. In this case, the data
is shifted 2 bytes.

939538581729009792   = 0x0D09E95CB8BB6080
16815518223612020252 =     0xE95CB8BB6080861C

> 
> (gst-plugin-scanner:961): GLib-GObject-WARNING **: specified instance
> size for type `GstRtpAC3Depay' is smaller than the parent type's
> `GstBaseRTPDepayload' instance size
> 
> (gst-plugin-scanner:961): GLib-CRITICAL **: g_once_init_leave:
> assertion `result != 0' failed
> 
> (gst-plugin-scanner:961): GStreamer-CRITICAL **: gst_element_register:
> assertion `g_type_is_a (type, GST_TYPE_ELEMENT)' failed W: Could not
> load
> 'debian/gstreamer0.10-plugins-good/usr/lib/arm-linux-gnueabi/gstreamer-0.10/libgstrtp.so':
> File
> "debian/gstreamer0.10-plugins-good/usr/lib/arm-linux-gnueabi/gstreamer-0.10/libgstrtp.so"
> appears to be a GStreamer plugin, but it failed to initialize
> 

I tried getting the size of these structures using sizeof(). Both
structures are 320 bytes, but
gst-plugins-base-0.10.36/tests/check/libs/struct_arm.h says 328 bytes.

I think it also alignment issue.

-- 
Koichi Akabe
  vbkaisetsu at {gmail.com, debian.or.jp}



More information about the pkg-gstreamer-maintainers mailing list