VNC client does not exits after logout

Bug #1735415 reported by Shin-myoung-serp
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Light Display Manager
Fix Released
High
Unassigned
lightdm (Ubuntu)
Fix Released
Medium
Robert Ancell
Trusty
New
Undecided
Unassigned
Xenial
New
Undecided
Unassigned
Zesty
New
Undecided
Unassigned
Artful
New
Undecided
Unassigned
Bionic
Fix Released
Medium
Robert Ancell

Bug Description

I have setup the remote desktop using the "[VNCServer]" configuration section.
When I log in using a VNC client and log out with the desktop panel menu,
the VNC client(remmina) does not exits.

I found that a VNC connection(TCP 5900) remains alive even though the Xvnc server exits.
I also found the cause, GSocket instance is leaking in the "src/vnc-server.c".

static gboolean
read_cb (GSocket *socket, GIOCondition condition, VNCServer *server)
{
    ...
    client_socket = g_socket_accept (socket, NULL, &error);
    ...
    if (client_socket)
    {
        ...
        g_signal_emit (server, signals[NEW_CONNECTION], 0, client_socket);
    }
    return TRUE;
}

I think that "g_object_unref(client_socket)" should be called after g_signal_emit().

Changed in lightdm:
status: New → Fix Committed
importance: Undecided → High
Revision history for this message
Robert Ancell (robert-ancell) wrote :
Will Cooke (willcooke)
Changed in lightdm (Ubuntu Bionic):
assignee: nobody → Robert Ancell (robert-ancell)
Revision history for this message
Robert Ancell (robert-ancell) wrote :

Was fixed in lightdm 1.25.1

Changed in lightdm:
status: Fix Committed → Fix Released
Changed in lightdm (Ubuntu Bionic):
importance: Undecided → Medium
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.