linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: bugzilla-daemon@bugzilla.kernel.org
To: linux-bluetooth@vger.kernel.org
Subject: [Bug 202345] New: bluetoothd can end up with a corrupted DBus object path
Date: Sat, 19 Jan 2019 12:33:18 +0000	[thread overview]
Message-ID: <bug-202345-62941@https.bugzilla.kernel.org/> (raw)

https://bugzilla.kernel.org/show_bug.cgi?id=202345

            Bug ID: 202345
           Summary: bluetoothd can end up with a corrupted DBus object
                    path
           Product: Drivers
           Version: 2.5
    Kernel Version: 4.9.130
          Hardware: All
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Bluetooth
          Assignee: linux-bluetooth@vger.kernel.org
          Reporter: kai.ruhnau@live.com
        Regression: No

Three times during the past few days, I was able to end up with a bluetoothd
daemon that reported a corrupted DBus object path (note the ']' character where
'_' should be)

# busctl tree org.bluez
Failed to introspect object /org/bluez/hci0/dev_4F_D1_9D_30]B7_8D of service
org.bluez: Invalid argument
└─/org
  └─/org/bluez
    └─/org/bluez/hci0
[…]


GetManagedObjects works fine and reports the correct path:
# busctl call org.bluez / org.freedesktop.DBus.ObjectManager GetManagedObjects
[…] "/org/bluez/hci0/dev_4F_D1_9D_30_B7_8D" 3
"org.freedesktop.DBus.Introspectable" 0 "org.bluez.Device1" 11 "Address" s
"4F:D1:9D:30:B7:8D" "AddressType" s "random" "Alias" s "4F-D1-9D-30-B7-8D"
"Paired" b false "Trusted" b false "Blocked" b false "LegacyPairing" b false
"Connected" b false "UUIDs" as 0 "Adapter" o "/org/bluez/hci0"
"ServicesResolved" b false "org.freedesktop.DBus.Properties" 0 […]

Querying a property doesn't work, though:
# busctl get-property org.bluez /org/bluez/hci0/dev_4F_D1_9D_30_B7_8D
org.bluez.Device1 Address
Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties"
doesn't exist

And that last behavior then crashes my application.

The most weird thing is that the object path corruption has been consistently
at the fifth underscore (between the fourth and fifth address byte), but with
different characters: a 'Y' (resulting in
'/org/bluez/hci0/dev_xx_xx_xx_xxYxx_xx') , a '^', and today the above ']'.

-- 
You are receiving this mail because:
You are the assignee for the bug.

                 reply	other threads:[~2019-01-19 12:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-202345-62941@https.bugzilla.kernel.org/ \
    --to=bugzilla-daemon@bugzilla.kernel.org \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).