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 601772 - gst-rtsp-server crashing : bug fixed
gst-rtsp-server crashing : bug fixed
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal critical
: 0.10.26
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 595905 598426 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-11-13 08:03 UTC by sreerenj
Modified: 2010-08-20 16:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch for fix the crashing of gst-rtsp-server (788 bytes, patch)
2009-11-13 08:03 UTC, sreerenj
none Details | Review

Description sreerenj 2009-11-13 08:03:48 UTC
Created attachment 147638 [details] [review]
patch for fix the crashing of gst-rtsp-server 

The problem is that the rtsp-client may have no interest in the rtsp-response sometimes and exits early, so writing to that socket will cause a SIGPIPE and make my server crash.

bug fixing:

  change the write command to send command(gst-plugins-base/gst/rtsp/gstrtspconnection.c)

  add MSG_NOSIGNAL flag on send command
Comment 1 Wim Taymans 2009-11-13 10:19:39 UTC
commit f3b3dd33f3cfe9d53412a326884c3f2ce9363f68
Author: Sreerenj B <bsreerenj@gmail.com>
Date:   Fri Nov 13 11:16:44 2009 +0100

    rtsp: avoid crashing on SIGPIPE
    
    Use send() instead of write() so that we can pass the MSG_NOSIGNAL flags to
    avoid crashing with SIGPIPE when the remote end is not listening to us anymore.
    
    Fixes #601772
Comment 2 Tim-Philipp Müller 2010-05-28 11:22:45 UTC
*** Bug 595905 has been marked as a duplicate of this bug. ***
Comment 3 Wim Taymans 2010-08-20 16:41:16 UTC
*** Bug 598426 has been marked as a duplicate of this bug. ***