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 428611 - [ximagesrc] segfaults when used from a non-X terminal
[ximagesrc] segfaults when used from a non-X terminal
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
0.10.x
Other All
: Normal critical
: 0.10.6
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-04-11 13:14 UTC by follower
Modified: 2007-04-11 17:53 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description follower 2007-04-11 13:14:42 UTC
Steps to reproduce:
1. Switch to a non-X terminal (e.g. ctrl-alt-f1)
2. Execute: gst-launch-0.10 ximagesrc ! fakesink
3. A segfault occurs

Note: This is on an OLPC build 385 (on machine) and build 303 (in Qemu).

Running the above command in the Sugar developer console does not segfault. 

Stack trace:
  • #0 gst_object_default_deep_notify
    from /usr/lib/gstreamer-0.10/libgstximagesrc.so
  • #1 gst_object_default_deep_notify
    from /usr/lib/gstreamer-0.10/libgstximagesrc.so
  • #2 gst_base_src_get_type
    from /usr/lib/libgstbase-0.10.so.0
  • #3 gst_pad_get_element_private
    from /usr/lib/libgstreamer-0.10.so.0
  • #4 gst_pad_link
    from /usr/lib/libgstreamer-0.10.so.0
  • #5 gst_element_unlink_pads
    from /usr/lib/libgstreamer-0.10.so.0
  • #6 gst_element_link_pads
    from /usr/lib/libgstreamer-0.10.so.0
  • #7 gst_element_link_pads_filtered
    from /usr/lib/libgstreamer-0.10.so.0
  • #8 _gst_parse_launch
    from /usr/lib/libgstreamer-0.10.so.0
  • #9 gst_parse_launch
    from /usr/lib/libgstreamer-0.10.so.0
  • #10 gst_parse_launchv
    from /usr/lib/libgstreamer-0.10.so.0
  • #11 gst_object_default_deep_notify
  • #12 __libc_start_main
    from /lib/libc.so.6
  • #13 gst_object_default_deep_notify


Other information:
Comment 1 Tim-Philipp Müller 2007-04-11 17:53:38 UTC
I think this has already been fixed in gst-plugins-good CVS by this commit:

 2007-03-01  Zaheer Abbas Merali  <zaheerabbas at merali dot org>

        * sys/ximage/gstximagesrc.c: (gst_ximage_src_open_display):
        Error out correctly when getting xcontext fails.

Changeset:
http://webcvs.freedesktop.org/gstreamer/gst-plugins-good/sys/ximage/gstximagesrc.c?r1=1.20&r2=1.21

Please re-open if you still have this issues with the patch applied.