double free or corruption
Tim Müller
tim at centricular.com
Sun Mar 29 07:03:00 PDT 2015
On Sun, 2015-03-29 at 02:08 +0530, Deepak Agasibagil wrote:
Hi,
You seem to be using an ancient version of GStreamer (0.10) which is not
maintained any longer. Have you considered upgrading to 1.x.
As for your problem, I would recommend running gst-launch-1.0 in
valgrind, it might show you the underlying problem.
There are also glibc environment variables you can set for additional
memory allocation checking, which might make the problem show up quicker
(and perhaps at the right spot).
Cheers
-Tim
>
> Hello,
>
>
> I am using gst-launch command to store and stream the video from 4
> cameras
> simultaneously. The command i used is as shown below, but the command
> exits
> after running for few minutes giving the double free or corruption.
> Please help me to know what was the cause for this error?
>
>
>
>
> Another question is that, what is the difference between using
> multiple
> src to sink pipelines in a single gst-launch command and in separate
> commands.
> i.e the below shown command can be separated into 4 different
> gst-launch
> commands(each with single v4l2 source linked to udpsink & filesink),
> but
> when i do this i get some errors related to encoder, if i use all 4
> src to
> sink pipelines in a single gst-launch command no errors were
> encountered.
>
>
>
>
> command :
>
>
>
>
> root at localhost:~# gst-launch-0.10 -e --gst-debug-level=2 \
> > \
> > v4l2src always-copy=FALSE device=/dev/video0 \
> > ! video/x-raw-yuv,format='(fourcc)'NV12,framerate=\(fraction
> \)30/1,width=720,height=576 \
> > ! textoverlay font-desc=\"Sans 24\" text="cam0" valign=top
> halign=left shaded-background=true \
> > ! clockoverlay halign=right valign=bottom shaded-background=true
> time-format="%Y/%m/%d %H:%M:%S" \
> > ! timeoverlay valign=top halign=right \
> > ! applite_venc ! queue ! h264parse ! tee name=streamtee0 ! queue !
> mpegtsmux ! filesink location=/mnt/CapVideos/FalseVid0.mpegts \
> > \
> > v4l2src always-copy=FALSE device=/dev/video1 \
> > ! video/x-raw-yuv,format='(fourcc)'NV12,framerate=\(fraction
> \)30/1,width=720,height=576 \
> > ! textoverlay font-desc=\"Sans 24\" text="cam1" valign=top
> halign=left shaded-background=true \
> > ! clockoverlay halign=right valign=bottom shaded-background=true
> time-format="%Y/%m/%d %H:%M:%S" \
> > ! timeoverlay valign=top halign=right \
> > ! applite_venc ! queue ! h264parse ! tee name=streamtee1 ! queue !
> mpegtsmux ! filesink location=/mnt/CapVideos/FalseVid1.mpegts \
> > \
> > v4l2src always-copy=FALSE device=/dev/video2 \
> > ! video/x-raw-yuv,format='(fourcc)'NV12,framerate=\(fraction
> \)30/1,width=720,height=576 \
> > ! textoverlay font-desc=\"Sans 24\" text="cam2" valign=top
> halign=left shaded-background=true \
> > ! clockoverlay halign=right valign=bottom shaded-background=true
> time-format="%Y/%m/%d %H:%M:%S" \
> > ! timeoverlay valign=top halign=right \
> > ! applite_venc ! queue ! h264parse ! tee name=streamtee2 ! queue !
> mpegtsmux ! filesink location=/mnt/CapVideos/FalseVid2.mpegts \
> > \
> > v4l2src always-copy=FALSE device=/dev/video3 \
> > ! video/x-raw-yuv,format='(fourcc)'NV12,framerate=\(fraction
> \)30/1,width=720,height=576 \
> > ! textoverlay font-desc=\"Sans 24\" text="cam3" valign=top
> halign=left shaded-background=true \
> > ! clockoverlay halign=right valign=bottom shaded-background=true
> time-format="%Y/%m/%d %H:%M:%S" \
> > ! timeoverlay valign=top halign=right \
> > ! applite_venc ! queue ! h264parse ! tee name=streamtee3 ! queue !
> mpegtsmux ! filesink location=/mnt/CapVideos/FalseVid3.mpegts \
> > streamtee0. ! queue ! rtph264pay ! queue ! udpsink
> host=192.168.100.100 port=5000 \
> > streamtee1. ! queue ! rtph264pay ! queue ! udpsink
> host=192.168.100.100 port=5010 \
> > streamtee2. ! queue ! rtph264pay ! queue ! udpsink
> host=192.168.100.100 port=5020 \
> > streamtee3. ! queue ! rtph264pay ! queue ! udpsink
> host=192.168.100.100 port=5030
> 0:00:00.423420006 2408 0x1d2e00 WARN multiudpsink
> gstmultiudpsink.c:1107:gst_multiudpsink_add_internal:<GstUDPSink at 0x1ea148> getaddrinfo lookup error?
> 0:00:00.423980806 2408 0x1d2e00 WARN multiudpsink
> gstmultiudpsink.c:1173:gst_multiudpsink_remove:<udpsink0> client at
> host localhost, port 4951 not found
> 0:00:00.428017713 2408 0x1d2e00 WARN multiudpsink
> gstmultiudpsink.c:1107:gst_multiudpsink_add_internal:<GstUDPSink at 0x1ea508> getaddrinfo lookup error?
> 0:00:00.428529526 2408 0x1d2e00 WARN multiudpsink
> gstmultiudpsink.c:1173:gst_multiudpsink_remove:<udpsink1> client at
> host localhost, port 4951 not found
> 0:00:00.432292539 2408 0x1d2e00 WARN multiudpsink
> gstmultiudpsink.c:1107:gst_multiudpsink_add_internal:<GstUDPSink at 0x1ea8c8> getaddrinfo lookup error?
> 0:00:00.432688406 2408 0x1d2e00 WARN multiudpsink
> gstmultiudpsink.c:1173:gst_multiudpsink_remove:<udpsink2> client at
> host localhost, port 4951 not found
> 0:00:00.436742300 2408 0x1d2e00 WARN multiudpsink
> gstmultiudpsink.c:1107:gst_multiudpsink_add_internal:<GstUDPSink at 0x1eac88> getaddrinfo lookup error?
> 0:00:00.437143393 2408 0x1d2e00 WARN multiudpsink
> gstmultiudpsink.c:1173:gst_multiudpsink_remove:<udpsink3> client at
> host localhost, port 4951 not found
> Setting pipeline to PAUSED ...
> Pipeline is live and does not need PREROLL ...
> Setting pipeline to PLAYING ...
> 0:00:01.027802120 2408 0x1d2e00 WARN bin
> gstbin.c:2399:gst_bin_do_latency_func:<pipeline0> failed to query
> latency
> New clock: GstSystemClock
> 0:00:02.181389627 2408 0x204320 WARN bin
> gstbin.c:2395:gst_bin_do_latency_func:<pipeline0> did not really
> configure latency of 0:00:00.033333333
> *** glibc detected *** gst-launch-0.10: double free or corruption (!
> prev): 0xb5b201f8 ***
> Aborted
>
>
>
>
>
>
> thank you.
>
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
--
Tim Müller, Centricular Ltd - http://www.centricular.com
More information about the gstreamer-devel
mailing list