[Bug 699518] Segfault inside either GStreamer or gst-plugins-base.

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu May 2 15:05:48 PDT 2013


https://bugzilla.gnome.org/show_bug.cgi?id=699518
  GStreamer | gstreamer (core) | git

--- Comment #3 from Stirling Westrup <swestrup at gmail.com> 2013-05-02 22:05:43 UTC ---
Okay, same thing, but under valgrind (I assumed you wanted memcheck)

==21322== Memcheck, a memory error detector
==21322== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==21322== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==21322== Command: gst-launch-1.0 -v videotestsrc pattern=black !
video/x-raw,width=(int)1920,height=(int)1080 ! clockoverlay valignment=top
halignment=left font-desc=Sans\ 8 time-format=%T\ %T\ %T\ %T\ %T\ %T\ %T\ %T\
%T\ %T\ %T\ %T\ %T\ %T\ %T\ %T\ %T\ %T\ %T\ %T\ %T\ %T\ %T ! videocrop
right=540 bottom=540 ! xvimagesink display=:2
==21322== 
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0.GstPad:src: caps =
video/x-raw, format=(string)I420, width=(int)1920, height=(int)1080,
framerate=(fraction)30/1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps =
video/x-raw, format=(string)I420, width=(int)1920, height=(int)1080,
framerate=(fraction)30/1
/GstPipeline:pipeline0/GstClockOverlay:clockoverlay0.GstPad:src: caps =
video/x-raw, format=(string)I420, width=(int)1920, height=(int)1080,
framerate=(fraction)30/1
/GstPipeline:pipeline0/GstVideoCrop:videocrop0.GstPad:src: caps = video/x-raw,
format=(string)I420, width=(int)1380, height=(int)540, framerate=(fraction)30/1
/GstPipeline:pipeline0/GstXvImageSink:xvimagesink0.GstPad:sink: caps =
video/x-raw, format=(string)I420, width=(int)1380, height=(int)540,
framerate=(fraction)30/1
/GstPipeline:pipeline0/GstVideoCrop:videocrop0.GstPad:sink: caps = video/x-raw,
format=(string)I420, width=(int)1920, height=(int)1080,
framerate=(fraction)30/1
/GstPipeline:pipeline0/GstClockOverlay:clockoverlay0.GstPad:video_sink: caps =
video/x-raw, format=(string)I420, width=(int)1920, height=(int)1080,
framerate=(fraction)30/1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps =
video/x-raw, format=(string)I420, width=(int)1920, height=(int)1080,
framerate=(fraction)30/1
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
==21322== Thread 3:
==21322== Invalid write of size 2
==21322==    at 0x4C29D74: memcpy (mc_replace_strmem.c:882)
==21322==    by 0xA062E08: gst_video_crop_transform_frame (gstvideocrop.c:368)
==21322==    by 0x7726BF3: gst_video_filter_transform (gstvideofilter.c:270)
==21322==    by 0x7984F49: gst_base_transform_handle_buffer
(gstbasetransform.c:2069)
==21322==    by 0x7985886: gst_base_transform_chain (gstbasetransform.c:2176)
==21322==    by 0x4E91209: gst_pad_chain_data_unchecked (gstpad.c:3673)
==21322==    by 0x4E9995A: gst_pad_push_data (gstpad.c:3890)
==21322==    by 0x7E35939: gst_base_text_overlay_push_frame
(gstbasetextoverlay.c:1703)
==21322==    by 0x7E372A7: gst_base_text_overlay_video_chain
(gstbasetextoverlay.c:2170)
==21322==    by 0x4E91209: gst_pad_chain_data_unchecked (gstpad.c:3673)
==21322==    by 0x4E9995A: gst_pad_push_data (gstpad.c:3890)
==21322==    by 0x79859B0: gst_base_transform_chain (gstbasetransform.c:2212)
==21322==  Address 0xe52029c is 604 bytes inside a block of size 327,680 free'd
==21322==    at 0x4C27BE0: realloc (vg_replace_malloc.c:662)
==21322==    by 0x84C58A7: ??? (in /usr/lib64/libcairo.so.2.10800.8)
==21322==    by 0x84A27C4: ??? (in /usr/lib64/libcairo.so.2.10800.8)
==21322==    by 0x84A31B1: ??? (in /usr/lib64/libcairo.so.2.10800.8)
==21322==    by 0x84BAB77: ??? (in /usr/lib64/libcairo.so.2.10800.8)
==21322==    by 0x84B70D3: ??? (in /usr/lib64/libcairo.so.2.10800.8)
==21322==    by 0x84B3D33: ??? (in /usr/lib64/libcairo.so.2.10800.8)
==21322==    by 0x84B5979: ??? (in /usr/lib64/libcairo.so.2.10800.8)
==21322==    by 0x84C4B9F: ??? (in /usr/lib64/libcairo.so.2.10800.8)
==21322==    by 0x84C1310: ??? (in /usr/lib64/libcairo.so.2.10800.8)
==21322==    by 0x84AA486: ??? (in /usr/lib64/libcairo.so.2.10800.8)
==21322==    by 0x84A494F: cairo_stroke_preserve (in
/usr/lib64/libcairo.so.2.10800.8)
==21322== 

valgrind: m_mallocfree.c:1889 (vgPlain_arena_free): Assertion '(Block*)sb_start
== b' failed.
==21322==    at 0x38031DA7: report_and_quit (m_libcassert.c:235)
==21322==    by 0x38031FE0: vgPlain_assert_fail (m_libcassert.c:309)
==21322==    by 0x3803EA65: vgPlain_arena_free (m_mallocfree.c:1889)
==21322==    by 0x38003667: create_MC_Chunk (mc_malloc_wrappers.c:165)
==21322==    by 0x38003BE0: vgMemCheck_new_block (mc_malloc_wrappers.c:283)
==21322==    by 0x3800409A: vgMemCheck_malloc (mc_malloc_wrappers.c:301)
==21322==    by 0x3807A58A: vgPlain_scheduler (scheduler.c:1665)
==21322==    by 0x380A5A19: run_a_thread_NORETURN (syswrap-linux.c:103)
==21322==    by 0x380A5CAA: vgModuleLocal_start_thread_NORETURN
(syswrap-linux.c:304)
==21322==    by 0x380A8AFD: ??? (in /usr/lib64/valgrind/memcheck-amd64-linux)
==21322==    by 0xDEADBEEFDEADBEEE: ???
==21322==    by 0xDEADBEEFDEADBEEE: ???
==21322==    by 0xDEADBEEFDEADBEEE: ???

sched status:
  running_tid=3

Thread 1: status = VgTs_WaitSys
==21322==    at 0x6227253: poll (poll.c:87)
==21322==    by 0x5848D7C: ??? (in /usr/lib64/libglib-2.0.so.0.3200.1)
==21322==    by 0x5849074: g_main_loop_run (in
/usr/lib64/libglib-2.0.so.0.3200.1)
==21322==    by 0x4E69584: gst_bus_poll (gstbus.c:1082)
==21322==    by 0x4035A6: event_loop (gst-launch.c:519)
==21322==    by 0x404C7F: main (gst-launch.c:1105)

Thread 2: status = VgTs_WaitSys
==21322==    at 0x5F39D2D: ??? (syscall-template.S:82)
==21322==    by 0x586C0B7: g_usleep (in /usr/lib64/libglib-2.0.so.0.3200.1)
==21322==    by 0xA26E6FE: gst_xvimagesink_event_thread (xvimagesink.c:582)
==21322==    by 0x586A8A4: ??? (in /usr/lib64/libglib-2.0.so.0.3200.1)
==21322==    by 0x5F32850: start_thread (pthread_create.c:301)
==21322==    by 0xBAFB6FF: ???

Thread 3: status = VgTs_Runnable
==21322==    at 0x4C279EE: malloc (vg_replace_malloc.c:270)
==21322==    by 0x84A2E10: ??? (in /usr/lib64/libcairo.so.2.10800.8)
==21322==    by 0x84BAB77: ??? (in /usr/lib64/libcairo.so.2.10800.8)
==21322==    by 0x84B70D3: ??? (in /usr/lib64/libcairo.so.2.10800.8)
==21322==    by 0x84B3D33: ??? (in /usr/lib64/libcairo.so.2.10800.8)
==21322==    by 0x84B5979: ??? (in /usr/lib64/libcairo.so.2.10800.8)
==21322==    by 0x84C4B9F: ??? (in /usr/lib64/libcairo.so.2.10800.8)
==21322==    by 0x84C1310: ??? (in /usr/lib64/libcairo.so.2.10800.8)
==21322==    by 0x84AA486: ??? (in /usr/lib64/libcairo.so.2.10800.8)
==21322==    by 0x84A494F: cairo_stroke_preserve (in
/usr/lib64/libcairo.so.2.10800.8)
==21322==    by 0x84A4968: cairo_stroke (in /usr/lib64/libcairo.so.2.10800.8)
==21322==    by 0x7E35514: gst_base_text_overlay_render_text
(gstbasetextoverlay.c:1371)
==21322==    by 0x7E3729C: gst_base_text_overlay_video_chain
(gstbasetextoverlay.c:2169)
==21322==    by 0x4E91209: gst_pad_chain_data_unchecked (gstpad.c:3673)
==21322==    by 0x4E9995A: gst_pad_push_data (gstpad.c:3890)
==21322==    by 0x79859B0: gst_base_transform_chain (gstbasetransform.c:2212)
==21322==    by 0x4E91209: gst_pad_chain_data_unchecked (gstpad.c:3673)
==21322==    by 0x4E9995A: gst_pad_push_data (gstpad.c:3890)
==21322==    by 0x797E8BF: gst_base_src_loop (gstbasesrc.c:2728)
==21322==    by 0x4EC08A6: gst_task_func (gsttask.c:316)
==21322==    by 0x586B678: ??? (in /usr/lib64/libglib-2.0.so.0.3200.1)
==21322==    by 0x586A8A4: ??? (in /usr/lib64/libglib-2.0.so.0.3200.1)
==21322==    by 0x5F32850: start_thread (pthread_create.c:301)
==21322==    by 0xC4FC6FF: ???

Thread 4: status = VgTs_WaitSys
==21322==    at 0x6227253: poll (poll.c:87)
==21322==    by 0x5848D7C: ??? (in /usr/lib64/libglib-2.0.so.0.3200.1)
==21322==    by 0x5848E46: g_main_context_iteration (in
/usr/lib64/libglib-2.0.so.0.3200.1)
==21322==    by 0x5848EA8: ??? (in /usr/lib64/libglib-2.0.so.0.3200.1)
==21322==    by 0x586A8A4: ??? (in /usr/lib64/libglib-2.0.so.0.3200.1)
==21322==    by 0x5F32850: start_thread (pthread_create.c:301)
==21322==    by 0xCEFD6FF: ???


Note: see also the FAQ in the source distribution.
It contains workarounds to several common problems.
In particular, if Valgrind aborted or crashed after
identifying problems in your program, there's a good chance
that fixing those problems will prevent Valgrind aborting or
crashing, especially if it happened in m_mallocfree.c.

If that doesn't help, please report this bug to: www.valgrind.org

In the bug report, send all the above text, the valgrind
version, and what OS and version you are using.  Thanks.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list