question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Debug] AssertBlockingAllowed fails while analyzing a downloaded file

See original GitHub issue

Repro steps (only on debug builds) :

  1. Open Brave Browser
  2. Navigate to https://github.com/brave/brave-browser/releases/download/v0.59.21/Brave-Browser-Beta.dmg and click save
  3. Wait for the download to finish.
[48500:775:0109/162725.077743:FATAL:thread_restrictions.cc(34)] Check failed: !g_blocking_disallowed.Get().Get(). Function marked as blocking was called from a scope that disallows blocking! If this task is running inside the TaskScheduler, it needs to have MayBlock() in its TaskTraits. Otherwise, consider making this blocking work asynchronous or, as a last resort, you may use ScopedAllowBlocking (see its documentation for best practices).
0   libbase.dylib                       0x000000010fe34cf3 base::debug::StackTrace::StackTrace(unsigned long) + 83
1   libbase.dylib                       0x000000010fe34dad base::debug::StackTrace::StackTrace(unsigned long) + 29
2   libbase.dylib                       0x000000010fb220fa base::debug::StackTrace::StackTrace() + 26
3   libbase.dylib                       0x000000010fb69aae logging::LogMessage::~LogMessage() + 142
4   libbase.dylib                       0x000000010fb688a5 logging::LogMessage::~LogMessage() + 21
5   libbase.dylib                       0x000000010fd8ebec base::internal::AssertBlockingAllowed() + 188
6   libbase.dylib                       0x000000010fd7736d base::ScopedBlockingCall::ScopedBlockingCall(base::BlockingType) + 237
7   libbase.dylib                       0x000000010fd7762b base::ScopedBlockingCall::ScopedBlockingCall(base::BlockingType) + 27
8   libbase.dylib                       0x000000010fe423b8 base::File::DoInitialize(base::FilePath const&, unsigned int) + 72
9   libbase.dylib                       0x000000010fb364a7 base::File::Initialize(base::FilePath const&, unsigned int) + 199
10  libbase.dylib                       0x000000010fb363d6 base::File::File(base::FilePath const&, unsigned int) + 102
11  libbase.dylib                       0x000000010fb36503 base::File::File(base::FilePath const&, unsigned int) + 35
12  libchrome_dll.dylib                 0x0000000120d002bf safe_browsing::FileAnalyzer::StartExtractDmgFeatures() + 303
13  libchrome_dll.dylib                 0x0000000120cffb67 safe_browsing::FileAnalyzer::Start(base::FilePath const&, base::FilePath const&, base::OnceCallback<void (safe_browsing::FileAnalyzer::Results)>) + 1559
14  libchrome_dll.dylib                 0x0000000120cd865b safe_browsing::CheckClientDownloadRequest::AnalyzeFile() + 1259
15  libchrome_dll.dylib                 0x0000000120cd643d safe_browsing::CheckClientDownloadRequest::OnUrlWhitelistCheckDone(bool) + 605
16  libchrome_dll.dylib                 0x0000000120cddedc void base::internal::FunctorTraits<void (safe_browsing::CheckClientDownloadRequest::*)(bool), void>::Invoke<void (safe_browsing::CheckClientDownloadRequest::*)(bool), base::WeakPtr<safe_browsing::CheckClientDownloadRequest>, bool>(void (safe_browsing::CheckClientDownloadRequest::*)(bool), base::WeakPtr<safe_browsing::CheckClientDownloadRequest>&&, bool&&) + 156
17  libchrome_dll.dylib                 0x0000000120cddd9f void base::internal::InvokeHelper<true, void>::MakeItSo<void (safe_browsing::CheckClientDownloadRequest::*)(bool), base::WeakPtr<safe_browsing::CheckClientDownloadRequest>, bool>(void (safe_browsing::CheckClientDownloadRequest::*&&)(bool), base::WeakPtr<safe_browsing::CheckClientDownloadRequest>&&, bool&&) + 127
18  libchrome_dll.dylib                 0x0000000120cddcf7 void base::internal::Invoker<base::internal::BindState<void (safe_browsing::CheckClientDownloadRequest::*)(bool), base::WeakPtr<safe_browsing::CheckClientDownloadRequest> >, void (bool)>::RunImpl<void (safe_browsing::CheckClientDownloadRequest::*)(bool), std::__1::tuple<base::WeakPtr<safe_browsing::CheckClientDownloadRequest> >, 0ul>(void (safe_browsing::CheckClientDownloadRequest::*&&)(bool), std::__1::tuple<base::WeakPtr<safe_browsing::CheckClientDownloadRequest> >&&, std::__1::integer_sequence<unsigned long, 0ul>, bool&&) + 87
19  libchrome_dll.dylib                 0x0000000120cddbeb base::internal::Invoker<base::internal::BindState<void (safe_browsing::CheckClientDownloadRequest::*)(bool), base::WeakPtr<safe_browsing::CheckClientDownloadRequest> >, void (bool)>::RunOnce(base::internal::BindStateBase*, bool) + 107
20  libchrome_dll.dylib                 0x000000011aa39eea base::OnceCallback<void (bool)>::Run(bool) && + 122
21  libchrome_dll.dylib                 0x000000011ba47233 void base::internal::ReplyAdapter<bool, bool>(base::OnceCallback<void (bool)>, std::__1::unique_ptr<bool, std::__1::default_delete<bool> >*) + 243```

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:17 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
jumdecommented, Jan 17, 2019

Ok cool, the upstream patch has been approved. It should be merged soon.

0reactions
bridivercommented, Jan 17, 2019

perfect, so should be in the next chromium bump. I’m going to close the issue as pending fix in upstream.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Analyze crash dump files by using WinDbg - Windows drivers
If your goal is to use the debugger to analyze a crash dump, see Crash dump analysis using the Windows debuggers (WinDbg). Download...
Read more >
DLL not downloading in WinDbg when analysing crash-dump ...
I have copied the crash-dump files onto my Windows 10 development machine, and am running WinDbg locally instead of on the server. The...
Read more >
Fix file download errors - Google Chrome Help
If you get an error message on Chrome when you try to download apps, themes, extensions, or other files, try these fixes. Fix...
Read more >
Debug & Analyze Dump Files in Visual Studio - YouTube
Not sure what to do when an unexpected crash occurs in your application? Try opening a memory dump file ! Join us in...
Read more >
When Things Go Wrong — PyInstaller 5.7.0 documentation
When the Analysis step runs, it produces error and warning messages. ... On each run PyInstaller writes a cross-referencing file about dependencies into...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found