Re: [oe] Query regarding segfault during gstreamer playback with libx32

2017-02-16 Thread Shrikant Bobade
On Thu, Feb 16, 2017 at 9:10 PM, Khem Raj  wrote:
>
> On Thu, Feb 16, 2017 at 2:28 AM, Shrikant Bobade
>  wrote:
> > Hi All,
> >
> > I have prepared core-image-sato from poky: morty:
> > 6a1f33cc40bfac33cf030fe41e1a8efd1e5fad6f HEAD with libx32 support w.r.to
> > section 4.6.3 under
> > http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#support
,
> > while using gst. playback I am getting segfault, below are the setup
> > details & logs. Dose anyone else faced similar issue?
> >
> > Thanks
> > Shrikant
> >
> >
> > 1.with libx32 support: added below stuff to local.conf
> >
> > MACHINE = "qemux86-64"
> > DEFAULTTUNE = "x86-64-x32"
> > baselib = "${@d.getVar('BASE_LIB_tune-' + (d.getVar('DEFAULTTUNE',
True) \
> >  or 'INVALID'), True) or 'lib'}"
> >
> > 2. gstreamer1.0-plugins-good/base/bad available with image.
> >
> > 3. build conf:
> > Build Configuration:
> > BB_VERSION= "1.32.0"
> > BUILD_SYS = "x86_64-linux"
> > NATIVELSBSTRING   = "universal-4.8"
> > TARGET_SYS= "x86_64-poky-linux-gnux32"
> > MACHINE   = "qemux86-64"
> > DISTRO= "poky"
> > DISTRO_VERSION= "2.2.1"
> > TUNE_FEATURES = "mx32"
> > TARGET_FPU= ""
> > meta
> > meta-poky
> > meta-yocto-bsp= "morty:6a1f33cc40bfac33cf030fe41e1a8efd1e5fad6f"
> >
> > 4. bt log
> > #0  0xf67ef8fd in poll () from /libx32/libc.so.6
> > #1  0xf6d04eb5 in ?? () from /usr/libx32/libglib-2.0.so.0
> > #2  0xf6d05222 in g_main_loop_run () from /usr/libx32/libglib-2.0.so.0
> > #3  0xf724f01e in gst_bus_poll () from /usr/libx32/libgstreamer-1.0.so.0
> > #4  0x00403a78 in ?? ()
> > #5  0x00402a25 in ?? ()
> > #6  0xf672e54d in __libc_start_main () from /libx32/libc.so.6
> > #7  0x00403048 in ?? ()
> >
>
> may be you can add debug info to image to get better trace.

thanks , yes with more debug info getting segfault in
gst_audio_sink_ring_buffer_acquire around orc_memset,

debug trace:

Thread 1 "gst-launch-1.0" hit Breakpoint 1, gst_bus_poll
(bus=bus@entry=0x6c4b98,
events=events@entry=GST_MESSAGE_ANY, timeout=18446744073709551615)
at
/usr/src/debug/gstreamer1.0/1.8.3-r0/gstreamer-1.8.3/gst/gstbus.c:1132
1132 {
(gdb) n
1137  g_return_val_if_fail (GST_IS_BUS (bus), NULL);
(gdb) n
1139  poll_data = g_slice_new (GstBusPollData);
(gdb) n

Thread 11 "aqueue:src" received signal SIGSEGV, Segmentation fault.
[Switching to LWP 1049]
0xf7f8a0c4 in ?? ()
(gdb) bt
#0  0xf7f8a0c4 in ?? ()
#1  0xf4ff432b in orc_memset () from /usr/libx32/liborc-0.4.so.0
#2  0xf593d08c in gst_audio_sink_ring_buffer_acquire (buf=,
spec=)
at
/usr/src/debug/gstreamer1.0-plugins-base/1.8.3-r0/gst-plugins-base-1.8.3/gst-libs/gst/audio/gstaudiosink.c:419
#3  0xf5918ec2 in gst_audio_ring_buffer_acquire (buf=,
spec=spec@entry=0x7560d8)
at
/usr/src/debug/gstreamer1.0-plugins-base/1.8.3-r0/gst-plugins-base-1.8.3/gst-libs/gst/audio/gstaudioringbuffer.c:571
#4  0xf5937213 in gst_audio_base_sink_setcaps (bsink=,
caps=)
at
/usr/src/debug/gstreamer1.0-plugins-base/1.8.3-r0/gst-plugins-base-1.8.3/gst-libs/gst/audio/gstaudiobasesink.c:975
#5  0xf52792db in gst_base_sink_default_event (basesink=,
event=) at
/usr/src/debug/gstreamer1.0/1.8.3-r0/gstreamer-1.8.3/libs/gst/base/gstbasesink.c:3146
#6  0xf5274d04 in gst_base_sink_event (pad=,
parent=, event=)
at
/usr/src/debug/gstreamer1.0/1.8.3-r0/gstreamer-1.8.3/libs/gst/base/gstbasesink.c:3252
#7  0xf7b2332f in gst_pad_send_event_unchecked (pad=pad@entry=0x745428,
event=event@entry=0xf443a5c0, type=, type@entry
=GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM)
at
/usr/src/debug/gstreamer1.0/1.8.3-r0/gstreamer-1.8.3/gst/gstpad.c:5587
#8  0xf7b2361d in gst_pad_push_event_unchecked (pad=pad@entry=0xf4464a48,
event=0xf443a5c0, type=type@entry=GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM)
at
/usr/src/debug/gstreamer1.0/1.8.3-r0/gstreamer-1.8.3/gst/gstpad.c:5245
#9  0xf7b23c08 in push_sticky (pad=pad@entry=0xf4464a48,
ev=ev@entry=0xe295efd0,
user_data=user_data@entry=0xe295f030)
at
/usr/src/debug/gstreamer1.0/1.8.3-r0/gstreamer-1.8.3/gst/gstpad.c:3790
#10 0xf7b21910 in events_foreach (pad=pad@entry=0xf4464a48,
func=func@entry=0xf7b23ac0
, user_data=user_data@entry=0xe295f030)
at /usr/src/debug/gstreamer1.0/1.8.3-r0/gstreamer-1.8.3/gst/gstpad.c:603
#11 0xf7b2d713 in check_sticky (event=0xf443a5c0, pad=0xf4464a48) at
/usr/src/debug/gstreamer1.0/1.8.3-r0/gstreamer-1.8.3/gst/gstpad.c:3847
#12 gst_pad_push_event (pad=pad@entry=0xf4464a48, event=) at
/usr/src/debug/gstreamer1.0/1.8.3-r0/gstreamer-1.8.3/gst/gstpad.c:5376
#13 0xf7b2d887 in event_forward_func (pad=pad@entry=0xf4464a48,
data=data@entry=0xe295f140) at
/usr/src/debug/gstreamer1.0/1.8.3-r0/gstreamer-1.8.3/gst/gstpad.c:2993
#14 0xf7b293d1 in gst_pad_forward (pad=,
forward=forward@entry=0xf7b2d7d0 ,
user_data=user_data@entry=0xe295f140)
at
/usr/src/debug/gstreamer1.0/1.8.3-r0/gstreamer-1.8.3/gst/gstpad.c:2947
#15 0xf7b2950b in gst_pad_event_default (pad=,
parent=, event=) at

Re: [oe] Query regarding segfault during gstreamer playback with libx32

2017-02-16 Thread Khem Raj
On Thu, Feb 16, 2017 at 2:28 AM, Shrikant Bobade
 wrote:
> Hi All,
>
> I have prepared core-image-sato from poky: morty:
> 6a1f33cc40bfac33cf030fe41e1a8efd1e5fad6f HEAD with libx32 support w.r.to
> section 4.6.3 under
> http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#support ,
> while using gst. playback I am getting segfault, below are the setup
> details & logs. Dose anyone else faced similar issue?
>
> Thanks
> Shrikant
>
>
> 1.with libx32 support: added below stuff to local.conf
>
> MACHINE = "qemux86-64"
> DEFAULTTUNE = "x86-64-x32"
> baselib = "${@d.getVar('BASE_LIB_tune-' + (d.getVar('DEFAULTTUNE', True) \
>  or 'INVALID'), True) or 'lib'}"
>
> 2. gstreamer1.0-plugins-good/base/bad available with image.
>
> 3. build conf:
> Build Configuration:
> BB_VERSION= "1.32.0"
> BUILD_SYS = "x86_64-linux"
> NATIVELSBSTRING   = "universal-4.8"
> TARGET_SYS= "x86_64-poky-linux-gnux32"
> MACHINE   = "qemux86-64"
> DISTRO= "poky"
> DISTRO_VERSION= "2.2.1"
> TUNE_FEATURES = "mx32"
> TARGET_FPU= ""
> meta
> meta-poky
> meta-yocto-bsp= "morty:6a1f33cc40bfac33cf030fe41e1a8efd1e5fad6f"
>
> 4. bt log
> #0  0xf67ef8fd in poll () from /libx32/libc.so.6
> #1  0xf6d04eb5 in ?? () from /usr/libx32/libglib-2.0.so.0
> #2  0xf6d05222 in g_main_loop_run () from /usr/libx32/libglib-2.0.so.0
> #3  0xf724f01e in gst_bus_poll () from /usr/libx32/libgstreamer-1.0.so.0
> #4  0x00403a78 in ?? ()
> #5  0x00402a25 in ?? ()
> #6  0xf672e54d in __libc_start_main () from /libx32/libc.so.6
> #7  0x00403048 in ?? ()
>

may be you can add debug info to image to get better trace.
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


[oe] Query regarding segfault during gstreamer playback with libx32

2017-02-16 Thread Shrikant Bobade
Hi All,

I have prepared core-image-sato from poky: morty:
6a1f33cc40bfac33cf030fe41e1a8efd1e5fad6f HEAD with libx32 support w.r.to
section 4.6.3 under
http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#support ,
while using gst. playback I am getting segfault, below are the setup
details & logs. Dose anyone else faced similar issue?

Thanks
Shrikant


1.with libx32 support: added below stuff to local.conf

MACHINE = "qemux86-64"
DEFAULTTUNE = "x86-64-x32"
baselib = "${@d.getVar('BASE_LIB_tune-' + (d.getVar('DEFAULTTUNE', True) \
 or 'INVALID'), True) or 'lib'}"

2. gstreamer1.0-plugins-good/base/bad available with image.

3. build conf:
Build Configuration:
BB_VERSION= "1.32.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING   = "universal-4.8"
TARGET_SYS= "x86_64-poky-linux-gnux32"
MACHINE   = "qemux86-64"
DISTRO= "poky"
DISTRO_VERSION= "2.2.1"
TUNE_FEATURES = "mx32"
TARGET_FPU= ""
meta
meta-poky
meta-yocto-bsp= "morty:6a1f33cc40bfac33cf030fe41e1a8efd1e5fad6f"

4. bt log
#0  0xf67ef8fd in poll () from /libx32/libc.so.6
#1  0xf6d04eb5 in ?? () from /usr/libx32/libglib-2.0.so.0
#2  0xf6d05222 in g_main_loop_run () from /usr/libx32/libglib-2.0.so.0
#3  0xf724f01e in gst_bus_poll () from /usr/libx32/libgstreamer-1.0.so.0
#4  0x00403a78 in ?? ()
#5  0x00402a25 in ?? ()
#6  0xf672e54d in __libc_start_main () from /libx32/libc.so.6
#7  0x00403048 in ?? ()


5. complete log:

root@qemux86-64:~# export DISPLAY=:0.0
root@qemux86-64:~#
root@qemux86-64:~# gst-launch-1.0 -v playbin uri=file:///home/root/Small.ogv
Setting pipeline to PAUSED ...
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: ring-buffer-max-size = 0
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: buffer-size = -1
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: buffer-duration = -1
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: use-buffering = false
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: download = false
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: uri =
file:///home/root/Small.ogv
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: connection-speed = 0
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: source =
"\(GstFileSrc\)\ source"
Pipeline is PREROLLING ...
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind.GstPad:src:
caps = video/ogg
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind.GstPad:src:
caps = "NULL"
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0:
max-size-buffers = 5
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0:
max-size-time = 0
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0:
max-size-bytes = 2097152
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0.GstPad:src_0:
caps = "video/x-theora\,\ width\=\(int\)560\,\ height\=\(int\)320\,\
framerate\=\(fraction\)30/1\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\
streamheader\=\(buffer\)\<\
807468656f72610302010023001400023140003c0002c8c0\,\
817468656f72612b00586970682e4f7267206c69627468656f726120312e312032303039303832322028546875736e656c64612902001a00454e434f4445523d6d706567327468656f72612d302e32361e00534f555243455f4f53484153483d64316166373861383265363164313866\,\
827468656f7261becd28f7b9cd6b18b5a9494a10739ce6318c5294a42108318c62108421084000116dae536792c8fc5612fc78395b6ce62af568ab54281329245a10fe79399b8d66530978b255299389248219087c3c1d8e06a34180bc562a1409046221087c3c1c0c8602c14088381516dae536792c8fc5612fc78395b6ce62af568ab54281329245a10fe79399b8d66530978b255299389248219087c3c1d8e06a34180bc562a1409046221087c3c1c0c8602c1408838140b0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0c0c0f121414150d0d0e11121515140e0e0f12141515150e101113141515151011141515151515121314151515151514151515151515151515151515151515100c0b1014191b1c0d0d0e12151c1c1b0e0d1014191c1c1c0e1013161b1d1d1c1113191c1c1e1e1d14181b1c1d1e1e1d1b1c1d1d1e1e1e1e1d1d1d1d1e1e1e1d100b0a101828333d0c0c0e131a3a3c370e0d1018283945380e11161d3357503e1216253a446d674d182337405168715c31404e5767797865485c5f62706467631313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131