Bug 13366 - bluez5 ptest hangs with gcc 9
Summary: bluez5 ptest hangs with gcc 9
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: connectivity (show other bugs)
Version: 2.7
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.8 M1
Assignee: Ross Burton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2019-05-29 15:02 UTC by Richard Purdie
Modified: 2019-07-02 00:25 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Purdie 2019-05-29 15:02:01 UTC
Since we switched to gcc 9 by default, the bluez5 ptests are hanging. It hangs in /TP/SIG/SMG/BV-06-C-SEID-2 with:

/TP/SIG/SMG/BV-06-C-SEID-2 init
/TP/SIG/SMG/BV-06-C-SEID-2 setup
/TP/SIG/SMG/BV-06-C-SEID-2 setup complete
/TP/SIG/SMG/BV-06-C-SEID-2 run
bluetoothd[819]: ../bluez-5.50/android/avdtp.c:avdtp_ref() 0x56149afe5230: ref=1
bluetoothd[819]: ../bluez-5.50/android/avdtp.c:avdtp_register_sep() SEP 0x56149afe5060 registered: type:1 codec:0 seid:1
bluetoothd[819]: ../bluez-5.50/android/avdtp.c:avdtp_register_sep() SEP 0x56149afe2700 registered: type:1 codec:0 seid:2
bluetoothd[819]: ../bluez-5.50/android/avdtp.c:avdtp_unregister_sep() SEP 0x56149afe5060 unregistered: type:1 codec:0 seid:1
bluetoothd[819]: ../bluez-5.50/android/avdtp.c:avdtp_register_sep() SEP 0x56149afe5060 registered: type:1 codec:0 seid:1
bluetoothd[819]: ../bluez-5.50/android/avdtp.c:session_cb() 
bluetoothd[819]: ../bluez-5.50/android/avdtp.c:avdtp_ref() 0x56149afe5230: ref=2
bluetoothd[819]: No pending request, ignoring message
bluetoothd[819]: ../bluez-5.50/android/avdtp.c:avdtp_unref() 0x56149afe5230: ref=1

Readily reproduces with:

root@qemux86-64:/usr/lib/bluez5/ptest# ./unit/test-avdtp

With gcc set back to 8.x it works fine.
Comment 1 Richard Purdie 2019-05-29 15:05:27 UTC
Report showing the timeout: https://autobuilder.yocto.io/pub/non-release/20190529-5/testresults/testresult-report.txt
Comment 2 Ross Burton 2019-06-12 11:58:40 UTC
https://git.kernel.org/pub/scm/bluetooth/bluez.git/patch/?id=0be5246170 most likely.  Patch incoming.
Comment 3 Ross Burton 2019-06-12 12:42:17 UTC
Patch on list.