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.

Uninitialized `CRITICAL_SECTION` dereferenced by `_ida_idp.pyd` from IDA 7.7 when interacting with a database or using certain hooks from `IDP_Hooks` and `UI_Hooks`.

See original GitHub issue

Using IDA Pro 7.7 SP1 and Python 3.9.10 on Windows. Happens on both x86 and x86-64 databases.

Used idapyswitch in IDA’s root folder to use the version of Python I installed myself rather than the one bundled with IDA. I’ve installed using the instructions in README - cloned the repository into %user%\AppData\Roaming\Hex-Rays\IDA Pro, ran pip install -r 'requirements.txt' and it’s loaded. However IDA’s output window says;

WARNING:root:No .idapythonrc.py file found in the user’s home directory (C:\Users\my_name).

(which isn’t even the full path to my home directory according to print(idaapi.get_user_idadir()))

The output window also greets me for using ida-minsc. Invoking database.config.version() as stated in the README returns an unexpected 0x302 when a database is not loaded, rather the expected 0 even though 770 would make sense when one is loaded.

image

Then IDA crashes as soon as any database is loaded.

image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:21 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
arizvisacommented, Feb 12, 2022

@shavitush, can you try out PR #153 and let me know if that fixes it properly for you? it removes the blacklist and turns all hooks to be on demand. It still lets you enumerate them, however, if you want to see what hooks are called when doing something with IDA.

To checkout the PR, I think you can do something like the following to test it out.

$ git fetch origin pull/153/head:PR-153`
$ git checkout PR-153

Afterwards, you can do git checkout master to go back to the main branch.

0reactions
arizvisacommented, Feb 15, 2022

Please do another git-pull to re-sync so that you’re on commit 0821648403a60fd7b720367f783220d8cdba178b. Found another bug. I’m not sure if it’s on 7.7, but it definitely occurs on 7.1.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Igor's Tip of the Week #116: IDA startup files - Hex Rays
This file in idc subdirectory if IDA's install is automatically loaded on each run of IDA and can be used to perform any...
Read more >
onethawt/idaplugins-list: A list of IDA Plugins - GitHub
Finds paths to a given code block inside a function; Finds paths between two or more functions; Generates interactive call graphs; Fully scriptable....
Read more >
The IDA Pro Book The Unofficial Guide to the World ... - Index of /
using IDA Pro to the seasoned veteran.” —DUSTIN D. TRAMMELL, SECURITY RESEARCHER. “This book does definitely get a strong buy recommendation from me....
Read more >
Next Gen Collaborative Reversing with Ida Pro and CollabREate
A major drawback with the use of most reverse engineering tools is that they were not designed with collaboration in mind. Numerous kludgy...
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

No results found

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