New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 814595 link

Starred by 3 users

Issue metadata

Status: Assigned
Owner:
Last visit > 30 days ago
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug



Sign in to add a comment

DCHECK in BluetoothAdapterBlueZ::AddDiscoverySession at IsDiscovering()

Project Member Reported by steve...@chromium.org, Feb 22 2018

Issue description

Reproed several times on a samus device.

1. Build and deploy chrome to the device with --gn-extra-args='dcheck_always_on = true'
2. Login
3. Open the system menu
4. Open the Bluetooth menu and toggle 'Bluetooth enabled' repeateadly

Chrome crashes with:
[FATAL:bluetooth_adapter_bluez.cc(1394)] Check failed: IsDiscovering()

When I first reproduced this I just opened the System Menu and left it open for a few seconds. I repeated it several times just by leaving the system tray open, but more reliably (and quickly) by toggling 'enable'.


 
Hi Steven, may I know the exact version of both Chrome and Chrome OS when you repro this?
ToT chrome as of yesterday (66.3352.0). CrOS version is 10323.22.0.


Project Member

Comment 3 by bugdroid1@chromium.org, Mar 15 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/c356b220929c6b74c0d79129c89c06669c695feb

commit c356b220929c6b74c0d79129c89c06669c695feb
Author: Sonny Sasaka <sonnysasaka@chromium.org>
Date: Thu Mar 15 21:12:40 2018

device/bluetooth: Remove DCHECK(IsDiscovering()) until BlueZ is fixed.

BlueZ bug makes it wrong to assume that the Discovering property is
updated when StartDiscovery/StopDiscovery returns (crbug.com/822104).
BlueZ bug fixing is deprioritized so here we remove the DCHECK first
until BlueZ bug is fixed.

BUG=814595
TEST=No longer crashes

Change-Id: I12c6d0df808553d3098525b70ab998d8c957b918
Reviewed-on: https://chromium-review.googlesource.com/963845
Reviewed-by: Miao-chen Chou <mcchou@chromium.org>
Commit-Queue: Sonny Sasaka <sonnysasaka@chromium.org>
Cr-Commit-Position: refs/heads/master@{#543495}
[modify] https://crrev.com/c356b220929c6b74c0d79129c89c06669c695feb/device/bluetooth/bluez/bluetooth_adapter_bluez.cc

Cc: sonnysasaka@chromium.org dcasta...@chromium.org mcchou@chromium.org
 Issue 808037  has been merged into this issue.

Comment 5 by mcchou@chromium.org, Apr 19 2018

Issue 821239 has been merged into this issue.
There are more DCHECKs failing (ToT Chrome):

#0 0x00000f2839e4 base::debug::StackTrace::StackTrace()
#1 0x00000f282f9c base::debug::StackTrace::StackTrace()
#2 0x00000f2bd1a4 logging::LogMessage::~LogMessage()
#3 0x0000115c85fa bluez::BluetoothAdapterBlueZ::RemoveDiscoverySession()
#4 0x0000115adfc4 device::BluetoothDiscoverySession::Stop()
#5 0x0000115adc62 device::BluetoothDiscoverySession::~BluetoothDiscoverySession()
#6 0x0000115add6e device::BluetoothDiscoverySession::~BluetoothDiscoverySession()
#7 0x00000d048e0c arc::ArcBluetoothBridge::OnDiscoveryStarted()
#8 0x00000d05d88a _ZN4base8internal13FunctorTraitsIMN3arc18ArcBluetoothBridgeEFvNSt3__110unique_ptrIN6device25BluetoothDiscoverySessionENS4_14default_deleteIS7_EEEEEvE6InvokeIRKNS_7WeakPtrIS3_EEJSA_EEEvSC_OT_DpOT0_
#9 0x00000d05d786 _ZN4base8internal12InvokeHelperILb1EvE8MakeItSoIRKMN3arc18ArcBluetoothBridgeEFvNSt3__110unique_ptrIN6device25BluetoothDiscoverySessionENS6_14default_deleteIS9_EEEEERKNS_7WeakPtrIS5_EEJSC_EEEvOT_OT0_DpOT1_
#10 0x00000d05d736 _ZN4base8internal7InvokerINS0_9BindStateIMN3arc18ArcBluetoothBridgeEFvNSt3__110unique_ptrIN6device25BluetoothDiscoverySessionENS5_14default_deleteIS8_EEEEEJNS_7WeakPtrIS4_EEEEEFvSB_EE7RunImplIRKSD_RKNS5_5tupleIJSF_EEEJLj0EEEEvOT_OT0_NS5_16integer_sequenceIjJXspT1_EEEEOSB_
#11 0x00000d05d6aa _ZN4base8internal7InvokerINS0_9BindStateIMN3arc18ArcBluetoothBridgeEFvNSt3__110unique_ptrIN6device25BluetoothDiscoverySessionENS5_14default_deleteIS8_EEEEEJNS_7WeakPtrIS4_EEEEEFvSB_EE3RunEPNS0_13BindStateBaseEOSB_
#12 0x000009df2100 _ZNKR4base17RepeatingCallbackIFvN4mojo29ScopedInterfaceEndpointHandleEEE3RunES2_
#13 0x000011596654 device::BluetoothAdapter::OnStartDiscoverySession()
#14 0x00001159a86c _ZN4base8internal13FunctorTraitsIMN6device16BluetoothAdapterEFvNSt3__110unique_ptrINS2_24BluetoothDiscoveryFilterENS4_14default_deleteIS6_EEEERKNS_17RepeatingCallbackIFvNS5_INS2_25BluetoothDiscoverySessionENS7_ISB_EEEEEEEEvE6InvokeIRKNS_7WeakPtrIS3_EEJS9_SH_EEEvSJ_OT_DpOT0_
#15 0x00001159a730 _ZN4base8internal12InvokeHelperILb1EvE8MakeItSoIRKMN6device16BluetoothAdapterEFvNSt3__110unique_ptrINS4_24BluetoothDiscoveryFilterENS6_14default_deleteIS8_EEEERKNS_17RepeatingCallbackIFvNS7_INS4_25BluetoothDiscoverySessionENS9_ISD_EEEEEEEERKNS_7WeakPtrIS5_EEJSB_SJ_EEEvOT_OT0_DpOT1_
#16 0x00001159a650 _ZN4base8internal7InvokerINS0_9BindStateIMN6device16BluetoothAdapterEFvNSt3__110unique_ptrINS3_24BluetoothDiscoveryFilterENS5_14default_deleteIS7_EEEERKNS_17RepeatingCallbackIFvNS6_INS3_25BluetoothDiscoverySessionENS8_ISC_EEEEEEEEJNS_7WeakPtrIS4_EENS0_13PassedWrapperISA_EESG_EEEFvvEE7RunImplIRKSK_RKNS5_5tupleIJSM_SO_SG_EEEJLj0ELj1ELj2EEEEvOT_OT0_NS5_16integer_sequenceIjJXspT1_EEEE
#17 0x00001159a55c _ZN4base8internal7InvokerINS0_9BindStateIMN6device16BluetoothAdapterEFvNSt3__110unique_ptrINS3_24BluetoothDiscoveryFilterENS5_14default_deleteIS7_EEEERKNS_17RepeatingCallbackIFvNS6_INS3_25BluetoothDiscoverySessionENS8_ISC_EEEEEEEEJNS_7WeakPtrIS4_EENS0_13PassedWrapperISA_EESG_EEEFvvEE3RunEPNS0_13BindStateBaseE
#18 0x000009ef5b66 _ZNKR4base17RepeatingCallbackIFvvEE3RunEv
#19 0x0000115c8e5c bluez::BluetoothAdapterBlueZ::SetDiscoveryFilter()
#20 0x0000115c78b8 bluez::BluetoothAdapterBlueZ::AddDiscoverySession()
#21 0x0000115ca11e bluez::BluetoothAdapterBlueZ::ProcessQueuedDiscoveryRequests()
#22 0x0000115c830e bluez::BluetoothAdapterBlueZ::OnStartDiscovery()
#23 0x0000115d49ee _ZN4base8internal13FunctorTraitsIMN5bluez21BluetoothAdapterBlueZEFvRKNS_17RepeatingCallbackIFvvEEENS_12OnceCallbackIFvN6device35UMABluetoothDiscoverySessionOutcomeEEEEEvE6InvokeIRKNS_7WeakPtrIS3_EEJS8_RKNS4_ISC_EEEEEvSF_OT_DpOT0_
#24 0x0000115d4944 _ZN4base8internal12InvokeHelperILb1EvE8MakeItSoIRKMN5bluez21BluetoothAdapterBlueZEFvRKNS_17RepeatingCallbackIFvvEEENS_12OnceCallbackIFvN6device35UMABluetoothDiscoverySessionOutcomeEEEEERKNS_7WeakPtrIS5_EEJSA_RKNS6_ISE_EEEEEvOT_OT0_DpOT1_
#25 0x0000115d48dc _ZN4base8internal7InvokerINS0_9BindStateIMN5bluez21BluetoothAdapterBlueZEFvRKNS_17RepeatingCallbackIFvvEEENS_12OnceCallbackIFvN6device35UMABluetoothDiscoverySessionOutcomeEEEEEJNS_7WeakPtrIS4_EES7_NS5_ISD_EEEEES6_E7RunImplIRKSG_RKNSt3__15tupleIJSI_S7_SJ_EEEJLj0ELj1ELj2EEEEvOT_OT0_NSP_16integer_sequenceIjJXspT1_EEEE
#26 0x0000115d47f4 _ZN4base8internal7InvokerINS0_9BindStateIMN5bluez21BluetoothAdapterBlueZEFvRKNS_17RepeatingCallbackIFvvEEENS_12OnceCallbackIFvN6device35UMABluetoothDiscoverySessionOutcomeEEEEEJNS_7WeakPtrIS4_EES7_NS5_ISD_EEEEES6_E3RunEPNS0_13BindStateBaseE
#27 0x000009ef5b66 _ZNKR4base17RepeatingCallbackIFvvEE3RunEv
#28 0x000011603dd6 bluez::BluetoothAdapterClientImpl::OnSuccess()
#29 0x0000116043d6 _ZN4base8internal13FunctorTraitsIMN5bluez26BluetoothAdapterClientImplEFvRKNS_17RepeatingCallbackIFvjEEEPN4dbus8ResponseEEvE6InvokeINS_7WeakPtrIS3_EEJS6_SB_EEEvSD_OT_DpOT0_
#30 0x000011604356 _ZN4base8internal12InvokeHelperILb1EvE8MakeItSoIMN5bluez26BluetoothAdapterClientImplEFvRKNS_17RepeatingCallbackIFvvEEEPN4dbus8ResponseEENS_7WeakPtrIS5_EEJS8_SD_EEEvOT_OT0_DpOT1_
#31 0x0000116042ee _ZN4base8internal7InvokerINS0_9BindStateIMN5bluez26BluetoothAdapterClientImplEFvRKNS_17RepeatingCallbackIFvvEEEPN4dbus8ResponseEEJNS_7WeakPtrIS4_EES7_EEEFvSC_EE7RunImplISE_NSt3__15tupleIJSG_S7_EEEJLj0ELj1EEEEvOT_OT0_NSL_16integer_sequenceIjJXspT1_EEEEOSC_
#32 0x000011604214 _ZN4base8internal7InvokerINS0_9BindStateIMN5bluez26BluetoothAdapterClientImplEFvRKNS_17RepeatingCallbackIFvvEEEPN4dbus8ResponseEEJNS_7WeakPtrIS4_EES7_EEEFvSC_EE7RunOnceEPNS0_13BindStateBaseESC_
#33 0x000009cd90cc _ZNO4base12OnceCallbackIFvNS_4File5ErrorEEE3RunES2_
#34 0x0000108b8e10 dbus::ObjectProxy::CallMethodWithErrorCallback()::$_0::operator()()
#35 0x0000108b8db2 _ZN4base8internal13FunctorTraitsIZN4dbus11ObjectProxy27CallMethodWithErrorCallbackEPNS2_10MethodCallEiNS_12OnceCallbackIFvPNS2_8ResponseEEEENS6_IFvPNS2_13ErrorResponseEEEEE3$_0vE6InvokeISF_JSA_SE_S8_SC_EEEvOT_DpOT0_
#36 0x0000108b8d20 _ZN4base8internal12InvokeHelperILb0EvE8MakeItSoIZN4dbus11ObjectProxy27CallMethodWithErrorCallbackEPNS4_10MethodCallEiNS_12OnceCallbackIFvPNS4_8ResponseEEEENS8_IFvPNS4_13ErrorResponseEEEEE3$_0JSC_SG_SA_SE_EEEvOT_DpOT0_
#37 0x0000108b8cc2 _ZN4base8internal7InvokerINS0_9BindStateIZN4dbus11ObjectProxy27CallMethodWithErrorCallbackEPNS3_10MethodCallEiNS_12OnceCallbackIFvPNS3_8ResponseEEEENS7_IFvPNS3_13ErrorResponseEEEEE3$_0JSB_SF_EEEFvS9_SD_EE7RunImplISG_NSt3__15tupleIJSB_SF_EEEJLj0ELj1EEEEvOT_OT0_NSL_16integer_sequenceIjJXspT1_EEEEOS9_OSD_
#38 0x0000108b8bd6 _ZN4base8internal7InvokerINS0_9BindStateIZN4dbus11ObjectProxy27CallMethodWithErrorCallbackEPNS3_10MethodCallEiNS_12OnceCallbackIFvPNS3_8ResponseEEEENS7_IFvPNS3_13ErrorResponseEEEEE3$_0JSB_SF_EEEFvS9_SD_EE7RunOnceEPNS0_13BindStateBaseES9_SD_
#39 0x000009cf936e _ZNO4base12OnceCallbackIFvNS_4File5ErrorEjEE3RunES2_j
#40 0x0000108b51a2 dbus::ObjectProxy::RunResponseOrErrorCallback()
#41 0x0000108bc9aa _ZN4base8internal13FunctorTraitsIMN4dbus11ObjectProxyEFvNS3_19ReplyCallbackHolderENS_9TimeTicksEPNS2_8ResponseEPNS2_13ErrorResponseEEvE6InvokeI13scoped_refptrIS3_EJS4_S5_S7_S9_EEEvSB_OT_DpOT0_
#42 0x0000108bc8d4 _ZN4base8internal12InvokeHelperILb0EvE8MakeItSoIMN4dbus11ObjectProxyEFvNS5_19ReplyCallbackHolderENS_9TimeTicksEPNS4_8ResponseEPNS4_13ErrorResponseEEJ13scoped_refptrIS5_ES6_S7_S9_SB_EEEvOT_DpOT0_
#43 0x0000108bc844 _ZN4base8internal7InvokerINS0_9BindStateIMN4dbus11ObjectProxyEFvNS4_19ReplyCallbackHolderENS_9TimeTicksEPNS3_8ResponseEPNS3_13ErrorResponseEEJ13scoped_refptrIS4_ES5_S6_S8_SA_EEEFvvEE7RunImplISC_NSt3__15tupleIJSE_S5_S6_S8_SA_EEEJLj0ELj1ELj2ELj3ELj4EEEEvOT_OT0_NSJ_16integer_sequenceIjJXspT1_EEEE
#44 0x0000108bc6fe _ZN4base8internal7InvokerINS0_9BindStateIMN4dbus11ObjectProxyEFvNS4_19ReplyCallbackHolderENS_9TimeTicksEPNS3_8ResponseEPNS3_13ErrorResponseEEJ13scoped_refptrIS4_ES5_S6_S8_SA_EEEFvvEE7RunOnceEPNS0_13BindStateBaseE
#45 0x000009d4e158 _ZNO4base12OnceCallbackIFvvEE3RunEv
#46 0x00000f37f9be base::(anonymous namespace)::PostTaskAndReplyRelay::RunTaskAndPostReply()
#47 0x00000f38006c _ZN4base8internal13FunctorTraitsIPFvNS_12_GLOBAL__N_121PostTaskAndReplyRelayEEvE6InvokeIJS3_EEEvS5_DpOT_
#48 0x00000f38000e _ZN4base8internal12InvokeHelperILb0EvE8MakeItSoIPFvNS_12_GLOBAL__N_121PostTaskAndReplyRelayEEJS5_EEEvOT_DpOT0_
#49 0x00000f37ffe6 _ZN4base8internal7InvokerINS0_9BindStateIPFvNS_12_GLOBAL__N_121PostTaskAndReplyRelayEEJS4_EEEFvvEE7RunImplIS6_NSt3__15tupleIJS4_EEEJLj0EEEEvOT_OT0_NSB_16integer_sequenceIjJXspT1_EEEE
#50 0x00000f37ff6a _ZN4base8internal7InvokerINS0_9BindStateIPFvNS_12_GLOBAL__N_121PostTaskAndReplyRelayEEJS4_EEEFvvEE7RunOnceEPNS0_13BindStateBaseE
#51 0x000009d4e158 _ZNO4base12OnceCallbackIFvvEE3RunEv
#52 0x00000f285712 base::debug::TaskAnnotator::RunTask()
#53 0x00000f3faf9e base::internal::IncomingTaskQueue::RunTask()
#54 0x00000f2ceae4 base::MessageLoop::RunTask()
#55 0x00000f2ceccc base::MessageLoop::DeferOrRunPendingTask()
#56 0x00000f2cee9c base::MessageLoop::DoWork()
#57 0x00000f2d388e base::MessagePumpLibevent::Run()
#58 0x00000f2ce650 base::MessageLoop::Run()
#59 0x00000f328d8e base::RunLoop::Run()
#60 0x00000eaab906 ChromeBrowserMainParts::MainMessageLoopRun()
#61 0x00000b5a117e content::BrowserMainLoop::RunMainMessageLoopParts()


I missed the first line from the trace:

[7634:7634:0419/201517.748789:FATAL:bluetooth_adapter_bluez.cc(1449)] Check failed: IsDiscovering(). 

A demangled trace:
#0 0x00000f2839e4 base::debug::StackTrace::StackTrace()
#1 0x00000f282f9c base::debug::StackTrace::StackTrace()
#2 0x00000f2bd1a4 logging::LogMessage::~LogMessage()
#3 0x0000115c85fa bluez::BluetoothAdapterBlueZ::RemoveDiscoverySession()
#4 0x0000115adfc4 device::BluetoothDiscoverySession::Stop()
#5 0x0000115adc62 device::BluetoothDiscoverySession::~BluetoothDiscoverySession()
#6 0x0000115add6e device::BluetoothDiscoverySession::~BluetoothDiscoverySession()
#7 0x00000d048e0c arc::ArcBluetoothBridge::OnDiscoveryStarted()
#8 0x00000d05d88a void base::internal::FunctorTraits<void (arc::ArcBluetoothBridge::*)(std::__1::unique_ptr<device::BluetoothDiscoverySession, std::__1::default_delete<device::BluetoothDiscoverySession> >), void>::Invoke<base::WeakPtr<arc::ArcBluetoothBridge> const&, std::__1::unique_ptr<device::BluetoothDiscoverySession, std::__1::default_delete<device::BluetoothDiscoverySession> > >(void (arc::ArcBluetoothBridge::*)(std::__1::unique_ptr<device::BluetoothDiscoverySession, std::__1::default_delete<device::BluetoothDiscoverySession> >), base::WeakPtr<arc::ArcBluetoothBridge> const&, s
#9 0x00000d05d786 void base::internal::InvokeHelper<true, void>::MakeItSo<void (arc::ArcBluetoothBridge::* const&)(std::__1::unique_ptr<device::BluetoothDiscoverySession, std::__1::default_delete<device::BluetoothDiscoverySession> >), base::WeakPtr<arc::ArcBluetoothBridge> const&, std::__1::unique_ptr<device::BluetoothDiscoverySession, std::__1::default_delete<device::BluetoothDiscoverySession> > >(void (arc::ArcBluetoothBridge::* const&)(std::__1::unique_ptr<device::BluetoothDiscoverySession, std::__1::default_delete<device::BluetoothDiscoverySession> >), base::WeakPtr<arc::ArcBluet
#10 0x00000d05d736 void base::internal::Invoker<base::internal::BindState<void (arc::ArcBluetoothBridge::*)(std::__1::unique_ptr<device::BluetoothDiscoverySession, std::__1::default_delete<device::BluetoothDiscoverySession> >), base::WeakPtr<arc::ArcBluetoothBridge> >, void (std::__1::unique_ptr<device::BluetoothDiscoverySession, std::__1::default_delete<device::BluetoothDiscoverySession> >)>::RunImpl<void (arc::ArcBluetoothBridge::* const&)(std::__1::unique_ptr<device::BluetoothDiscoverySession, std::__1::default_delete<device::BluetoothDiscoverySession> >), std::__1::tuple<base::We
#11 0x00000d05d6aa base::internal::Invoker<base::internal::BindState<void (arc::ArcBluetoothBridge::*)(std::__1::unique_ptr<device::BluetoothDiscoverySession, std::__1::default_delete<device::BluetoothDiscoverySession> >), base::WeakPtr<arc::ArcBluetoothBridge> >, void (std::__1::unique_ptr<device::BluetoothDiscoverySession, std::__1::default_delete<device::BluetoothDiscoverySession> >)>::Run(base::internal::BindStateBase*, std::__1::unique_ptr<device::BluetoothDiscoverySession, std::__1::default_delete<device::BluetoothDiscoverySession> >&&)
#12 0x000009df2100 base::RepeatingCallback<void (mojo::ScopedInterfaceEndpointHandle)>::Run(mojo::ScopedInterfaceEndpointHandle) const &
#13 0x000011596654 device::BluetoothAdapter::OnStartDiscoverySession()
#14 0x00001159a86c void base::internal::FunctorTraits<void (device::BluetoothAdapter::*)(std::__1::unique_ptr<device::BluetoothDiscoveryFilter, std::__1::default_delete<device::BluetoothDiscoveryFilter> >, base::RepeatingCallback<void (std::__1::unique_ptr<device::BluetoothDiscoverySession, std::__1::default_delete<device::BluetoothDiscoverySession> >)> const&), void>::Invoke<base::WeakPtr<device::BluetoothAdapter> const&, std::__1::unique_ptr<device::BluetoothDiscoveryFilter, std::__1::default_delete<device::BluetoothDiscoveryFilter> >, base::RepeatingCallback<void (std::__1::unique
#15 0x00001159a730 void base::internal::InvokeHelper<true, void>::MakeItSo<void (device::BluetoothAdapter::* const&)(std::__1::unique_ptr<device::BluetoothDiscoveryFilter, std::__1::default_delete<device::BluetoothDiscoveryFilter> >, base::RepeatingCallback<void (std::__1::unique_ptr<device::BluetoothDiscoverySession, std::__1::default_delete<device::BluetoothDiscoverySession> >)> const&), base::WeakPtr<device::BluetoothAdapter> const&, std::__1::unique_ptr<device::BluetoothDiscoveryFilter, std::__1::default_delete<device::BluetoothDiscoveryFilter> >, base::RepeatingCallback<void (st
#16 0x00001159a650 void base::internal::Invoker<base::internal::BindState<void (device::BluetoothAdapter::*)(std::__1::unique_ptr<device::BluetoothDiscoveryFilter, std::__1::default_delete<device::BluetoothDiscoveryFilter> >, base::RepeatingCallback<void (std::__1::unique_ptr<device::BluetoothDiscoverySession, std::__1::default_delete<device::BluetoothDiscoverySession> >)> const&), base::WeakPtr<device::BluetoothAdapter>, base::internal::PassedWrapper<std::__1::unique_ptr<device::BluetoothDiscoveryFilter, std::__1::default_delete<device::BluetoothDiscoveryFilter> > >, base::Repeating
#17 0x00001159a55c base::internal::Invoker<base::internal::BindState<void (device::BluetoothAdapter::*)(std::__1::unique_ptr<device::BluetoothDiscoveryFilter, std::__1::default_delete<device::BluetoothDiscoveryFilter> >, base::RepeatingCallback<void (std::__1::unique_ptr<device::BluetoothDiscoverySession, std::__1::default_delete<device::BluetoothDiscoverySession> >)> const&), base::WeakPtr<device::BluetoothAdapter>, base::internal::PassedWrapper<std::__1::unique_ptr<device::BluetoothDiscoveryFilter, std::__1::default_delete<device::BluetoothDiscoveryFilter> > >, base::RepeatingCallb
#18 0x000009ef5b66 base::RepeatingCallback<void ()>::Run() const &
#19 0x0000115c8e5c bluez::BluetoothAdapterBlueZ::SetDiscoveryFilter()
#20 0x0000115c78b8 bluez::BluetoothAdapterBlueZ::AddDiscoverySession()
#21 0x0000115ca11e bluez::BluetoothAdapterBlueZ::ProcessQueuedDiscoveryRequests()
#22 0x0000115c830e bluez::BluetoothAdapterBlueZ::OnStartDiscovery()
#23 0x0000115d49ee void base::internal::FunctorTraits<void (bluez::BluetoothAdapterBlueZ::*)(base::RepeatingCallback<void ()> const&, base::OnceCallback<void (device::UMABluetoothDiscoverySessionOutcome)>), void>::Invoke<base::WeakPtr<bluez::BluetoothAdapterBlueZ> const&, base::RepeatingCallback<void ()> const&, base::RepeatingCallback<void (device::UMABluetoothDiscoverySessionOutcome)> const&>(void (bluez::BluetoothAdapterBlueZ::*)(base::RepeatingCallback<void ()> const&, base::OnceCallback<void (device::UMABluetoothDiscoverySessionOutcome)>), base::WeakPtr<bluez::BluetoothAdapterBl
#24 0x0000115d4944 void base::internal::InvokeHelper<true, void>::MakeItSo<void (bluez::BluetoothAdapterBlueZ::* const&)(base::RepeatingCallback<void ()> const&, base::OnceCallback<void (device::UMABluetoothDiscoverySessionOutcome)>), base::WeakPtr<bluez::BluetoothAdapterBlueZ> const&, base::RepeatingCallback<void ()> const&, base::RepeatingCallback<void (device::UMABluetoothDiscoverySessionOutcome)> const&>(void (bluez::BluetoothAdapterBlueZ::* const&)(base::RepeatingCallback<void ()> const&, base::OnceCallback<void (device::UMABluetoothDiscoverySessionOutcome)>), base::WeakPtr<blue
#25 0x0000115d48dc void base::internal::Invoker<base::internal::BindState<void (bluez::BluetoothAdapterBlueZ::*)(base::RepeatingCallback<void ()> const&, base::OnceCallback<void (device::UMABluetoothDiscoverySessionOutcome)>), base::WeakPtr<bluez::BluetoothAdapterBlueZ>, base::RepeatingCallback<void ()>, base::RepeatingCallback<void (device::UMABluetoothDiscoverySessionOutcome)> >, void ()>::RunImpl<void (bluez::BluetoothAdapterBlueZ::* const&)(base::RepeatingCallback<void ()> const&, base::OnceCallback<void (device::UMABluetoothDiscoverySessionOutcome)>), std::__1::tuple<base::WeakP
#26 0x0000115d47f4 base::internal::Invoker<base::internal::BindState<void (bluez::BluetoothAdapterBlueZ::*)(base::RepeatingCallback<void ()> const&, base::OnceCallback<void (device::UMABluetoothDiscoverySessionOutcome)>), base::WeakPtr<bluez::BluetoothAdapterBlueZ>, base::RepeatingCallback<void ()>, base::RepeatingCallback<void (device::UMABluetoothDiscoverySessionOutcome)> >, void ()>::Run(base::internal::BindStateBase*)
#27 0x000009ef5b66 base::RepeatingCallback<void ()>::Run() const &
#28 0x000011603dd6 bluez::BluetoothAdapterClientImpl::OnSuccess()
#29 0x0000116043d6 void base::internal::FunctorTraits<void (bluez::BluetoothAdapterClientImpl::*)(base::RepeatingCallback<void (unsigned int)> const&, dbus::Response*), void>::Invoke<base::WeakPtr<bluez::BluetoothAdapterClientImpl>, base::RepeatingCallback<void (unsigned int)>, dbus::Response*>(void (bluez::BluetoothAdapterClientImpl::*)(base::RepeatingCallback<void (unsigned int)> const&, dbus::Response*), base::WeakPtr<bluez::BluetoothAdapterClientImpl>&&, base::RepeatingCallback<void (unsigned int)>&&, dbus::Response*&&)
#30 0x000011604356 void base::internal::InvokeHelper<true, void>::MakeItSo<void (bluez::BluetoothAdapterClientImpl::*)(base::RepeatingCallback<void ()> const&, dbus::Response*), base::WeakPtr<bluez::BluetoothAdapterClientImpl>, base::RepeatingCallback<void ()>, dbus::Response*>(void (bluez::BluetoothAdapterClientImpl::*&&)(base::RepeatingCallback<void ()> const&, dbus::Response*), base::WeakPtr<bluez::BluetoothAdapterClientImpl>&&, base::RepeatingCallback<void ()>&&, dbus::Response*&&)
#31 0x0000116042ee void base::internal::Invoker<base::internal::BindState<void (bluez::BluetoothAdapterClientImpl::*)(base::RepeatingCallback<void ()> const&, dbus::Response*), base::WeakPtr<bluez::BluetoothAdapterClientImpl>, base::RepeatingCallback<void ()> >, void (dbus::Response*)>::RunImpl<void (bluez::BluetoothAdapterClientImpl::*)(base::RepeatingCallback<void ()> const&, dbus::Response*), std::__1::tuple<base::WeakPtr<bluez::BluetoothAdapterClientImpl>, base::RepeatingCallback<void ()> >, 0u, 1u>(void (bluez::BluetoothAdapterClientImpl::*&&)(base::RepeatingCallback<void ()> co
#32 0x000011604214 base::internal::Invoker<base::internal::BindState<void (bluez::BluetoothAdapterClientImpl::*)(base::RepeatingCallback<void ()> const&, dbus::Response*), base::WeakPtr<bluez::BluetoothAdapterClientImpl>, base::RepeatingCallback<void ()> >, void (dbus::Response*)>::RunOnce(base::internal::BindStateBase*, dbus::Response*)
#33 0x000009cd90cc base::OnceCallback<void (base::File::Error)>::Run(base::File::Error) &&
#34 0x0000108b8e10 dbus::ObjectProxy::CallMethodWithErrorCallback()::$_0::operator()()
#35 0x0000108b8db2 void base::internal::FunctorTraits<dbus::ObjectProxy::CallMethodWithErrorCallback(dbus::MethodCall*, int, base::OnceCallback<void (dbus::Response*)>, base::OnceCallback<void (dbus::ErrorResponse*)>)::$_0, void>::Invoke<dbus::ObjectProxy::CallMethodWithErrorCallback(dbus::MethodCall*, int, base::OnceCallback<void (dbus::Response*)>, base::OnceCallback<void (dbus::ErrorResponse*)>)::$_0, base::OnceCallback<void (dbus::Response*)>, base::OnceCallback<void (dbus::ErrorResponse*)>, dbus::Response*, dbus::ErrorResponse*>(dbus::ObjectProxy::CallMethodWithErrorCallback(dbu
#36 0x0000108b8d20 void base::internal::InvokeHelper<false, void>::MakeItSo<dbus::ObjectProxy::CallMethodWithErrorCallback(dbus::MethodCall*, int, base::OnceCallback<void (dbus::Response*)>, base::OnceCallback<void (dbus::ErrorResponse*)>)::$_0, base::OnceCallback<void (dbus::Response*)>, base::OnceCallback<void (dbus::ErrorResponse*)>, dbus::Response*, dbus::ErrorResponse*>(dbus::ObjectProxy::CallMethodWithErrorCallback(dbus::MethodCall*, int, base::OnceCallback<void (dbus::Response*)>, base::OnceCallback<void (dbus::ErrorResponse*)>)::$_0&&, base::OnceCallback<void (dbus::Response*
#37 0x0000108b8cc2 void base::internal::Invoker<base::internal::BindState<dbus::ObjectProxy::CallMethodWithErrorCallback(dbus::MethodCall*, int, base::OnceCallback<void (dbus::Response*)>, base::OnceCallback<void (dbus::ErrorResponse*)>)::$_0, base::OnceCallback<void (dbus::Response*)>, base::OnceCallback<void (dbus::ErrorResponse*)> >, void (dbus::Response*, dbus::ErrorResponse*)>::RunImpl<dbus::ObjectProxy::CallMethodWithErrorCallback(dbus::MethodCall*, int, base::OnceCallback<void (dbus::Response*)>, base::OnceCallback<void (dbus::ErrorResponse*)>)::$_0, std::__1::tuple<base::Once
#38 0x0000108b8bd6 base::internal::Invoker<base::internal::BindState<dbus::ObjectProxy::CallMethodWithErrorCallback(dbus::MethodCall*, int, base::OnceCallback<void (dbus::Response*)>, base::OnceCallback<void (dbus::ErrorResponse*)>)::$_0, base::OnceCallback<void (dbus::Response*)>, base::OnceCallback<void (dbus::ErrorResponse*)> >, void (dbus::Response*, dbus::ErrorResponse*)>::RunOnce(base::internal::BindStateBase*, dbus::Response*, dbus::ErrorResponse*)
#39 0x000009cf936e base::OnceCallback<void (base::File::Error, unsigned int)>::Run(base::File::Error, unsigned int) &&
#40 0x0000108b51a2 dbus::ObjectProxy::RunResponseOrErrorCallback()
#41 0x0000108bc9aa void base::internal::FunctorTraits<void (dbus::ObjectProxy::*)(dbus::ObjectProxy::ReplyCallbackHolder, base::TimeTicks, dbus::Response*, dbus::ErrorResponse*), void>::Invoke<scoped_refptr<dbus::ObjectProxy>, dbus::ObjectProxy::ReplyCallbackHolder, base::TimeTicks, dbus::Response*, dbus::ErrorResponse*>(void (dbus::ObjectProxy::*)(dbus::ObjectProxy::ReplyCallbackHolder, base::TimeTicks, dbus::Response*, dbus::ErrorResponse*), scoped_refptr<dbus::ObjectProxy>&&, dbus::ObjectProxy::ReplyCallbackHolder&&, base::TimeTicks&&, dbus::Response*&&, dbus::ErrorResponse*&&)
#42 0x0000108bc8d4 void base::internal::InvokeHelper<false, void>::MakeItSo<void (dbus::ObjectProxy::*)(dbus::ObjectProxy::ReplyCallbackHolder, base::TimeTicks, dbus::Response*, dbus::ErrorResponse*), scoped_refptr<dbus::ObjectProxy>, dbus::ObjectProxy::ReplyCallbackHolder, base::TimeTicks, dbus::Response*, dbus::ErrorResponse*>(void (dbus::ObjectProxy::*&&)(dbus::ObjectProxy::ReplyCallbackHolder, base::TimeTicks, dbus::Response*, dbus::ErrorResponse*), scoped_refptr<dbus::ObjectProxy>&&, dbus::ObjectProxy::ReplyCallbackHolder&&, base::TimeTicks&&, dbus::Response*&&, dbus::ErrorRespo
#43 0x0000108bc844 void base::internal::Invoker<base::internal::BindState<void (dbus::ObjectProxy::*)(dbus::ObjectProxy::ReplyCallbackHolder, base::TimeTicks, dbus::Response*, dbus::ErrorResponse*), scoped_refptr<dbus::ObjectProxy>, dbus::ObjectProxy::ReplyCallbackHolder, base::TimeTicks, dbus::Response*, dbus::ErrorResponse*>, void ()>::RunImpl<void (dbus::ObjectProxy::*)(dbus::ObjectProxy::ReplyCallbackHolder, base::TimeTicks, dbus::Response*, dbus::ErrorResponse*), std::__1::tuple<scoped_refptr<dbus::ObjectProxy>, dbus::ObjectProxy::ReplyCallbackHolder, base::TimeTicks, dbus::Resp
#44 0x0000108bc6fe base::internal::Invoker<base::internal::BindState<void (dbus::ObjectProxy::*)(dbus::ObjectProxy::ReplyCallbackHolder, base::TimeTicks, dbus::Response*, dbus::ErrorResponse*), scoped_refptr<dbus::ObjectProxy>, dbus::ObjectProxy::ReplyCallbackHolder, base::TimeTicks, dbus::Response*, dbus::ErrorResponse*>, void ()>::RunOnce(base::internal::BindStateBase*)
#45 0x000009d4e158 base::OnceCallback<void ()>::Run() &&
#46 0x00000f37f9be base::(anonymous namespace)::PostTaskAndReplyRelay::RunTaskAndPostReply()
#47 0x00000f38006c void base::internal::FunctorTraits<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), void>::Invoke<base::(anonymous namespace)::PostTaskAndReplyRelay>(void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay&&)
#48 0x00000f38000e void base::internal::InvokeHelper<false, void>::MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay>(void (*&&)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay&&)
#49 0x00000f37ffe6 void base::internal::Invoker<base::internal::BindState<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay>, void ()>::RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0u>(void (*&&)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>&&, std::__1::integer_sequence<unsigned int, 0u>)
#50 0x00000f37ff6a base::internal::Invoker<base::internal::BindState<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay>, void ()>::RunOnce(base::internal::BindStateBase*)
#51 0x000009d4e158 base::OnceCallback<void ()>::Run() &&
#52 0x00000f285712 base::debug::TaskAnnotator::RunTask()
#53 0x00000f3faf9e base::internal::IncomingTaskQueue::RunTask()
#54 0x00000f2ceae4 base::MessageLoop::RunTask()
#55 0x00000f2ceccc base::MessageLoop::DeferOrRunPendingTask()
#56 0x00000f2cee9c base::MessageLoop::DoWork()
#57 0x00000f2d388e base::MessagePumpLibevent::Run()
#58 0x00000f2ce650 base::MessageLoop::Run()
#59 0x00000f328d8e base::RunLoop::Run()
#60 0x00000eaab906 ChromeBrowserMainParts::MainMessageLoopRun()
#61 0x00000b5a117e content::BrowserMainLoop::RunMainMessageLoopParts()

Project Member

Comment 9 by bugdroid1@chromium.org, Apr 28 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/50e31da7dd033916b4c9be6d1c326b7648c387e7

commit 50e31da7dd033916b4c9be6d1c326b7648c387e7
Author: Sonny Sasaka <sonnysasaka@chromium.org>
Date: Sat Apr 28 02:10:59 2018

device/bluetooth: Remove DCHECK(IsDiscovering()) until BlueZ is fixed.

BlueZ bug makes it wrong to assume that the Discovering property is
updated when StartDiscovery/StopDiscovery returns (crbug.com/822104).
BlueZ bug fixing is deprioritized so here we remove the DCHECK first
until BlueZ bug is fixed.

This is a left-over from https://crrev.com/c/963845.

BUG=814595,836427
TEST=No longer crashes

Change-Id: I81167db3c3d31225279798e37bede79c56037622
Reviewed-on: https://chromium-review.googlesource.com/1033455
Reviewed-by: Miao-chen Chou <mcchou@chromium.org>
Commit-Queue: Sonny Sasaka <sonnysasaka@chromium.org>
Cr-Commit-Position: refs/heads/master@{#554610}
[modify] https://crrev.com/50e31da7dd033916b4c9be6d1c326b7648c387e7/device/bluetooth/bluez/bluetooth_adapter_bluez.cc

Sign in to add a comment