applemedia: Reproducible segfault with h264
Submitted by David Rajchenbach-Teller (please use "needinfo")
Link to original bug (#768137)
Description
I'm currently attempting to export a h264 stream from the local network.
I'm using a D-Link 5020L IPCamera streaming h264, from a MacOS X 10.11.
Steps to reproduce:
- gst-launch-1.0 --verbose uridecodebin uri=http://USER:PASS@10.243.30.114/h264.cgi ! udpsink host=127.0.0.1 port=8080
- wait 1 or 2 seconds.
Output:
$ ./stream.sh
Setting pipeline to PAUSED ...
/GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0: source = "(GstSoupHTTPSrc)\ source"
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstTypeFindElement:typefindelement0.GstPad:src: caps = "video/x-h264,\ stream-format=(string)byte-stream"
/GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind: force-caps = "video/x-h264,\ stream-format=(string)byte-stream"
/GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0: sink-caps = "video/x-h264,\ stream-format=(string)byte-stream"
/GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstQueue2:queue2-0.GstPad:src: caps = "video/x-h264,\ stream-format=(string)byte-stream"
/GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstQueue2:queue2-0.GstPad:src: caps = "video/x-h264,\ stream-format=(string)byte-stream"
/GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0.GstGhostPad:sink.GstProxyPad:proxypad0: caps = "video/x-h264,\ stream-format=(string)byte-stream"
/GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind.GstPad:src: caps = "video/x-h264,\ stream-format=(string)byte-stream"
/GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstH264Parse:h264parse0.GstPad:sink: caps = "video/x-h264,\ stream-format=(string)byte-stream"
/GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind.GstPad:sink: caps = "video/x-h264,\ stream-format=(string)byte-stream"
/GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0.GstGhostPad:sink: caps = "video/x-h264,\ stream-format=(string)byte-stream"
/GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstH264Parse:h264parse0.GstPad:src: caps = "video/x-h264,\ stream-format=(string)avc,\ width=(int)640,\ height=(int)480,\ framerate=(fraction)0/1,\ parsed=(boolean)true,\ alignment=(string)au,\ profile=(string)baseline,\ level=(string)3,\ codec_data=(buffer)0142001effe100136742001ea9501407b42000007d00001d4c008001000468ce3c80"
Got context from element 'vtdechw0': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"(GstGLDisplayCocoa)\ gldisplaycocoa0";
/GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstVtdecHw:vtdechw0.GstPad:src: caps = "video/x-raw(memory:GLMemory),\ format=(string)NV12,\ width=(int)640,\ height=(int)480,\ interlace-mode=(string)progressive,\ pixel-aspect-ratio=(fraction)1/1,\ chroma-site=(string)jpeg,\ colorimetry=(string)bt601,\ framerate=(fraction)0/1,\ texture-target=(string)rectangle"
/GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstVtdecHw:vtdechw0.GstPad:sink: caps = "video/x-h264,\ stream-format=(string)avc,\ width=(int)640,\ height=(int)480,\ framerate=(fraction)0/1,\ parsed=(boolean)true,\ alignment=(string)au,\ profile=(string)baseline,\ level=(string)3,\ codec_data=(buffer)0142001effe100136742001ea9501407b42000007d00001d4c008001000468ce3c80"
/GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstCapsFilter:capsfilter0.GstPad:src: caps = "video/x-h264,\ stream-format=(string)avc,\ width=(int)640,\ height=(int)480,\ framerate=(fraction)0/1,\ parsed=(boolean)true,\ alignment=(string)au,\ profile=(string)baseline,\ level=(string)3,\ codec_data=(buffer)0142001effe100136742001ea9501407b42000007d00001d4c008001000468ce3c80"
/GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstCapsFilter:capsfilter0.GstPad:sink: caps = "video/x-h264,\ stream-format=(string)avc,\ width=(int)640,\ height=(int)480,\ framerate=(fraction)0/1,\ parsed=(boolean)true,\ alignment=(string)au,\ profile=(string)baseline,\ level=(string)3,\ codec_data=(buffer)0142001effe100136742001ea9501407b42000007d00001d4c008001000468ce3c80"
/GstPipeline:pipeline0/GstUDPSink:udpsink0.GstPad:sink: caps = "video/x-raw(memory:GLMemory),\ format=(string)NV12,\ width=(int)640,\ height=(int)480,\ interlace-mode=(string)progressive,\ pixel-aspect-ratio=(fraction)1/1,\ chroma-site=(string)jpeg,\ colorimetry=(string)bt601,\ framerate=(fraction)0/1,\ texture-target=(string)rectangle"
/GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0.GstGhostPad:src_0.GstProxyPad:proxypad2: caps = "video/x-raw(memory:GLMemory),\ format=(string)NV12,\ width=(int)640,\ height=(int)480,\ interlace-mode=(string)progressive,\ pixel-aspect-ratio=(fraction)1/1,\ chroma-site=(string)jpeg,\ colorimetry=(string)bt601,\ framerate=(fraction)0/1,\ texture-target=(string)rectangle"
/GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstQueue2:queue2-0: max-size-bytes = 1479060
Prerolled, waiting for buffering to finish...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Caught SIGSEGV
exec gdb failed: No such file or directory
Spinning. Please run 'gdb gst-launch-1.0 79952' to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core.
LLDB stack:
bt
* thread #1: tid = 0x391d13, 0x00007fff94ce1f72 libsystem_kernel.dylib`mach_msg_trap + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
* frame #0: 0x00007fff94ce1f72 libsystem_kernel.dylib`mach_msg_trap + 10
frame #1: 0x00007fff94ce13b3 libsystem_kernel.dylib`mach_msg + 55
frame #2: 0x00007fff986c21c4 CoreFoundation`__CFRunLoopServiceMachPort + 212
frame #3: 0x00007fff986c168c CoreFoundation`__CFRunLoopRun + 1356
frame #4: 0x00007fff986c0ed8 CoreFoundation`CFRunLoopRunSpecific + 296
frame #5: 0x00007fff8b1d6935 HIToolbox`RunCurrentEventLoopInMode + 235
frame #6: 0x00007fff8b1d676f HIToolbox`ReceiveNextEventCommon + 432
frame #7: 0x00007fff8b1d65af HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 71
frame #8: 0x00007fff97124df6 AppKit`_DPSNextEvent + 1067
frame #9: 0x00007fff97124226 AppKit`-[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
frame #10: 0x0000000106200161 libgstgl-1.0.0.dylib`gst_gl_display_cocoa_nsapp_iteration + 204
frame #11: 0x0000000101951c8e libglib-2.0.0.dylib`g_timeout_dispatch + 23
frame #12: 0x00000001019547ae libglib-2.0.0.dylib`g_main_context_dispatch + 276
frame #13: 0x0000000101954a98 libglib-2.0.0.dylib`g_main_context_iterate + 413
frame #14: 0x0000000101954cee libglib-2.0.0.dylib`g_main_loop_run + 207
frame #15: 0x00000001017a38ee libgstreamer-1.0.0.dylib`gst_bus_poll + 286
frame #16: 0x000000010178420a gst-launch-1.0`event_loop + 3271
frame #17: 0x0000000101782f96 gst-launch-1.0`main + 2010
frame #18: 0x00007fff98ab25ad libdyld.dylib`start + 1
frame #19: 0x00007fff98ab25ad libdyld.dylib`start + 1
Unfortunately, Ctrl+\ doesn't seem to coredump, so I can't attach more details atm.