Exetools

Exetools (https://forum.exetools.com/index.php)
-   General Discussion (https://forum.exetools.com/forumdisplay.php?f=2)
-   -   IDA Pro error 1491, any fix? (https://forum.exetools.com/showthread.php?t=19452)

jonwil 03-04-2020 14:46

IDA Pro error 1491, any fix?
 
I am running IDA Pro 7.0.170914 along with HexRays x86 7.0.0.170914
I am running a fully up-to-date version of Windows 10.
When I try to run a program in IDA (or attach to an existing program) using the "local window debugger" debugger option, IDA crashes with an "error 1491". Is there a fix (other than spending thousands of dollars on the latest IDA version?)

WhoCares 03-04-2020 22:56

use remote debugging instead of local debugging to bypass this bug.

chants 03-05-2020 02:49

Is this bug fixed in a later 7.x version?

computerline 03-05-2020 10:14

Quote:

Originally Posted by jonwil (Post 119482)
I am running IDA Pro 7.0.170914 along with HexRays x86 7.0.0.170914
I am running a fully up-to-date version of Windows 10.
When I try to run a program in IDA (or attach to an existing program) using the "local window debugger" debugger option, IDA crashes with an "error 1491". Is there a fix (other than spending thousands of dollars on the latest IDA version?)

This bug cause by win32_user.dll when use IDA 7.0 with Windows build > 16xxx, as it build with asset from sdk, just comment out the assert and rebuild win32_user.dll (QASSERT(1491, size() < 2);) or patch to nopout the check in binary file.

Code:

// winbase_debmod.cpp
// Line 388
// ......
bool ntdll_vec_t::add(eanat_t addr, size_t sz, HANDLE h)
{
  if ( has(addr) )
    return false;

  // max number of ntdlls: ntdll32.dll and ntdll.dll
  //QASSERT(1491, size() < 2);
  ntdll_range_t &r = push_back();
  r.start = addr;
  r.end = addr + sz;
  r.handle = h;
  return true;
}

Fix binary file
https://mega.nz/#!xdcnyQZK!MzO9dQqPZ...DKx5ONkcNGD1ZU

The newer version doen't got this problem.

jonwil 03-05-2020 17:10

Thanks for the info, I didn't know the relavent code was included in the IDA SDK.
Also thanks for the fixed binaries, means I dont need to figure out where I put my copy of the right IDA SDK (and figure out how to properly rebuild the files)


All times are GMT +8. The time now is 17:12.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX