Segfault while loading custom plugin.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Segfault while loading custom plugin.

abhi d
I have written a simple sink plugin by changing the gst-template plugin to derive from GstBaseSink. Also I have commented all operations related to the source pad of the gst-template plugin. However when I execute gst-inspect on this plugin I get a segmentation fault with the below error.

ERROR: Caught a segmentation fault while loading plugin file:
/home/zap/gstreamer/gst-template/gst-splicesink/output/lib/gstreamer-0.10/libgstsplicesink.so

Please either:
- remove it and restart.
- run with --gst-disable-segtrap and debug.

ERROR: Caught a segmentation fault while loading plugin file:
/home/zap/gstreamer/gst-template/gst-splicesink/output/lib/gstreamer-0.10/libgstsplicesink.so

Please either:
- remove it and restart.
- run with --gst-disable-segtrap and debug.
No such element or plugin 'splicesink'

I wanted to debug this using gdb but the option --gst-disable-segtrap does not stop gstreamer from catching the segfault. 
I am new to using gstreamer, Can someone please tell me if there is some way I can stop gstreamer from catching the signal ?
I am using gstreamer version 0.10.30

Thanks
zap


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Segfault while loading custom plugin.

Stefan Sauer
On 08/04/11 13:19, abhi d wrote:
I have written a simple sink plugin by changing the gst-template plugin to derive from GstBaseSink. Also I have commented all operations related to the source pad of the gst-template plugin. However when I execute gst-inspect on this plugin I get a segmentation fault with the below error.

ERROR: Caught a segmentation fault while loading plugin file:
/home/zap/gstreamer/gst-template/gst-splicesink/output/lib/gstreamer-0.10/libgstsplicesink.so

Please either:
- remove it and restart.
- run with --gst-disable-segtrap and debug.

ERROR: Caught a segmentation fault while loading plugin file:
/home/zap/gstreamer/gst-template/gst-splicesink/output/lib/gstreamer-0.10/libgstsplicesink.so

Please either:
- remove it and restart.
- run with --gst-disable-segtrap and debug.
No such element or plugin 'splicesink'

I wanted to debug this using gdb but the option --gst-disable-segtrap does not stop gstreamer from catching the segfault.
please show use the whole command line you are using.

Stefan

I am new to using gstreamer, Can someone please tell me if there is some way I can stop gstreamer from catching the signal ?
I am using gstreamer version 0.10.30

Thanks
zap

_______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel