Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • D dbus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 262
    • Issues 262
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 32
    • Merge requests 32
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • dbusdbus
  • dbus
  • Issues
  • #144
Closed
Open
Issue created Feb 10, 2016 by Bugzilla Migration User@bugzilla-migration

dbus_connection_open not returning shared connections if the address does not include "guid"

Submitted by missa

Assigned to D-Bus Maintainers

Link to original bug (#94085)

Description

Created attachment 121657 dbus-test.c

It seems dbus_connection_open() is not returning shared connections. It is not clear if there is some miss configuration or some bug.

The issue can be seen easily. Every call to dbus_connection_open() returns a different pointer and refcount of 2 (1 for application and 1 for libdbus).

After some time the system is crashing because the connections are maxed out. There are dbus_connection_unref() calls but this doesn't free the shared connections and since we are getting a new connection every time, it is easy to max them out. We checked the resources usage and the number of FDs, sockets and memory increase with every call.

After some investigation, dbus_bus_get() seems to always return the same pointer with refcount incremented as expected. FDs, sockets, memory seem not impacted.

Attached is a simple program tested on x86 ubuntu that shows this behavior.

Attachment 121657, "dbus-test.c":
dbus-test.c

Version: 1.10

Assignee
Assign to
Time tracking