Let gstreamer die instead of trying to launch gdb
Nicolas Dufresne
nicolas at ndufresne.ca
Sun Mar 26 13:06:06 UTC 2023
Hi James,
Le sam. 25 mars 2023, 23 h 15, James Linder via gstreamer-devel <
gstreamer-devel at lists.freedesktop.org> a écrit :
>
>
> > On 26 Mar 2023, at 12:18 am, Michael Gruner via gstreamer-devel <
> gstreamer-devel at lists.freedesktop.org> wrote:
> >
> > gst-launch has the -f or --no_fault option to avoid installing the GDB
> handler.
> >
> > I don’t know your use case, but in any case gst-launch is just a
> prototyping tool, not meant for creating products with it.
>
> Dear Michael
>
> gdb and core dump are one of the most useful tools there are
> eg
> 12 months after you released a product a customer says “It just disapeared
> …”
> core and gdb show exactly where not considering 29 Feb causes …
>
> likewise
>
> >> rather than try to launch gdb
>
> Because you are not interested if the fault is a bug in gst or if you’ve
> done something stupid.
>
Please show some respect, I do think the title is hilarious, but I can
understand not everyone have the same level of humour.
The gdb handler is a developer tool, but disabling is wanted when you use a
system core handler (like systemd-coredump).
Nicolas
> James
>
> >
> >> On 25 Mar 2023, at 07:05, Justas P via gstreamer-devel <
> gstreamer-devel at lists.freedesktop.org> wrote:
> >>
> >>
> >> I have a use-case for gstreamer, where sometimes it will SIGSEGV. How
> can I make the gstreamer process die, rather than try to launch gdb.
> >>
> >> The underlying issue is a noisy USB link to the camera being captured.
> >>
> >> Pipeline is live and does not need PREROLL ...
> >> Pipeline is PREROLLED ...
> >> Setting pipeline to PLAYING ...
> >> New clock: GstSystemClock
> >> ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
> Internal data stream error.
> >> Additional debug info:
> >> ../libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop ():
> /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
> >> streaming stopped, reason not-negotiated (-4)
> >> Execution ended after 0:00:00.001985760
> >> Setting pipeline to NULL ...
> >> Caught SIGSEGV
> >> exec gdb failed: No such file or directory
> >> Spinning. Please run 'gdb gst-launch-1.0 1586' to continue debugging,
> Ctrl-C to quit, or Ctrl-\ to dump core.
> >> ^C|^\Quit
> >>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20230326/3f1ddb2f/attachment.htm>
More information about the gstreamer-devel
mailing list