<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>13366</bug_id>
          
          <creation_ts>2019-05-29 15:02:01 +0000</creation_ts>
          <short_desc>bluez5 ptest hangs with gcc 9</short_desc>
          <delta_ts>2019-07-02 00:25:01 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>connectivity</component>
          <version>2.7</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.8 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Richard Purdie">richard.purdie</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>raj.khem</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>83972</commentid>
    <comment_count>0</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-05-29 15:02:01 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83973</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-05-29 15:05:27 +0000</bug_when>
    <thetext>Report showing the timeout: https://autobuilder.yocto.io/pub/non-release/20190529-5/testresults/testresult-report.txt</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84153</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-06-12 11:58:40 +0000</bug_when>
    <thetext>https://git.kernel.org/pub/scm/bluetooth/bluez.git/patch/?id=0be5246170 most likely.  Patch incoming.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84154</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-06-12 12:42:17 +0000</bug_when>
    <thetext>Patch on list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84354</commentid>
    <comment_count>4</comment_count>
    <who name="Anuj Mittal">anuj.mittal</who>
    <bug_when>2019-07-02 00:25:01 +0000</bug_when>
    <thetext>Ross had fixed this and the test is working now.

https://git.yoctoproject.org/cgit/cgit.cgi/yocto-testresults/tree/runtime/poky/qemux86-64/core-image-sato-ptest-fast/ptest-bluez5.log

https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=e00d88475d0ed7b161f5f58dd13bc9a72e3efdf9</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>