Global media controls crashing with libstdc++

Skip to first unread message

Evangelos Foutras

Apr 7, 2022, 10:45:55 AM4/7/22
Chromium 100 enables kGlobalMediaControlsCastStartStop by default and it makes my libstdc++ build crash with a double free of some sort. The crash is reproducible by clicking on global media controls while a video is playing and then dismissing the dialog. I tried building with libstdc++ and ASan but it reports a violation while starting Chromium so that wasn't much help. A libc++ and ASan build did not report any issues while opening and closing the global media controls dialog.

I tested adding "cast_controller_->RemoveObserver(this)" to MediaItemUIDeviceSelectorView's destructor and it seemed to work, but I have no idea if it's the correct thing to do.

Perhaps someone more familiar with Chromium's code can spot the cause of this? I have attached a backtrace, though I'm not sure where the double free is originating.

Lei Zhang

Apr 7, 2022, 10:54:15 AM4/7/22
to Evangelos Foutras,
I would suggest filing a report on Then it can be more
easily routed to the folks who work on this feature.
> --
> You received this message because you are subscribed to the Google Groups "chromium-packagers" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> To view this discussion on the web visit

Evangelos Foutras

Apr 7, 2022, 11:42:06 AM4/7/22
to Lei Zhang,
Hi Lei, filed it as

(I was a bit hesitant to file it on crbug due to the non-standard configuration and no clear code bug, which is why I poked in here first.)
Reply all
Reply to author
0 new messages