Bluetooth and buffer overflow issues

Steve stevewilliams at internode.on.net
Tue Oct 29 13:40:59 PDT 2019


Bluetooth and buffer overflow issues

Fedora 30 all latest updates applied (could try and update to 31 to see
if it makes any difference but I doubt it)

Tried re-scanning and re-pairing with no change.

Heinrichs Weikamp OSTC3+ firmware 3.05 and just updated to 3.07 with no
difference

Both Shearwater Petrel 2 and Nerd 2 Bluetooth both download ok with my
self built latest master.



latest Appimage:Import > Import from dive computerNot available
The local Bluetooth adaptor cannot be accessed.
from terminal ./Subsurface.AppImage -vvCannot find a running Bluez.
Please check the Bluez installation.

4.9.3 offical appimage could also not find the bluetooth radio but I
thought that had been fixed in more recent builds so is this a
regression?Maybe I am mistaken and it has only been my own builds that
work?


Self built latest master:

Import > Import from dive computerPick Heinrichs Weikamp in the dive
vendor drop downPick OSTC3 in the dive computer drop downChoose
Bluetooth download mode check box
Force LE > Scan
Pick the OSTC3 showing: [State: PAIRED] > Click Save > Click Download
Popup window:ErrorUnable to open LE:00:80:25:49:D6:DF Heinrichs Weikamp
(OSTC 3)
Red bar down the bottom of main window:Unsupported opperation

from terminal:
[steve at t490 build]$ ./subsurface -vvWarning: Ignoring
XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run
on Wayland anyway.Subsurface v4.9.3-239-gfd9e1d6a8aac,built with
libdivecomputer v0.7.0-devel-Subsurface-NG
(1bbd386959a2167138a5e3a1a40dff26b83fef04)built with Qt Version 5.12.5,
runtime from Qt Version 5.12.5built with libgit2 0.26.0
/SNIP uneeded info
Unable to match trip 'time.trip.�VU' (12:08:42)Bluez 5 detected.Missing
CAP_NET_ADMIN permission. Cannot determine whether a found address is
of random or public type.Creating
QtBluezDiscoveryManagerDiscovered:  "00:13:43:0D:DB:D4" "Petrel" Num
UUIDs 1 total device 0 cached RSSI 0 Class 526084 Num ManufacturerData
0Discovered:  "00:80:25:49:D6:DF" "OSTC3#04491" Num UUIDs 7 total
device 1 cached RSSI 0 Class 7936 Num ManufacturerData
0Discovered:  "18:03:23:32:16:E7" "T energy" Num UUIDs 4 total device 2
cached RSSI 0 Class 2360324 Num ManufacturerData
0Discovered:  "D4:AE:05:97:A7:78" "Galaxy S8+" Num UUIDs 17 total
device 4 cached RSSI 0 Class 5898764 Num ManufacturerData
0Discovered:  "E2:08:A1:05:5D:41" "NERD 2" Num UUIDs 3 total device 5
cached RSSI 0 Class 0 Num ManufacturerData 0

Closed dialog box and closed Subsurface, removed device from OS
Bluetooth settings then try again with non LE Bluetooth
Import > Import from dive computerPick Heinrichs Weikamp in the dive
vendor drop downPick OSTC3 in the dive computer drop downChoose
Bluetooth download mode check box
Force Classical > Scan
Pick the OSTC3 showing: [State: UNPAIRED] > Right Click Pair > Click
Save > Click Download

Popup window:ErrorUnable to open 00:80:25:49:D6:DF Heinrichs Weikamp
(OSTC 3)
Red bar down the bottom of main window:Unsupported opperation

from terminal:
Unable to match trip 'time.trip.�3G' (12:08:42)Bluez 5 detected.Missing
CAP_NET_ADMIN permission. Cannot determine whether a found address is
of random or public type.Creating
QtBluezDiscoveryManagerDiscovered:  "00:13:43:0D:DB:D4" "Petrel" Num
UUIDs 1 total device 0 cached RSSI 0 Class 526084 Num ManufacturerData
0Discovered:  "00:80:25:49:D6:DF" "OSTC3#04491" Num UUIDs 5 total
device 1 cached RSSI 0 Class 7936 Num ManufacturerData
1Discovered:  "18:03:23:32:16:E7" "T energy" Num UUIDs 4 total device 2
cached RSSI 0 Class 2360324 Num ManufacturerData
0Discovered:  "D4:AE:05:97:A7:78" "Galaxy S8+" Num UUIDs 17 total
device 5 cached RSSI 0 Class 5898764 Num ManufacturerData
0Discovered:  "E2:08:A1:05:5D:41" "NERD 2" Num UUIDs 3 total device 6
cached RSSI 0 Class 0 Num ManufacturerData 0Updating RSSI for
"00:80:25:49:D6:DF" QVariant(short, -87)Initiating direct pair to
"00:80:25:49:D6:DF"Sending pairing request to "00:80:25:49:D6:DF"void
QBluetoothDeviceDiscoveryAgentPrivate::stop()




Closed dialog box and closed Subsurface, removed device from OS
Bluetooth settings then try again with non LE Bluetooth
Try again choosing OSTC Plus (instead of OSTC3 as I have seen it
discovered as that in the XML file devices?
Import > Import from dive computerPick Heinrichs Weikamp in the dive
vendor drop downPick OSTC Plus in the dive computer drop downChoose
Bluetooth download mode check box
Force LE > Scan
Pick the OSTC3 showing: [State: UNPAIRED] > Right Click Pair > Click
Save > Click Download
Seeing the below messages down the bottom of the dialog box:Connecting
to BLE device LE:00:80:25:49:D6:DF
Popup window:ErrorUnable to open LE:00:80:25:49:D6:DF Heinrichs Weikamp
(OSTC 3)
Red bar down the bottom of main window:Unsupported opperation

from terminal:
Discovered:  "00:13:43:0D:DB:D4" "Petrel" Num UUIDs 1 total device 0
cached RSSI 0 Class 526084 Num ManufacturerData
0Discovered:  "00:80:25:49:D6:DF" "OSTC3#04491" Num UUIDs 7 total
device 1 cached RSSI 0 Class 7936 Num ManufacturerData
1Discovered:  "18:03:23:32:16:E7" "T energy" Num UUIDs 4 total device 2
cached RSSI 0 Class 2360324 Num ManufacturerData
0Discovered:  "D4:AE:05:97:A7:78" "Galaxy S8+" Num UUIDs 17 total
device 6 cached RSSI 0 Class 5898764 Num ManufacturerData
0Discovered:  "E2:08:A1:05:5D:41" "NERD 2" Num UUIDs 3 total device 7
cached RSSI 0 Class 0 Num ManufacturerData 0Updating RSSI for
"00:80:25:49:D6:DF" QVariant(short, -72)Updating RSSI for
"00:80:25:49:D6:DF" QVariant(short, -88)Initiating direct pair to
"00:80:25:49:D6:DF"Sending pairing request to "00:80:25:49:D6:DF"void
QBluetoothDeviceDiscoveryAgentPrivate::stop()Using BlueZ LE DBus
APIQLowEnergyControllerPrivateBluezDBus::connectToDevice()######
"org.bluez.Device1" QMap(("Connected", QVariant(bool, true)))######
"org.bluez.Device1" QMap(("ServicesResolved", QVariant(bool,
true)))BTLE_DBUS::connect() failed "org.bluez.Error.NotAvailable"
"Operation currently not available"




Closed dialog box and closed Subsurface, removed device from OS
Bluetooth settings then try again with non LE Bluetooth
Try again choosing OSTC Plus (instead of OSTC3 as I have seen it
discovered as that in the XML file devices?

Import > Import from dive computerPick Heinrichs Weikamp in the dive
vendor drop downPick OSTC Plus in the dive computer drop downChoose
Bluetooth download mode check box
Force Classical > Scan
Pick the OSTC3 showing: [State: UNPAIRED] > Right Click Pair > Click
Save > Click Download
Seeing the below messages down the bottom of the dialog box:Opening
rfcomm stream 00:80:25:49:D6:DF > then goes too fast to read but goes
on to the 5 dives

Popup window:ErrorNo new dives downloaded from dive computer
Red bar down the bottom of main window:Dive 5: Error parsing the header

from terminal:
Unable to match trip 'time.trip.�L4' (12:08:42)Bluez 5 detected.Missing
CAP_NET_ADMIN permission. Cannot determine whether a found address is
of random or public type.Creating
QtBluezDiscoveryManagerDiscovered:  "00:13:43:0D:DB:D4" "Petrel" Num
UUIDs 1 total device 0 cached RSSI 0 Class 526084 Num ManufacturerData
0Discovered:  "00:80:25:49:D6:DF" "OSTC3#04491" Num UUIDs 7 total
device 1 cached RSSI 0 Class 7936 Num ManufacturerData
1Discovered:  "18:03:23:32:16:E7" "T energy" Num UUIDs 4 total device 2
cached RSSI 0 Class 2360324 Num ManufacturerData
0Discovered:  "88:11:96:79:F2:FE" "Dwayne" Num UUIDs 0 total device 3
cached RSSI 0 Class 5898764 Num ManufacturerData
0Discovered:  "D4:AE:05:97:A7:78" "Galaxy S8+" Num UUIDs 17 total
device 4 cached RSSI 0 Class 5898764 Num ManufacturerData
0Discovered:  "E2:08:A1:05:5D:41" "NERD 2" Num UUIDs 3 total device 5
cached RSSI 0 Class 0 Num ManufacturerData 0Updating RSSI for
"00:80:25:49:D6:DF" QVariant(short, -73)Initiating direct pair to
"00:80:25:49:D6:DF"Sending pairing request to "00:80:25:49:D6:DF"void
QBluetoothDeviceDiscoveryAgentPrivate::stop()Detecting bluetoothd
versionUsing /proc/<pid>/exeUsing /proc/<pid>/cmdlineDetected
bluetoothd version 5.51Bluetoothd: "5.51"Using Bluetooth dbus socket
implementationRegistering client profile on
"/qt/btsocket/Subsurface26892/546592569" with options:QMap(("Name",
QVariant(QString, "QBluetoothSocket-26892"))("Role", QVariant(QString,
"client"))("Service", QVariant(QString, "00001101-0000-1000-8000-
00805f9b34fb")))Profile Context: New ConnectionINFO: dc_device_open
error value of 0[4.122634] ERROR: Buffer overflow detected! [in
../../src/hw_ostc_parser.c:981
(hw_ostc_parser_samples_foreach)][5.515548] ERROR: Buffer overflow
detected! [in ../../src/hw_ostc_parser.c:981
(hw_ostc_parser_samples_foreach)][6.635462] ERROR: Buffer overflow
detected! [in ../../src/hw_ostc_parser.c:981
(hw_ostc_parser_samples_foreach)][7.003018] ERROR: Buffer overflow
detected! [in ../../src/hw_ostc_parser.c:981
(hw_ostc_parser_samples_foreach)][8.251443] ERROR: Buffer overflow
detected! [in ../../src/hw_ostc_parser.c:981
(hw_ostc_parser_samples_foreach)]Clearing profile called for
"/qt/btsocket/Subsurface26892/546592569"



Steve


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20191030/7c615433/attachment.html>


More information about the subsurface mailing list