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 753616 - rtspconnection: criticals when two clients use same x-sessioncookie
rtspconnection: criticals when two clients use same x-sessioncookie
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
unspecified
Other Linux
: Normal minor
: 1.15.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-08-14 11:08 UTC by Göran Jönsson
Modified: 2018-03-21 21:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gst-rtsp-server patch (3.71 KB, patch)
2018-02-19 08:51 UTC, Göran Jönsson
committed Details | Review

Description Göran Jönsson 2015-08-14 11:08:40 UTC
We have a software that starting several clients but have bad random generation so sometimes there are the same x-sessioncookie in two GET requests this causes a CRITICAL. 


CRITICAL **: gst_rtsp_connection_do_tunnel: assertion ‘(ts1 == TUNNEL_STATE_GET && ts2 == TUNNEL_STATE_POST) || (ts1 == TUNNEL_STATE_POST && ts2 == TUNNEL_STATE_GET)’ failed

As I understands it CRITICALS are for programming errors only, not for handling bad behavior from client.
Comment 1 Tim-Philipp Müller 2015-08-15 09:10:50 UTC
Since you know what causes it, could you make a small unit test that demonstrates the issue?
Comment 2 Tim-Philipp Müller 2016-01-08 18:42:04 UTC
Do you plan on working on this an making a patch and/or unit test?
Comment 3 Göran Jönsson 2016-01-11 05:54:11 UTC
This is far down in our priority list so in practice we can say that we don't plan to do this. If you want to close it please do that. We can create a new ticket if we actually come so far down in the list.

The background for this ticket was that I was recommended to add a ticket on this 
when I discussed the issue on #gstreamer chat.
Comment 4 Göran Jönsson 2018-02-19 08:51:30 UTC
Created attachment 368543 [details] [review]
gst-rtsp-server patch
Comment 5 Göran Jönsson 2018-03-01 10:02:17 UTC
Any news about this one.
Comment 6 Sebastian Dröge (slomo) 2018-03-01 16:19:56 UTC
Comment on attachment 368543 [details] [review]
gst-rtsp-server patch

Looks good to me in principle, but maybe the lock should be taken all around handle_tunnel() instead of unlocking before handle_tunnel() and locking again inside again?
Comment 7 Göran Jönsson 2018-03-02 06:26:49 UTC
Please elaborate. I do not understand.
 
As I see it handle_tunnel is not locking clients priv->lock . It locks tunnels_lock and clients priv->watch_lock
Comment 8 Göran Jönsson 2018-03-09 05:33:31 UTC
Any news about this one ?
Comment 9 Göran Jönsson 2018-03-14 05:35:19 UTC
Any news about this one ?
Comment 10 Sebastian Dröge (slomo) 2018-03-14 09:34:31 UTC
Comment on attachment 368543 [details] [review]
gst-rtsp-server patch

Should be good to go after 1.14
Comment 11 Nicolas Dufresne (ndufresne) 2018-03-21 21:39:44 UTC
commit 3a129300f0e6e7d0336c2d2c315a2b36e052eaf1 (HEAD -> master)
Author: Göran Jönsson <goranjn@axis.com>
Date:   Thu Feb 15 13:26:16 2018 +0100

    rtsp-client:Error handling when equal http session cookie
    
    There are some clients that are sending same session cookie on random
    basis.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=753616
Comment 12 Nicolas Dufresne (ndufresne) 2018-03-21 21:40:21 UTC
Candiate for 1.14 ?