Problem: IDA 64bit uses Python 32bit?

970 views
Skip to first unread message

Jun Koi

unread,
Sep 13, 2012, 1:29:31 AM9/13/12
to idap...@googlegroups.com
hi,

anybody observes this issue: IDA 6.3, 64bit (on Windows 64bit) loads
Python 2.7.2 32bit by default?
this 2.6.2 Python 32bit was downloaded and installed by IDA at
installation time, and it seems users cannot do anything in the
process.

actually, before installing IDA 6.3, i already installed Python 2.7.3
64bit, but it seems IDA just ignored, and went ahead downloading
Python 32bit 2.7.2 itself

so questions are:
- is it a bug? i suppose Python 64bit must be used, not 32bit.
- how to fix this problem?

thanks,
Jun

Elias Bachaalany

unread,
Sep 13, 2012, 2:05:07 AM9/13/12
to idap...@googlegroups.com
Hello Jun,

IDA is a 32bit process and thus will using 32bit python (and not 64bit
python). So this is not a bug.

Yes, ida 6.3's python plugin links to python27.dll .

HTH,
Elias
> --
> You received this message because you are subscribed to the Google Groups "idapython" group.
> To post to this group, send email to idap...@googlegroups.com.
> To unsubscribe from this group, send email to idapython+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/idapython?hl=en.
>

Jun Koi

unread,
Sep 13, 2012, 2:07:25 AM9/13/12
to idap...@googlegroups.com
On Thu, Sep 13, 2012 at 2:05 PM, Elias Bachaalany
<elias.ba...@gmail.com> wrote:
> Hello Jun,
>
> IDA is a 32bit process and thus will using 32bit python (and not 64bit
> python). So this is not a bug.
>
> Yes, ida 6.3's python plugin links to python27.dll .

ok, but then on 64bit binary, why SelStart() returns a 4 bytes value,
not 8 bytes? this is wrong, isnt it?

thanks,
J

Elias Bachaalany

unread,
Sep 13, 2012, 3:10:27 AM9/13/12
to idap...@googlegroups.com
Hi,

There seems to be a bug. It will be fixed soon, thanks!

Update your idc.py temporarily with:

def SelStart():
return Eval("SelStart()")

def SelEnd():
return Eval("SelEnd()")

Jun Koi

unread,
Sep 13, 2012, 3:21:04 AM9/13/12
to idap...@googlegroups.com
On Thu, Sep 13, 2012 at 3:10 PM, Elias Bachaalany
<elias.ba...@gmail.com> wrote:
> Hi,
>
> There seems to be a bug. It will be fixed soon, thanks!
>
> Update your idc.py temporarily with:
>
> def SelStart():
> return Eval("SelStart()")
>
> def SelEnd():
> return Eval("SelEnd()")

this fixes the problem, thanks!

Jun

Jun Koi

unread,
Sep 13, 2012, 5:26:43 AM9/13/12
to idap...@googlegroups.com
On Thu, Sep 13, 2012 at 2:05 PM, Elias Bachaalany
<elias.ba...@gmail.com> wrote:
> Hello Jun,
>
> IDA is a 32bit process and thus will using 32bit python (and not 64bit
> python). So this is not a bug.
>
> Yes, ida 6.3's python plugin links to python27.dll .
>

what IDA is doing is a bit annoying: Python 32bit is automatically
installed, and effectively users are forced to use 32bit Python.
for this reason, i cannot install Python 64bit (of the same 2.7
version) anymore.

meanwhile, the windows installer for Python 2.6 is nonexistent, and i
dont want Python 3.

any solution for this problem?

thanks,
J

nir izraeli

unread,
Sep 13, 2012, 5:29:46 AM9/13/12
to idap...@googlegroups.com

agree. 64 bit python support for IDA would be great

Johan Johansson

unread,
Sep 13, 2012, 5:43:56 AM9/13/12
to idap...@googlegroups.com, idap...@googlegroups.com
To repeat what Elias said: IDA 64 is a 32-bit program. Therefore it must use 32-bit python. You cannot load 64-bit python into a 32-bit process. You can of course install 64-bit python all you want. It will have exactly 0 interference with IDA.

Johan

Sent from  my iPhone

Jun Koi

unread,
Sep 13, 2012, 5:46:49 AM9/13/12
to idap...@googlegroups.com
On Thu, Sep 13, 2012 at 5:43 PM, Johan Johansson <johan...@gmail.com> wrote:
> To repeat what Elias said: IDA 64 is a 32-bit program. Therefore it must use
> 32-bit python. You cannot load 64-bit python into a 32-bit process. You can
> of course install 64-bit python all you want. It will have exactly 0
> interference with IDA.

i think we misunderstand each other here.

i mean because IDA installs Python 32bit into my machine, i cannot
install Python 64bit anymore.
so yes, there is interference for users who want to use other Python
for non-IDA stuff.

thanks,
Jun

Mario Vilas

unread,
Sep 13, 2012, 6:25:38 AM9/13/12
to idap...@googlegroups.com

Yes you can, just install it into another directory. :P

Johan Johansson

unread,
Sep 13, 2012, 6:32:22 AM9/13/12
to idap...@googlegroups.com, idap...@googlegroups.com
On Sep 13, 2012, at 11:46, Jun Koi <junko...@gmail.com> wrote:

> i mean because IDA installs Python 32bit into my machine, i cannot
> install Python 64bit anymore.

Steve Coleman

unread,
Sep 13, 2012, 6:45:19 AM9/13/12
to idap...@googlegroups.com

The "64 bit" ida is actually 32 bit, it just analyses 64 bit apps. Both require a 32 bit python runtime.

You can have both 32 and 64 bit python on the same system, no problem. You will need to make sure that any plugins link to the 32 bit libraries to run with 32 bit idapython.

Reply all
Reply to author
Forward
0 new messages