BlueZ-5.36 segfault

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,
          I am getting a segfault within BlueZ-5.36.

[ 8816.157843] bluetoothd[9264]: segfault at 2000000064 ip 00007fb2da31d216 sp 00007ffc65426b48 error 4 in libc-2.19.so[7fb2da1dd000+1bb000].

"deviceinfo_init" seems to be the cause of the problem. As 'external' flag is set for "deviceinfo_profile", one of the entry in

GSList ext_profiles

will be of type 'struct btd_profile'.

Unfortunately later when "src/profile.c:register_profile" calls "find_ext_profile", g_strcmp0 tries to access "ext->owner" which does not exist for "deviceinfo" entry.

	The problem was gone by removing external flag.

--- a/profiles/deviceinfo/deviceinfo.c
+++ b/profiles/deviceinfo/deviceinfo.c
@@ -142,7 +142,6 @@ static int deviceinfo_driver_accept(struct btd_service *service)
 static struct btd_profile deviceinfo_profile = {
        .name           = "deviceinfo",
        .remote_uuid    = DEVICE_INFORMATION_UUID,
-       .external       = true,
        .device_probe   = deviceinfo_driver_probe,
        .device_remove  = deviceinfo_driver_remove,
        .accept         = deviceinfo_driver_accept,

Many Thanks,
Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux