chromiumembedded / cef

Chromium Embedded Framework (CEF). A simple framework for embedding Chromium-based browsers in other applications.
https://bitbucket.org/chromiumembedded/cef/
Other
3.38k stars 467 forks source link

tests: Flaky FrameHandlerTest.Order* tests #3817

Closed magreenblatt closed 1 week ago

magreenblatt commented 4 weeks ago

To Reproduce Steps to reproduce the behavior:

  1. Run ceftests --use-views --gtest_filter=FrameHandlerTest.OrderSubCrossOriginPeersNavCrossOrigin:FrameHandlerTest.OrderMainPopupCrossOrigin --gtest_repeat=3

Expected behavior Tests should succeed. Instead, sometimes the tests fail. Example failure:

../../cef/tests/ceftests/frame_handler_unittest.cc:395: Failure
Value of: got_callback_[i]
  Actual: false
Expected: true
inside OnLoadStart should already have gotten OnFrameAttached

Versions (please complete the following information):

Additional context These tests have likely been flaky for some time.

magreenblatt commented 1 week ago

Also flaky on Windows/Linux.

magreenblatt commented 1 week ago

Full list of failures from a single run of FrameHandlerTest.OrderSubCrossOriginPeersNavCrossOrigin:

../../cef/tests/ceftests/frame_handler_unittest.cc:395: Failure
Value of: got_callback_[i]
  Actual: false
Expected: true
inside OnLoadStart should already have gotten OnFrameAttached

../../cef/tests/ceftests/frame_handler_unittest.cc:399: Failure
Value of: got_callback_[i]
  Actual: true
Expected: false
inside OnFrameAttached should not already have gotten OnLoadStart

../../cef/tests/ceftests/frame_handler_unittest.cc:395: Failure
Value of: got_callback_[i]
  Actual: false
Expected: true
inside OnLoadStart should already have gotten OnFrameAttached

../../cef/tests/ceftests/frame_handler_unittest.cc:395: Failure
Value of: got_callback_[i]
  Actual: false
Expected: true
inside OnLoadEnd should already have gotten OnFrameAttached

../../cef/tests/ceftests/frame_handler_unittest.cc:399: Failure
Value of: got_callback_[i]
  Actual: true
Expected: false
inside OnFrameAttached should not already have gotten OnLoadStart

../../cef/tests/ceftests/frame_handler_unittest.cc:399: Failure
Value of: got_callback_[i]
  Actual: true
Expected: false
inside OnFrameAttached should not already have gotten OnLoadEnd

Looks like OnFrameAttached is arriving with inconsistent timing relative to OnLoadStart/OnLoadEnd.

magreenblatt commented 1 week ago

Verbose logging for the failures. Other than the OnFrameAttached ordering it appears to be working correctly (compare 7-* which passes to 8-* which fails).

[11055:259:1111/141309.441130:INFO:frame_handler_unittest.cc(347)] 6-CA78329256DFBF28EAB6086F98A0FB84 callback OnFrameCreated
[11055:259:1111/141309.441207:INFO:frame_handler_unittest.cc(462)] 6-CA78329256DFBF28EAB6086F98A0FB84 sent query OnFrameCreated
[11055:259:1111/141309.441294:INFO:frame_handler_unittest.cc(347)] 6-CA78329256DFBF28EAB6086F98A0FB84 callback OnMainFrameChanged(initial_assigned)
[11055:259:1111/141309.441431:INFO:frame_handler_unittest.cc(347)] 6-CA78329256DFBF28EAB6086F98A0FB84 callback OnAfterCreated
[11055:259:1111/141309.441453:INFO:frame_handler_unittest.cc(462)] 6-CA78329256DFBF28EAB6086F98A0FB84 sent query OnAfterCreated
[11055:259:1111/141311.296624:INFO:frame_handler_unittest.cc(347)] 6-CA78329256DFBF28EAB6086F98A0FB84 callback OnFrameAttached
[11055:259:1111/141311.296719:INFO:frame_handler_unittest.cc(462)] 6-CA78329256DFBF28EAB6086F98A0FB84 sent query OnFrameAttached
[11055:259:1111/141311.374204:INFO:frame_handler_unittest.cc(347)] 6-CA78329256DFBF28EAB6086F98A0FB84 callback OnLoadStart
[11055:259:1111/141311.374286:INFO:frame_handler_unittest.cc(462)] 6-CA78329256DFBF28EAB6086F98A0FB84 sent query OnLoadStart
[11055:259:1111/141311.384735:INFO:CONSOLE(1)] "6-CA78329256DFBF28EAB6086F98A0FB84 exec query OnFrameCreated", source:  (1)
[11055:259:1111/141311.385013:INFO:frame_handler_unittest.cc(301)] 6-CA78329256DFBF28EAB6086F98A0FB84 recv query OnFrameCreated (1 of 5)
[11055:259:1111/141311.385083:INFO:frame_handler_unittest.cc(724)] 6-CA78329256DFBF28EAB6086F98A0FB84 AllQueriesDelivered=0 {6-CA78329256DFBF28EAB6086F98A0FB84(expected=5 delivered=1) MAIN PENDING} AllFramesLoaded=0 {6-CA78329256DFBF28EAB6086F98A0FB84(OnFrameCreated=1 OnMainFrameChanged(initial_assigned)=1 OnAfterCreated=1 OnFrameAttached=1 OnMainFrameChanged(changed_assigned)=0 OnLoadStart=1 OnLoadEnd=0) MAIN PENDING}
[11055:259:1111/141311.385543:INFO:CONSOLE(1)] "6-CA78329256DFBF28EAB6086F98A0FB84 exec query OnAfterCreated", source:  (1)
[11055:259:1111/141311.385972:INFO:CONSOLE(1)] "6-CA78329256DFBF28EAB6086F98A0FB84 exec query OnFrameAttached", source:  (1)
[11055:259:1111/141311.390660:INFO:frame_handler_unittest.cc(347)] 6-33CB9DCB7966FE9158A3B1C839E256A4 callback OnFrameCreated
[11055:259:1111/141311.390704:INFO:frame_handler_unittest.cc(462)] 6-33CB9DCB7966FE9158A3B1C839E256A4 sent query OnFrameCreated
[11055:259:1111/141311.405172:INFO:frame_handler_unittest.cc(347)] 6-4D5185CB2D455A2EAAA5B5F96A848412 callback OnFrameCreated
[11055:259:1111/141311.405248:INFO:frame_handler_unittest.cc(462)] 6-4D5185CB2D455A2EAAA5B5F96A848412 sent query OnFrameCreated
2024-11-11 14:13:11.418 ceftests[11055:173542] +[IMKClient subclass]: chose IMKClient_Legacy
2024-11-11 14:13:11.418 ceftests[11055:173542] +[IMKInputSession subclass]: chose IMKInputSession_Legacy
[11055:259:1111/141311.424782:INFO:frame_handler_unittest.cc(301)] 6-CA78329256DFBF28EAB6086F98A0FB84 recv query OnAfterCreated (2 of 5)
[11055:259:1111/141311.424871:INFO:frame_handler_unittest.cc(724)] 6-CA78329256DFBF28EAB6086F98A0FB84 AllQueriesDelivered=0 {6-CA78329256DFBF28EAB6086F98A0FB84(expected=5 delivered=2) MAIN PENDING} AllFramesLoaded=0 {6-CA78329256DFBF28EAB6086F98A0FB84(OnFrameCreated=1 OnMainFrameChanged(initial_assigned)=1 OnAfterCreated=1 OnFrameAttached=1 OnMainFrameChanged(changed_assigned)=0 OnLoadStart=1 OnLoadEnd=0) MAIN PENDING}
[11055:259:1111/141311.425027:INFO:frame_handler_unittest.cc(301)] 6-CA78329256DFBF28EAB6086F98A0FB84 recv query OnFrameAttached (3 of 5)
[11055:259:1111/141311.425105:INFO:frame_handler_unittest.cc(724)] 6-CA78329256DFBF28EAB6086F98A0FB84 AllQueriesDelivered=0 {6-CA78329256DFBF28EAB6086F98A0FB84(expected=5 delivered=3) MAIN PENDING} AllFramesLoaded=0 {6-CA78329256DFBF28EAB6086F98A0FB84(OnFrameCreated=1 OnMainFrameChanged(initial_assigned)=1 OnAfterCreated=1 OnFrameAttached=1 OnMainFrameChanged(changed_assigned)=0 OnLoadStart=1 OnLoadEnd=0) MAIN PENDING}
[11055:259:1111/141311.428377:INFO:CONSOLE(1)] "6-CA78329256DFBF28EAB6086F98A0FB84 exec query OnLoadStart", source: https://tests-frame-handler0/cross-origin.html (1)
[11055:259:1111/141311.443579:INFO:frame_handler_unittest.cc(347)] 7-308885ABDE789E4C4856026C5770EC8D callback OnFrameCreated
[11055:259:1111/141311.443636:INFO:frame_handler_unittest.cc(462)] 7-308885ABDE789E4C4856026C5770EC8D sent query OnFrameCreated
[11055:259:1111/141311.459653:INFO:frame_handler_unittest.cc(347)] 8-B663BB616E42A1316C793D465B387BB5 callback OnFrameCreated
[11055:259:1111/141311.459705:INFO:frame_handler_unittest.cc(462)] 8-B663BB616E42A1316C793D465B387BB5 sent query OnFrameCreated
Trying to load the allocator multiple times. This is *not* supported.
[11055:259:1111/141311.461926:INFO:frame_handler_unittest.cc(301)] 6-CA78329256DFBF28EAB6086F98A0FB84 recv query OnLoadStart (4 of 5)
[11055:259:1111/141311.461998:INFO:frame_handler_unittest.cc(724)] 6-CA78329256DFBF28EAB6086F98A0FB84 AllQueriesDelivered=0 {6-CA78329256DFBF28EAB6086F98A0FB84(expected=5 delivered=4) MAIN PENDING} AllFramesLoaded=0 {6-CA78329256DFBF28EAB6086F98A0FB84(OnFrameCreated=1 OnMainFrameChanged(initial_assigned)=1 OnAfterCreated=1 OnFrameAttached=1 OnMainFrameChanged(changed_assigned)=0 OnLoadStart=1 OnLoadEnd=0) MAIN PENDING}
[11055:40963:1111/141311.475987:WARNING:browser_info.cc(348)] Returning a speculative frame for [7,10]
Trying to load the allocator multiple times. This is *not* supported.
[11055:259:1111/141311.488950:INFO:frame_handler_unittest.cc(347)] 6-33CB9DCB7966FE9158A3B1C839E256A4 callback OnFrameAttached
[11055:259:1111/141311.489006:INFO:frame_handler_unittest.cc(462)] 6-33CB9DCB7966FE9158A3B1C839E256A4 sent query OnFrameAttached
[11055:259:1111/141311.490651:INFO:frame_handler_unittest.cc(347)] 6-4D5185CB2D455A2EAAA5B5F96A848412 callback OnFrameAttached
[11055:259:1111/141311.490678:INFO:frame_handler_unittest.cc(462)] 6-4D5185CB2D455A2EAAA5B5F96A848412 sent query OnFrameAttached
[11055:259:1111/141311.505545:WARNING:browser_info.cc(348)] Returning a speculative frame for [7,10]
[11055:259:1111/141311.506688:WARNING:browser_info.cc(348)] Returning a speculative frame for [7,10]
[11055:259:1111/141311.507084:WARNING:browser_info.cc(348)] Returning a speculative frame for [7,10]
[11055:259:1111/141311.507478:WARNING:browser_info.cc(348)] Returning a speculative frame for [7,10]
[11055:259:1111/141311.515841:INFO:frame_handler_unittest.cc(347)] 7-308885ABDE789E4C4856026C5770EC8D callback OnFrameAttached
[11055:259:1111/141311.515889:INFO:frame_handler_unittest.cc(462)] 7-308885ABDE789E4C4856026C5770EC8D sent query OnFrameAttached
[11055:259:1111/141311.527818:WARNING:browser_info.cc(348)] Returning a speculative frame for [8,6]
[11055:259:1111/141311.528905:WARNING:browser_info.cc(348)] Returning a speculative frame for [8,6]
[11055:259:1111/141311.529298:WARNING:browser_info.cc(348)] Returning a speculative frame for [8,6]
[11055:259:1111/141311.529681:WARNING:browser_info.cc(348)] Returning a speculative frame for [8,6]
[11068:259:1111/141311.546747:WARNING:frame_impl.cc(442)] SendJavaScript sent to detached frame 6-33CB9DCB7966FE9158A3B1C839E256A4 will be ignored
[11068:259:1111/141311.546823:WARNING:frame_impl.cc(442)] SendJavaScript sent to detached frame 6-33CB9DCB7966FE9158A3B1C839E256A4 will be ignored
[11055:259:1111/141311.548962:INFO:frame_handler_unittest.cc(347)] 7-308885ABDE789E4C4856026C5770EC8D callback OnLoadStart
[11055:259:1111/141311.549016:INFO:frame_handler_unittest.cc(462)] 7-308885ABDE789E4C4856026C5770EC8D sent query OnLoadStart
[11055:259:1111/141311.552943:INFO:frame_handler_unittest.cc(301)] 7-308885ABDE789E4C4856026C5770EC8D recv query OnFrameCreated (1 of 4)
[11055:259:1111/141311.553564:INFO:CONSOLE(1)] "7-308885ABDE789E4C4856026C5770EC8D exec query OnFrameCreated", source:  (1)
[11055:259:1111/141311.554068:INFO:CONSOLE(1)] "7-308885ABDE789E4C4856026C5770EC8D exec query OnFrameAttached", source:  (1)
[11055:259:1111/141311.565843:INFO:frame_handler_unittest.cc(347)] 6-33CB9DCB7966FE9158A3B1C839E256A4 callback OnFrameDetached
[11055:259:1111/141311.570454:INFO:frame_handler_unittest.cc(301)] 7-308885ABDE789E4C4856026C5770EC8D recv query OnFrameAttached (2 of 4)
[11055:40963:1111/141311.571042:WARNING:browser_info.cc(348)] Returning a speculative frame for [8,6]
[11055:259:1111/141311.573522:INFO:frame_handler_unittest.cc(347)] 7-308885ABDE789E4C4856026C5770EC8D callback OnLoadEnd
[11055:259:1111/141311.573576:INFO:frame_handler_unittest.cc(462)] 7-308885ABDE789E4C4856026C5770EC8D sent query OnLoadEnd
[11055:259:1111/141311.579328:INFO:CONSOLE(1)] "7-308885ABDE789E4C4856026C5770EC8D exec query OnLoadStart", source: https://tests-frame-handler0-sub1/sub-cross-origin.html (1)
[11055:259:1111/141311.583201:INFO:frame_handler_unittest.cc(301)] 7-308885ABDE789E4C4856026C5770EC8D recv query OnLoadStart (3 of 4)
[11055:259:1111/141311.591403:INFO:CONSOLE(1)] "7-308885ABDE789E4C4856026C5770EC8D exec query OnLoadEnd", source: https://tests-frame-handler0-sub1/sub-cross-origin.html (1)
[11068:259:1111/141311.599042:WARNING:frame_impl.cc(442)] SendJavaScript sent to detached frame 6-4D5185CB2D455A2EAAA5B5F96A848412 will be ignored
[11068:259:1111/141311.599109:WARNING:frame_impl.cc(442)] SendJavaScript sent to detached frame 6-4D5185CB2D455A2EAAA5B5F96A848412 will be ignored
[11055:259:1111/141311.600772:INFO:frame_handler_unittest.cc(347)] 8-B663BB616E42A1316C793D465B387BB5 callback OnLoadStart
../../cef/tests/ceftests/frame_handler_unittest.cc:395: Failure
Value of: got_callback_[i]
  Actual: false
Expected: true
inside OnLoadStart should already have gotten OnFrameAttached
[11055:259:1111/141312.096026:INFO:frame_handler_unittest.cc(462)] 8-B663BB616E42A1316C793D465B387BB5 sent query OnLoadStart
[11055:259:1111/141312.099027:INFO:frame_handler_unittest.cc(347)] 6-4D5185CB2D455A2EAAA5B5F96A848412 callback OnFrameDetached
[11055:259:1111/141312.102247:INFO:frame_handler_unittest.cc(301)] 7-308885ABDE789E4C4856026C5770EC8D recv query OnLoadEnd (4 of 4)
[11055:259:1111/141312.102314:INFO:frame_handler_unittest.cc(724)] 6-CA78329256DFBF28EAB6086F98A0FB84 AllQueriesDelivered=0 {6-CA78329256DFBF28EAB6086F98A0FB84(expected=5 delivered=4) MAIN PENDING} AllFramesLoaded=0 {6-CA78329256DFBF28EAB6086F98A0FB84(OnFrameCreated=1 OnMainFrameChanged(initial_assigned)=1 OnAfterCreated=1 OnFrameAttached=1 OnMainFrameChanged(changed_assigned)=0 OnLoadStart=1 OnLoadEnd=0) MAIN PENDING}
[11055:259:1111/141312.112369:INFO:frame_handler_unittest.cc(347)] 8-B663BB616E42A1316C793D465B387BB5 callback OnLoadEnd
../../cef/tests/ceftests/frame_handler_unittest.cc:395: Failure
Value of: got_callback_[i]
  Actual: false
Expected: true
inside OnLoadEnd should already have gotten OnFrameAttached
[11055:259:1111/141312.460309:INFO:frame_handler_unittest.cc(462)] 8-B663BB616E42A1316C793D465B387BB5 sent query OnLoadEnd
[11055:259:1111/141312.467914:INFO:frame_handler_unittest.cc(347)] 6-CA78329256DFBF28EAB6086F98A0FB84 callback OnLoadEnd
[11055:259:1111/141312.467958:INFO:frame_handler_unittest.cc(462)] 6-CA78329256DFBF28EAB6086F98A0FB84 sent query OnLoadEnd
[11055:259:1111/141312.468095:INFO:frame_handler_unittest.cc(724)] 6-CA78329256DFBF28EAB6086F98A0FB84 AllQueriesDelivered=0 {6-CA78329256DFBF28EAB6086F98A0FB84(expected=5 delivered=4) MAIN PENDING} AllFramesLoaded=1 {6-CA78329256DFBF28EAB6086F98A0FB84(OnFrameCreated=1 OnMainFrameChanged(initial_assigned)=1 OnAfterCreated=1 OnFrameAttached=1 OnMainFrameChanged(changed_assigned)=0 OnLoadStart=1 OnLoadEnd=1)7-308885ABDE789E4C4856026C5770EC8D(OnFrameCreated=1 OnMainFrameChanged(initial_assigned)=0 OnAfterCreated=0 OnFrameAttached=1 OnMainFrameChanged(changed_assigned)=0 OnLoadStart=1 OnLoadEnd=1)8-B663BB616E42A1316C793D465B387BB5(OnFrameCreated=1 OnMainFrameChanged(initial_assigned)=0 OnAfterCreated=0 OnFrameAttached=0 OnMainFrameChanged(changed_assigned)=0 OnLoadStart=1 OnLoadEnd=1)}
[11055:259:1111/141312.475482:INFO:CONSOLE(1)] "6-CA78329256DFBF28EAB6086F98A0FB84 exec query OnLoadEnd", source: https://tests-frame-handler0/cross-origin.html (1)
[11055:259:1111/141312.475648:INFO:frame_handler_unittest.cc(301)] 6-CA78329256DFBF28EAB6086F98A0FB84 recv query OnLoadEnd (5 of 5)
[11055:259:1111/141312.475745:INFO:frame_handler_unittest.cc(724)] 6-CA78329256DFBF28EAB6086F98A0FB84 AllQueriesDelivered=0 {6-CA78329256DFBF28EAB6086F98A0FB84(expected=5 delivered=5)6-33CB9DCB7966FE9158A3B1C839E256A4(expected=0 delivered=0)6-4D5185CB2D455A2EAAA5B5F96A848412(expected=0 delivered=0)7-308885ABDE789E4C4856026C5770EC8D(expected=4 delivered=4)8-B663BB616E42A1316C793D465B387BB5(expected=4 delivered=0) 8-B663BB616E42A1316C793D465B387BB5 PENDING SUBS PENDING} AllFramesLoaded=1 {6-CA78329256DFBF28EAB6086F98A0FB84(OnFrameCreated=1 OnMainFrameChanged(initial_assigned)=1 OnAfterCreated=1 OnFrameAttached=1 OnMainFrameChanged(changed_assigned)=0 OnLoadStart=1 OnLoadEnd=1)7-308885ABDE789E4C4856026C5770EC8D(OnFrameCreated=1 OnMainFrameChanged(initial_assigned)=0 OnAfterCreated=0 OnFrameAttached=1 OnMainFrameChanged(changed_assigned)=0 OnLoadStart=1 OnLoadEnd=1)8-B663BB616E42A1316C793D465B387BB5(OnFrameCreated=1 OnMainFrameChanged(initial_assigned)=0 OnAfterCreated=0 OnFrameAttached=0 OnMainFrameChanged(changed_assigned)=0 OnLoadStart=1 OnLoadEnd=1)}
[11055:259:1111/141312.617976:INFO:frame_handler_unittest.cc(347)] 8-B663BB616E42A1316C793D465B387BB5 callback OnFrameAttached
../../cef/tests/ceftests/frame_handler_unittest.cc:399: Failure
Value of: got_callback_[i]
  Actual: true
Expected: false
inside OnFrameAttached should not already have gotten OnLoadStart
../../cef/tests/ceftests/frame_handler_unittest.cc:399: Failure
Value of: got_callback_[i]
  Actual: true
Expected: false
inside OnFrameAttached should not already have gotten OnLoadEnd
[11055:259:1111/141313.762931:INFO:frame_handler_unittest.cc(462)] 8-B663BB616E42A1316C793D465B387BB5 sent query OnFrameAttached
[11055:259:1111/141313.765099:INFO:CONSOLE(1)] "8-B663BB616E42A1316C793D465B387BB5 exec query OnFrameCreated", source:  (1)
[11055:259:1111/141313.765549:INFO:CONSOLE(1)] "8-B663BB616E42A1316C793D465B387BB5 exec query OnLoadStart", source: https://tests-frame-handler0-sub2/sub-cross-origin.html (1)
[11055:259:1111/141313.765989:INFO:CONSOLE(1)] "8-B663BB616E42A1316C793D465B387BB5 exec query OnLoadEnd", source: https://tests-frame-handler0-sub2/sub-cross-origin.html (1)
[11055:259:1111/141313.767166:INFO:frame_handler_unittest.cc(301)] 8-B663BB616E42A1316C793D465B387BB5 recv query OnFrameCreated (1 of 4)
[11055:259:1111/141313.767353:INFO:frame_handler_unittest.cc(301)] 8-B663BB616E42A1316C793D465B387BB5 recv query OnLoadStart (2 of 4)
[11055:259:1111/141313.767523:INFO:frame_handler_unittest.cc(301)] 8-B663BB616E42A1316C793D465B387BB5 recv query OnLoadEnd (3 of 4)
[11055:259:1111/141313.768278:INFO:CONSOLE(1)] "8-B663BB616E42A1316C793D465B387BB5 exec query OnFrameAttached", source: https://tests-frame-handler0-sub2/sub-cross-origin.html (1)
[11055:259:1111/141313.769697:INFO:frame_handler_unittest.cc(301)] 8-B663BB616E42A1316C793D465B387BB5 recv query OnFrameAttached (4 of 4)
magreenblatt commented 1 week ago

The FrameHandlerTest.OrderMainPopupCrossOrigin test is failing on Linux for similar reasons:

./../cef/tests/ceftests/frame_handler_unittest.cc:401: Failure
Value of: got_callback_[i]
  Actual: false
Expected: true
inside OnMainFrameChanged should already have gotten OnFrameAttached

../../cef/tests/ceftests/frame_handler_unittest.cc:401: Failure
Value of: got_callback_[i]
  Actual: false
Expected: true
inside OnLoadStart should already have gotten OnFrameAttached

../../cef/tests/ceftests/frame_handler_unittest.cc:411: Failure
Value of: got_callback_[i]
  Actual: true
Expected: false
inside OnFrameAttached should not already have gotten OnMainFrameChanged(changed_assigned)

../../cef/tests/ceftests/frame_handler_unittest.cc:411: Failure
Value of: got_callback_[i]
  Actual: true
Expected: false
inside OnFrameAttached should not already have gotten OnLoadStart
magreenblatt commented 1 week ago

A raw_ptr leak on shutdown after running these tests:

[12453:259:1111/150815.584033:ERROR:partition_alloc_support.cc(600)] Detected dangling raw_ptr with id=0x0000010c19c21f78:
[DanglingSignature] base::debug::CollectStackTrace(base::span<void  No active task  void    No active task

The memory was freed at:
0   Chromium Embedded Framework         0x00000003cbdf4a30 base::debug::CollectStackTrace(base::span<void const*, 18446744073709551615ul, void const**>) + 84
1   Chromium Embedded Framework         0x00000003cbdc3e40 base::debug::StackTrace::StackTrace(unsigned long) + 156
2   Chromium Embedded Framework         0x00000003cbdc3ee8 base::debug::StackTrace::StackTrace(unsigned long) + 36
3   Chromium Embedded Framework         0x00000003cbe05664 base::allocator::(anonymous namespace)::DanglingRawPtrDetected(unsigned long) + 516
4   Chromium Embedded Framework         0x00000003b7038078 partition_alloc::internal::InSlotMetadata::CheckDanglingPointersOnFree(unsigned long long) + 108
5   Chromium Embedded Framework         0x00000003b7038670 partition_alloc::internal::InSlotMetadata::ReleaseFromAllocator() + 144
6   Chromium Embedded Framework         0x00000003b70361f8 partition_alloc::PartitionRoot::FreeNoHooksImmediate(void*, partition_alloc::internal::SlotSpanMetadata<(partition_alloc::internal::MetadataKind)1>*, unsigned long) + 712
7   Chromium Embedded Framework         0x00000003cbf0d0f0 void partition_alloc::PartitionRoot::FreeInline<(partition_alloc::internal::FreeFlags)2>(void*) + 396
8   Chromium Embedded Framework         0x00000003cbf271e8 allocator_shim::internal::PartitionAllocFunctionsInternal<(partition_alloc::internal::AllocFlags)16, (partition_alloc::internal::FreeFlags)2>::Free(void*, void*) + 180
9   Chromium Embedded Framework         0x00000003d10aac84 gwp_asan::internal::(anonymous namespace)::FreeFn(void*, void*) + 92
10  Chromium Embedded Framework         0x00000003d4c20668 sync_preferences::PrefServiceSyncable::~PrefServiceSyncable() + 36
11  Chromium Embedded Framework         0x00000003d2083f08 std::__Cr::default_delete<sync_preferences::PrefServiceSyncable>::operator()(sync_preferences::PrefServiceSyncable*) const + 52
12  Chromium Embedded Framework         0x00000003d2083ec4 std::__Cr::unique_ptr<sync_preferences::PrefServiceSyncable, std::__Cr::default_delete<sync_preferences::PrefServiceSyncable>>::reset(sync_preferences::PrefServiceSyncable*) + 68
13  Chromium Embedded Framework         0x00000003d2083e70 std::__Cr::unique_ptr<sync_preferences::PrefServiceSyncable, std::__Cr::default_delete<sync_preferences::PrefServiceSyncable>>::~unique_ptr() + 32
14  Chromium Embedded Framework         0x00000003d2080878 std::__Cr::unique_ptr<sync_preferences::PrefServiceSyncable, std::__Cr::default_delete<sync_preferences::PrefServiceSyncable>>::~unique_ptr() + 28
15  Chromium Embedded Framework         0x00000003d2096808 ProfileImpl::~ProfileImpl() + 940
16  Chromium Embedded Framework         0x00000003d2096afc ProfileImpl::~ProfileImpl() + 28
17  Chromium Embedded Framework         0x00000003d2096b28 ProfileImpl::~ProfileImpl() + 28
18  Chromium Embedded Framework         0x00000003d208e068 std::__Cr::default_delete<Profile>::operator()(Profile*) const + 52
19  Chromium Embedded Framework         0x00000003d2086f20 std::__Cr::unique_ptr<Profile, std::__Cr::default_delete<Profile>>::reset(Profile*) + 68
20  Chromium Embedded Framework         0x00000003d2086b70 ProfileDestroyer::DestroyOriginalProfileNow(std::__Cr::unique_ptr<Profile, std::__Cr::default_delete<Profile>>) + 520
21  Chromium Embedded Framework         0x00000003d2088708 OriginalProfileDestroyer::DoDestroyUnderlyingProfile() + 160
22  Chromium Embedded Framework         0x00000003d2085fec ProfileDestroyer::Timeout() + 168
23  Chromium Embedded Framework         0x00000003d20859c0 ProfileDestroyer::Start(std::__Cr::set<content::RenderProcessHost*, std::__Cr::less<content::RenderProcessHost*>, std::__Cr::allocator<content::RenderProcessHost*>> const&) + 288
24  Chromium Embedded Framework         0x00000003d2085328 ProfileDestroyer::DestroyOriginalProfileWhenAppropriateWithTimeout(std::__Cr::unique_ptr<Profile, std::__Cr::default_delete<Profile>>, base::TimeDelta) + 804
25  Chromium Embedded Framework         0x00000003d2084fd0 ProfileDestroyer::DestroyOriginalProfileWhenAppropriate(std::__Cr::unique_ptr<Profile, std::__Cr::default_delete<Profile>>) + 72
26  Chromium Embedded Framework         0x00000003d20ac9b4 ProfileManager::ProfileInfo::~ProfileInfo() + 316
27  Chromium Embedded Framework         0x00000003d20aca98 ProfileManager::ProfileInfo::~ProfileInfo() + 28
28  Chromium Embedded Framework         0x00000003d20c0d08 std::__Cr::default_delete<ProfileManager::ProfileInfo>::operator()(ProfileManager::ProfileInfo*) const + 44
29  Chromium Embedded Framework         0x00000003d20c0ccc std::__Cr::unique_ptr<ProfileManager::ProfileInfo, std::__Cr::default_delete<ProfileManager::ProfileInfo>>::reset(ProfileManager::ProfileInfo*) + 68
30  Chromium Embedded Framework         0x00000003d20c0c78 std::__Cr::unique_ptr<ProfileManager::ProfileInfo, std::__Cr::default_delete<ProfileManager::ProfileInfo>>::~unique_ptr() + 32
31  Chromium Embedded Framework         0x00000003d20acdbc std::__Cr::unique_ptr<ProfileManager::ProfileInfo, std::__Cr::default_delete<ProfileManager::ProfileInfo>>::~unique_ptr() + 28

Task trace:
No active task.
The dangling raw_ptr was released at:
0   Chromium Embedded Framework         0x00000003cbdf4a30 base::debug::CollectStackTrace(base::span<void const*, 18446744073709551615ul, void const**>) + 84
1   Chromium Embedded Framework         0x00000003cbdc3e40 base::debug::StackTrace::StackTrace(unsigned long) + 156
2   Chromium Embedded Framework         0x00000003cbdc3ee8 base::debug::StackTrace::StackTrace(unsigned long) + 36
3   Chromium Embedded Framework         0x00000003cbe058a4 void base::allocator::(anonymous namespace)::DanglingRawPtrReleased<(base::features::DanglingPtrMode)0, (base::features::DanglingPtrType)0>(unsigned long) + 80
4   Chromium Embedded Framework         0x00000003cbf04ccc base::internal::RawPtrBackupRefImpl<false, false>::ReleaseInternal(unsigned long) + 448
5   Chromium Embedded Framework         0x00000003beef3660 void base::internal::RawPtrBackupRefImpl<false, false>::ReleaseWrappedPtr<PrefService>(PrefService*) + 204
6   Chromium Embedded Framework         0x00000003bef17268 base::raw_ptr<PrefService, (partition_alloc::internal::RawPtrTraits)0>::operator=(std::nullptr_t) + 36
7   Chromium Embedded Framework         0x00000003d64acd30 password_manager::StoreMetricsReporter::~StoreMetricsReporter() + 52
8   Chromium Embedded Framework         0x00000003d64acdf0 password_manager::StoreMetricsReporter::~StoreMetricsReporter() + 28
9   Chromium Embedded Framework         0x00000003d64ace1c password_manager::StoreMetricsReporter::~StoreMetricsReporter() + 28
10  Chromium Embedded Framework         0x00000003d1e34018 std::__Cr::default_delete<password_manager::StoreMetricsReporter>::operator()(password_manager::StoreMetricsReporter*) const + 52
11  Chromium Embedded Framework         0x00000003d1e33f9c std::__Cr::unique_ptr<password_manager::StoreMetricsReporter, std::__Cr::default_delete<password_manager::StoreMetricsReporter>>::reset(password_manager::StoreMetricsReporter*) + 68
12  Chromium Embedded Framework         0x00000003d1e34048 std::__Cr::unique_ptr<password_manager::StoreMetricsReporter, std::__Cr::default_delete<password_manager::StoreMetricsReporter>>::~unique_ptr() + 32
13  Chromium Embedded Framework         0x00000003d1e33ef4 std::__Cr::unique_ptr<password_manager::StoreMetricsReporter, std::__Cr::default_delete<password_manager::StoreMetricsReporter>>::~unique_ptr() + 28
14  Chromium Embedded Framework         0x00000003d1e341e4 (anonymous namespace)::StoreMetricReporterHelper::~StoreMetricReporterHelper() + 60
15  Chromium Embedded Framework         0x00000003d1e33220 (anonymous namespace)::StoreMetricReporterHelper::~StoreMetricReporterHelper() + 28
16  Chromium Embedded Framework         0x00000003d1e3324c (anonymous namespace)::StoreMetricReporterHelper::~StoreMetricReporterHelper() + 28
17  Chromium Embedded Framework         0x00000003c0a2de70 std::__Cr::default_delete<base::SupportsUserData::Data>::operator()(base::SupportsUserData::Data*) const + 52
18  Chromium Embedded Framework         0x00000003c0a2de2c std::__Cr::unique_ptr<base::SupportsUserData::Data, std::__Cr::default_delete<base::SupportsUserData::Data>>::reset(base::SupportsUserData::Data*) + 68
19  Chromium Embedded Framework         0x00000003c0a2ddd8 std::__Cr::unique_ptr<base::SupportsUserData::Data, std::__Cr::default_delete<base::SupportsUserData::Data>>::~unique_ptr() + 32
20  Chromium Embedded Framework         0x00000003c0a2dd0c std::__Cr::unique_ptr<base::SupportsUserData::Data, std::__Cr::default_delete<base::SupportsUserData::Data>>::~unique_ptr() + 28
21  Chromium Embedded Framework         0x00000003cbc4d30c std::__Cr::pair<void const*, std::__Cr::unique_ptr<base::SupportsUserData::Data, std::__Cr::default_delete<base::SupportsUserData::Data>>>::~pair() + 32
22  Chromium Embedded Framework         0x00000003cbc4d2dc std::__Cr::pair<void const*, std::__Cr::unique_ptr<base::SupportsUserData::Data, std::__Cr::default_delete<base::SupportsUserData::Data>>>::~pair() + 28
23  Chromium Embedded Framework         0x00000003cbc4d2b4 void std::__Cr::__destroy_at<std::__Cr::pair<void const*, std::__Cr::unique_ptr<base::SupportsUserData::Data, std::__Cr::default_delete<base::SupportsUserData::Data>>>, 0>(std::__Cr::pair<void const*, std::__Cr::unique_ptr<base::SupportsUserData::Data, std::__Cr::default_delete<base::SupportsUserData::Data>>>*) + 68
24  Chromium Embedded Framework         0x00000003cbc4d254 void std::__Cr::allocator_traits<std::__Cr::allocator<std::__Cr::pair<void const* const, std::__Cr::unique_ptr<base::SupportsUserData::Data, std::__Cr::default_delete<base::SupportsUserData::Data>>>>>::destroy<std::__Cr::pair<void const*, std::__Cr::unique_ptr<base::SupportsUserData::Data, std::__Cr::default_delete<base::SupportsUserData::Data>>>, void, 0>(std::__Cr::allocator<std::__Cr::pair<void const* const, std::__Cr::unique_ptr<base::SupportsUserData::Data, std::__Cr::default_delete<base::SupportsUserData::Data>>>>&, std::__Cr::pair<void const*, std::__Cr::unique_ptr<base::SupportsUserData::Data, std::__Cr::default_delete<base::SupportsUserData::Data>>>*) + 28
25  Chromium Embedded Framework         0x00000003cbc4d228 auto absl::container_internal::map_slot_policy<void const*, std::__Cr::unique_ptr<base::SupportsUserData::Data, std::__Cr::default_delete<base::SupportsUserData::Data>>>::destroy<std::__Cr::allocator<std::__Cr::pair<void const* const, std::__Cr::unique_ptr<base::SupportsUserData::Data, std::__Cr::default_delete<base::SupportsUserData::Data>>>>>(std::__Cr::allocator<std::__Cr::pair<void const* const, std::__Cr::unique_ptr<base::SupportsUserData::Data, std::__Cr::default_delete<base::SupportsUserData::Data>>>>*, absl::container_internal::map_slot_type<void const*, std::__Cr::unique_ptr<base::SupportsUserData::Data, std::__Cr::default_delete<base::SupportsUserData::Data>>>*) + 32
26  Chromium Embedded Framework         0x00000003cbc4d1fc auto absl::container_internal::FlatHashMapPolicy<void const*, std::__Cr::unique_ptr<base::SupportsUserData::Data, std::__Cr::default_delete<base::SupportsUserData::Data>>>::destroy<std::__Cr::allocator<std::__Cr::pair<void const* const, std::__Cr::unique_ptr<base::SupportsUserData::Data, std::__Cr::default_delete<base::SupportsUserData::Data>>>>>(std::__Cr::allocator<std::__Cr::pair<void const* const, std::__Cr::unique_ptr<base::SupportsUserData::Data, std::__Cr::default_delete<base::SupportsUserData::Data>>>>*, absl::container_internal::map_slot_type<void const*, std::__Cr::unique_ptr<base::SupportsUserData::Data, std::__Cr::default_delete<base::SupportsUserData::Data>>>*) + 32
27  Chromium Embedded Framework         0x00000003cbc4d1ac auto absl::container_internal::common_policy_traits<absl::container_internal::FlatHashMapPolicy<void const*, std::__Cr::unique_ptr<base::SupportsUserData::Data, std::__Cr::default_delete<base::SupportsUserData::Data>>>, void>::destroy<std::__Cr::allocator<std::__Cr::pair<void const* const, std::__Cr::unique_ptr<base::SupportsUserData::Data, std::__Cr::default_delete<base::SupportsUserData::Data>>>>>(std::__Cr::allocator<std::__Cr::pair<void const* const, std::__Cr::unique_ptr<base::SupportsUserData::Data, std::__Cr::default_delete<base::SupportsUserData::Data>>>>*, absl::container_internal::map_slot_type<void const*, std::__Cr::unique_ptr<base::SupportsUserData::Data, std::__Cr::default_delete<base::SupportsUserData::Data>>>*) + 32
28  Chromium Embedded Framework         0x00000003cbc4d180 absl::container_internal::raw_hash_set<absl::container_internal::FlatHashMapPolicy<void const*, std::__Cr::unique_ptr<base::SupportsUserData::Data, std::__Cr::default_delete<base::SupportsUserData::Data>>>, absl::container_internal::HashEq<void const*, void>::Hash, absl::container_internal::HashEq<void const*, void>::Eq, std::__Cr::allocator<std::__Cr::pair<void const* const, std::__Cr::unique_ptr<base::SupportsUserData::Data, std::__Cr::default_delete<base::SupportsUserData::Data>>>>>::destroy(absl::container_internal::map_slot_type<void const*, std::__Cr::unique_ptr<base::SupportsUserData::Data, std::__Cr::default_delete<base::SupportsUserData::Data>>>*)::'lambda'()::operator()() const + 48
29  Chromium Embedded Framework         0x00000003cbc4d118 void absl::container_internal::CommonFields::RunWithReentrancyGuard<absl::container_internal::raw_hash_set<absl::container_internal::FlatHashMapPolicy<void const*, std::__Cr::unique_ptr<base::SupportsUserData::Data, std::__Cr::default_delete<base::SupportsUserData::Data>>>, absl::container_internal::HashEq<void const*, void>::Hash, absl::container_internal::HashEq<void const*, void>::Eq, std::__Cr::allocator<std::__Cr::pair<void const* const, std::__Cr::unique_ptr<base::SupportsUserData::Data, std::__Cr::default_delete<base::SupportsUserData::Data>>>>>::destroy(absl::container_internal::map_slot_type<void const*, std::__Cr::unique_ptr<base::SupportsUserData::Data, std::__Cr::default_delete<base::SupportsUserData::Data>>>*)::'lambda'()>(absl::container_internal::raw_hash_set<absl::container_internal::FlatHashMapPolicy<void const*, std::__Cr::unique_ptr<base::SupportsUserData::Data, std::__Cr::default_delete<base::SupportsUserData::Data>>>, absl::container_internal::HashEq<void const*, void>::Hash, absl::container_internal::HashEq<void const*, void>::Eq, std::__Cr::allocator<std::__Cr::pair<void const* const, std::__Cr::unique_ptr<base::SupportsUserData::Data, std::__Cr::default_delete<base::SupportsUserData::Data>>>>>::destroy(absl::container_internal::map_slot_type<void const*, std::__Cr::unique_ptr<base::SupportsUserData::Data, std::__Cr::default_delete<base::SupportsUserData::Data>>>*)::'lambda'()) + 88
30  Chromium Embedded Framework         0x00000003cbc4ca40 absl::container_internal::raw_hash_set<absl::container_internal::FlatHashMapPolicy<void const*, std::__Cr::unique_ptr<base::SupportsUserData::Data, std::__Cr::default_delete<base::SupportsUserData::Data>>>, absl::container_internal::HashEq<void const*, void>::Hash, absl::container_internal::HashEq<void const*, void>::Eq, std::__Cr::allocator<std::__Cr::pair<void const* const, std::__Cr::unique_ptr<base::SupportsUserData::Data, std::__Cr::default_delete<base::SupportsUserData::Data>>>>>::destroy(absl::container_internal::map_slot_type<void const*, std::__Cr::unique_ptr<base::SupportsUserData::Data, std::__Cr::default_delete<base::SupportsUserData::Data>>>*) + 84
31  Chromium Embedded Framework         0x00000003cbc4ce08 absl::container_internal::raw_hash_set<absl::container_internal::FlatHashMapPolicy<void const*, std::__Cr::unique_ptr<base::SupportsUserData::Data, std::__Cr::default_delete<base::SupportsUserData::Data>>>, absl::container_internal::HashEq<void const*, void>::Hash, absl::container_internal::HashEq<void const*, void>::Eq, std::__Cr::allocator<std::__Cr::pair<void const* const, std::__Cr::unique_ptr<base::SupportsUserData::Data, std::__Cr::default_delete<base::SupportsUserData::Data>>>>>::destroy_slots() + 828

Task trace:
No active task.