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 734278 - gdbus connection does not close worker and stream
gdbus connection does not close worker and stream
Status: RESOLVED DUPLICATE of bug 734281
Product: glib
Classification: Platform
Component: gdbus
2.40.x
Other Linux
: Normal major
: ---
Assigned To: David Zeuthen (not reading bugmail)
gtkdev
Depends on:
Blocks:
 
 
Reported: 2014-08-05 12:20 UTC by Imran
Modified: 2014-08-11 12:43 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Imran 2014-08-05 12:20:23 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-11 12:43:49 UTC

*** This bug has been marked as a duplicate of bug 734281 ***