After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 560155 - segfault when trying to set tag to NULL with avimux
segfault when trying to set tag to NULL with avimux
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
0.10.9
Other All
: Normal critical
: 0.10.14
Assigned To: Stefan Sauer (gstreamer, gtkdoc dev)
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-11-10 14:57 UTC by Kari Kallioinen
Modified: 2009-01-23 08:45 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
example code which crashes (2.53 KB, text/x-csrc)
2008-11-11 08:20 UTC, Kari Kallioinen
Details

Description Kari Kallioinen 2008-11-10 14:57:41 UTC
Steps to reproduce:
1. create pipeline with avidemux and avimux
2. use GstTagSetter interface to set tag empty (NULL)
3. 


Stack trace:
This GDB was configured as "i686-pc-linux-gnu"...
(gdb) run
Starting program: /home/karika/tagfilter-avi 
[New LWP 1712]

Program received signal SIGSEGV, Segmentation fault.
[Switching to LWP 1712]
0xb7d1e1d3 in strlen () from /lib/libc.so.6
(gdb) where
  • #0 strlen
    from /lib/libc.so.6
  • #1 ??
    from /usr/lib/gstreamer-0.10/libgstavi.so
  • #2 ??


Other information:
Comment 1 Kari Kallioinen 2008-11-11 08:20:56 UTC
Created attachment 122394 [details]
example code which crashes

crashing example code
Comment 2 Stefan Sauer (gstreamer, gtkdoc dev) 2008-11-11 09:30:33 UTC
The example needs a change. It should listen to tag messages on the bus, filter the list and use GST_TAG_MERGE_REPLACE_ALL.

I filed a enhancement bug #560302 to have a GST_TAG_MERGE_REMOVE.

Looking at avimux now.
Comment 3 Stefan Sauer (gstreamer, gtkdoc dev) 2008-11-11 10:06:47 UTC
2008-11-11  Stefan Kost  <ensonic@users.sf.net>

	* gst/avi/gstavimux.c:
	  Don't segfault on string typed tags being NULL. Fixes #560155.