duzy/gst-switch

Seg fault

hyades opened this issue · 2 comments

I have gstreamer installed. I get this SEGV when I run it.

hyades@ubuntu:~/gst/stage/bin$ gdb gst-switch-srv 
GNU gdb (GDB) 7.5-ubuntu
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/hyades/gst/stage/bin/gst-switch-srv...(no debugging symbols found)...done.
(gdb) r
Starting program: /home/hyades/gst/stage/bin/gst-switch-srv 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
./tools/gstswitchserver.c:125:info: gst_switch_server init 0x8118850
./tools/gstswitchserver.c:1518:info: Compose sink to 3001, 3002
./tools/gstcomposite.c:88:info: gst_composite init 0x811b010
./tools/gstcomposite.c:155:warning: ignore changing mode in transition
[New Thread 0xb77f2b40 (LWP 24388)]
[New Thread 0xb6dffb40 (LWP 24389)]
[New Thread 0xb61ffb40 (LWP 24390)]
[New Thread 0xb59feb40 (LWP 24391)]
[New Thread 0xb51fdb40 (LWP 24392)]
[New Thread 0xb49fcb40 (LWP 24393)]
./tools/gstswitchcontroller.c:484:info: Controller is listening at: unix:abstract=gstswitch
./tools/gstswitchserver.c:707:info: Listening on localhost (127.0.0.1:3000)
[New Thread 0xb41fbb40 (LWP 24394)]
[New Thread 0xb39fab40 (LWP 24395)]
[New Thread 0xb31f9b40 (LWP 24396)]
[New Thread 0xb29f8b40 (LWP 24397)]
[New Thread 0xb21f7b40 (LWP 24398)]
[New Thread 0xb19f6b40 (LWP 24399)]
[New Thread 0xb11f5b40 (LWP 24400)]
[New Thread 0xb09f4b40 (LWP 24401)]
[New Thread 0xb01f3b40 (LWP 24402)]
[New Thread 0xaf9f2b40 (LWP 24403)]
[New Thread 0xaf1f1b40 (LWP 24404)]

(gst-switch-srv:24384): GStreamer-WARNING **: gstpad.c:3911:gst_pad_push_data:<gdppay0:src> Got data flow before stream-start event

(gst-switch-srv:24384): GStreamer-WARNING **: gstpad.c:3680:gst_pad_chain_data_unchecked:<sink:sink> Got data flow before stream-start event
[New Thread 0xae9f0b40 (LWP 24405)]
./tools/gstswitchserver.c:707:info: Listening on localhost (127.0.0.1:5000)
./tools/gstswitchserver.c:707:info: Listening on localhost (127.0.0.1:4000)
[New Thread 0xae1efb40 (LWP 24406)]
[New Thread 0xad9eeb40 (LWP 24407)]
online: composite @2370555914920

(gst-switch-srv:24384): GStreamer-WARNING **: gstpad.c:3911:gst_pad_push_data:<gdppay0:src> Got data flow before stream-start event

(gst-switch-srv:24384): GStreamer-WARNING **: gstpad.c:3680:gst_pad_chain_data_unchecked:<sink:sink> Got data flow before stream-start event

(gst-switch-srv:24384): GStreamer-WARNING **: gstpad.c:3911:gst_pad_push_data:<gdppay0:src> Got data flow before stream-start event

(gst-switch-srv:24384): GStreamer-WARNING **: gstpad.c:3680:gst_pad_chain_data_unchecked:<sink:sink> Got data flow before stream-start event

(gst-switch-srv:24384): GStreamer-WARNING **: gstpad.c:3911:gst_pad_push_data:<gdppay0:src> Got data flow before stream-start event

(gst-switch-srv:24384): GStreamer-WARNING **: gstpad.c:3680:gst_pad_chain_data_unchecked:<sink:sink> Got data flow before stream-start event

(gst-switch-srv:24384): GStreamer-WARNING **: gstpad.c:3911:gst_pad_push_data:<gdppay0:src> Got data flow before stream-start event

(gst-switch-srv:24384): GStreamer-WARNING **: gstpad.c:3680:gst_pad_chain_data_unchecked:<sink:sink> Got data flow before stream-start event
./tools/gstswitchcontroller.c:626:warning: set_compose_port: no connections

(gst-switch-srv:24384): GStreamer-WARNING **: gstpad.c:3911:gst_pad_push_data:<gdppay0:src> Got data flow before stream-start event

(gst-switch-srv:24384): GStreamer-WARNING **: gstpad.c:3680:gst_pad_chain_data_unchecked:<sink:sink> Got data flow before stream-start event

(gst-switch-srv:24384): GStreamer-WARNING **: gstpad.c:3911:gst_pad_push_data:<gdppay0:src> Got data flow before stream-start event

(gst-switch-srv:24384): GStreamer-WARNING **: gstpad.c:3680:gst_pad_chain_data_unchecked:<sink:sink> Got data flow before stream-start event
[New Thread 0xac460b40 (LWP 24408)]
[New Thread 0xabc5fb40 (LWP 24409)]
[New Thread 0xab45eb40 (LWP 24410)]

(gst-switch-srv:24384): GStreamer-WARNING **: gstpad.c:3911:gst_pad_push_data:<gdppay1:src> Got data flow before stream-start event

(gst-switch-srv:24384): GStreamer-WARNING **: gstpad.c:3680:gst_pad_chain_data_unchecked:<tcp_sink:sink> Got data flow before stream-start event

(gst-switch-srv:24384): GStreamer-WARNING **: gstpad.c:3911:gst_pad_push_data:<gdppay1:src> Got data flow before stream-start event

(gst-switch-srv:24384): GStreamer-WARNING **: gstpad.c:3680:gst_pad_chain_data_unchecked:<tcp_sink:sink> Got data flow before stream-start event

(gst-switch-srv:24384): GStreamer-WARNING **: gstpad.c:3911:gst_pad_push_data:<gdppay1:src> Got data flow before stream-start event

(gst-switch-srv:24384): GStreamer-WARNING **: gstpad.c:3680:gst_pad_chain_data_unchecked:<tcp_sink:sink> Got data flow before stream-start event

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb11f5b40 (LWP 24400)]
0xb7ef1864 in gst_buffer_unmap (buffer=0x89, info=info@entry=0xb11f49b4)
    at gstbuffer.c:1549
1549      g_return_if_fail (GST_IS_BUFFER (buffer));
(gdb) bt
#0  0xb7ef1864 in gst_buffer_unmap (buffer=0x89, info=info@entry=0xb11f49b4)
    at gstbuffer.c:1549
#1  0xb6535266 in gst_avi_mux_riff_get_avi_header (
    avimux=avimux@entry=0x8134180) at gstavimux.c:1314
#2  0xb65371f7 in gst_avi_mux_start_file (avimux=avimux@entry=0x8134180)
    at gstavimux.c:1754
#3  0xb65377b2 in gst_avi_mux_collect_pads (pads=0x8124110, avimux=0x8134180)
    at gstavimux.c:2184
#4  0xb78c691c in gst_collect_pads_check_collected (pads=pads@entry=0x8124110)
    at gstcollectpads.c:1297
#5  0xb78c8729 in gst_collect_pads_chain (pad=pad@entry=0x814d888, 
    parent=parent@entry=0x8134180, buffer=buffer@entry=0x81fa858)
    at gstcollectpads.c:2019
#6  0xb7f23a30 in gst_pad_chain_data_unchecked (data=0x81fa858, 
    type=3079439328, pad=0x814d888) at gstpad.c:3711
#7  gst_pad_push_data (pad=0x813f9c0, pad@entry=0x81fa858, type=3079439328, 
    type@entry=4112, data=0x81fa858) at gstpad.c:3941
#8  0xb7f2ad27 in gst_pad_push (pad=0x81fa858, buffer=0x81fa858)
    at gstpad.c:4044
#9  0xb6f681d9 in gst_audio_encoder_finish_frame (enc=enc@entry=0x81487e8, 
    buf=buf@entry=0x81fa858, samples=1024) at gstaudioencoder.c:855
#10 0xb6feda65 in gst_faac_handle_frame (enc=0x81487e8, in_buf=<optimized out>)
    at gstfaac.c:683
---Type <return> to continue, or q <return> to quit---

I have tried this on Ubuntu 12.10 and 13.04 fresh installations.

The steps to reproduce are:

  1. Clone the gstreamer, gst-plugins-base, gst-plugins-good, gst-plugins-ugly from gstreamer's git at freedesktop at ~/gst/. All these are in master branch
for module in gstreamer gst-plugins-base gst-plugins-good gst-plugins-ugly; do
   git clone git://anongit.freedesktop.org/git/gstreamer/$module ;
done
  1. I clone gst-plugins-bad and gst-switch from https://github.com/duzy/ into ~/gst/. I checkout gst-plugins-bad to speakertrack_new and gst-switch into speaker-tracking branch.
  2. I go into ~/gst/gst-switch and do ./scripts/stage.
  3. After the above step is over, I go into ~/gst/stage/bin/ and execute ./gst-switch-srv.
duzy commented

Try checking out these references:

gstreamer 6c11da18a58cbf970770f8697c803a2d4c0cbb74
gst-plugins-base a8df760c960bf22d997d0b13f93f15da99d9ce90
gst-plugins-good d14d4c436ce8d946997c927c61a4da9001cff936
gst-plugins-ugly 68985ba2abda2775675de97a5ca6cb2e3e4c4682

There might be revision mismatched. I can't find any clues from the "bt"
you listed, that seems from faac plugin.

On Thu, Aug 8, 2013 at 5:38 PM, Aayush Ahuja notifications@github.comwrote:

I have tried this on Ubuntu 12.10 and 13.04 fresh installations.

The steps to reproduce are:

  1. Clone the gstreamer, gst-plugins-base, gst-plugins-good,
    gst-plugins-ugly from gstreamer's git at freedesktop at ~/gst/. All these
    are in master branch

for module in gstreamer gst-plugins-base gst-plugins-good gst-plugins-ugly; do
git clone git://anongit.freedesktop.org/git/gstreamer/$module ;
done

  1. I clone gst-plugins-bad and gst-switch from https://github.com/duzy/into ~/gst/. I checkout gst-plugins-bad to speakertrack_new and gst-switch
    into speaker-tracking branch.
  2. I go into ~/gst/gst-switch and do ./scripts/stage.
  3. After the above step is over, I go into ~/gst/stage/bin/ and execute
    ./gst-switch-srv.


Reply to this email directly or view it on GitHubhttps://github.com//issues/34#issuecomment-22312746
.