Open psifertex opened 7 months ago
I cannot reproduce this. Any other info available?
Nope, it worked exactly as the customer reported when I tried it. I did it with Python 3.12 headlessly
I can reproduce this with the following script:
import binaryninja
print(f"Using binja version {binaryninja.__version__}")
binaryninja.set_worker_thread_count(1)
with binaryninja.load(r"C:\Windows\notepad.exe") as bv:
print(f"Opening {bv.file.filename} which has {len(list(bv.functions))} functions")
Things to note:
Update on this:
corePlugins.pdbImport
to false and then load the file, it works fine. If I load an .exe with no PDB symbol, it works fineThe dynamics of the hang is like:
Note, our binary view types are also using the SymbolQueue to handle the bulk addition of symbols. However, they do not cause a hang because in that case, the SymbolQueue itself runs on the main thread, and it can ask the only worker thread to do some job for it.
This is broken in 3.6.4689-dev
Newly introduced in 4.0, this behavior previously worked in 3.5 but now will cause the process to hang with 0% CPU utilization. Using any other value than
1
works fine.