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 734281 - gdbus connection does not close stream object
gdbus connection does not close stream object
Status: RESOLVED OBSOLETE
Product: glib
Classification: Platform
Component: gdbus
2.40.x
Other Linux
: Normal major
: ---
Assigned To: David Zeuthen (not reading bugmail)
gtkdev
: 734278 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2014-08-05 12:35 UTC by Imran
Modified: 2018-05-24 16:52 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Imran 2014-08-05 12:35:34 UTC
Steps to reproduce..

1- Start server
   gio/tests/.libs/gdbus-example-peer --server --address unix:abstract=/tmp/peer/myaddr

2- Check the open fds for server process
   lsof -a -p 8253
..................
gdbus-exa 8253 imran    0u   CHR      136,1      0t0        4 /dev/pts/1
gdbus-exa 8253 imran    1u   CHR      136,1      0t0        4 /dev/pts/1
gdbus-exa 8253 imran    2u   CHR      136,1      0t0        4 /dev/pts/1
gdbus-exa 8253 imran    3u  0000        0,9        0     6602 anon_inode
gdbus-exa 8253 imran    4u  unix 0xf1005680      0t0   966830 @/tmp/peer/myaddr

3- Run the client 
   gio/tests/.libs/gdbus-example-peer --address unix:abstract=/tmp/peer/myaddr

4- Check the open fds for server process again
   lsof -a -p 8253
..................
gdbus-exa 8253 imran    0u   CHR      136,1      0t0        4 /dev/pts/1
gdbus-exa 8253 imran    1u   CHR      136,1      0t0        4 /dev/pts/1
gdbus-exa 8253 imran    2u   CHR      136,1      0t0        4 /dev/pts/1
gdbus-exa 8253 imran    3u  0000        0,9        0     6602 anon_inode
gdbus-exa 8253 imran    4u  unix 0xf1005680      0t0   966830 @/tmp/peer/myaddr
gdbus-exa 8253 imran    5u  unix 0xf1004280      0t0   965811 @/tmp/peer/myaddr
gdbus-exa 8253 imran    6u  0000        0,9        0     6602 anon_inode

5- Please note the fd '5u' which is created when client makes connection but even when the client goes down, the descriptor is still there..

Distro and Library version
==========================
- DISTRIB_ID=Ubuntu
  DISTRIB_RELEASE=14.04
  DISTRIB_CODENAME=trusty
  DISTRIB_DESCRIPTION="Ubuntu 14.04 LTS"
- Library version: libglib2.0-0: 2.40.0-2

Reproducible
============
- Always

Analysis
========
I have done some investigations and it seems that its related to GDbusWorker object which never gets disposed off. GDbusConnection object seems to be disposed off. It can be related to timings/race issue as when I add some logs the problem is not reproducible anymore.
Comment 1 Imran 2014-08-05 12:37:46 UTC
minor changes to description..

4- Check the open fds for server process again (once the client is terminated)
   lsof -a -p 8253
...............
Comment 2 Imran 2014-08-11 12:43:49 UTC
*** Bug 734278 has been marked as a duplicate of this bug. ***
Comment 3 GNOME Infrastructure Team 2018-05-24 16:52:26 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/909.