Videotestsrc, input-selector and Segfaults.

Eric M bigmarkslp at gmail.com
Sat Sep 16 12:39:13 UTC 2017


I uploaded the test program with make file and full dump of the output at
debug level 9 and a gdb backtrace here.

https://github.com/Swap-File/gstcrashtest/
(see below for just the backtrace so you don't need to download a 10MB text
file)

After some more poking around, I found that the segfault only occurs if I
link -lwiringPi, a Pi specific library for dealing with I/O.  I suppose I
should really be poking around in wiringpi to find the problem, or take the
easier way out and just separate anything that uses wiringpi into a separate
program. Note:  I don't actually use wiringpi in the test program, I just
link to it, but my full application would ideally use it.

-Eric


#0  0x769b8540 in ?? ()
#1  0x76984acc in video_orc_pack_I420 (d1=0x74e47000 "", d1 at entry=0x74e08c50
'\020' <repeats 200 times>...,
    d2=d2 at entry=0x74e1b850 '\200' <repeats 160 times>, "RGV, V144
L_4,04YEG,B_AE12 B_4,00,(,3hi "..., d3=d3 at entry=0x74e20350 "",
    s1=s1 at entry=0x74e05b90
"\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200\377\020\200\200"...,
n=n at entry=160) at tmp-orc.c:1266
#2  0x769488bc in pack_planar_420 (info=<optimized out>, flags=<optimized
out>, src=0x74e05b90, sstride=<optimized out>, data=0x74cfea64,
stride=0x74cfea34, chroma_site=GST_VIDEO_CHROMA_SITE_NONE,
    y=0, width=320) at video-format.c:130
#3  0x769cd448 in convert_hline_generic (p=<optimized out>,
frame=0x74cfe9e4, y=1989868348) at videotestsrc.c:1199
#4  0x769cd138 in videotestsrc_convert_tmpline (p=p at entry=0x74cfe8d8,
frame=frame at entry=0x74cfe9e4, j=j at entry=1) at videotestsrc.c:275
#5  0x769cd954 in gst_video_test_src_unicolor (v=<optimized out>,
frame=0x74cfe9e4, color_index=<optimized out>) at videotestsrc.c:550
#6  0x769ca728 in gst_video_test_src_fill (psrc=<optimized out>,
buffer=0x74e25048) at gstvideotestsrc.c:1022
#7  0x768f36c4 in gst_base_src_default_create (src=0x1960a0,
offset=<optimized out>, size=4096, buffer=0x74cfeca4) at gstbasesrc.c:1486
#8  0x768f6c98 in gst_base_src_get_range (src=src at entry=0x1960a0,
offset=8572410113815957408, length=<optimized out>, length at entry=4096,
buf=0x74cfed58, buf at entry=0x74cfed50) at gstbasesrc.c:2464
#9  0x768f8e2c in gst_base_src_loop (pad=0x198020) at gstbasesrc.c:2740
#10 0x76f37a3c in gst_task_func (task=0x1cf178) at gsttask.c:334
#11 0x76d98324 in ?? () from /lib/arm-linux-gnueabihf/libglib-2.0.so.0
Backtrace stopped: previous frame identical to this frame (corrupt stack?)





--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list