Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warnings in MacOS #8

Closed
danigargu opened this issue May 9, 2019 · 2 comments
Closed

Warnings in MacOS #8

danigargu opened this issue May 9, 2019 · 2 comments

Comments

@danigargu
Copy link

Hi,

A very useful plugin!
When i start IDA in MacOS, I receive the following "warnings":

dlopen(/Applications/IDA Pro 7.2/ida64.app/Contents/MacOS/plugins/ida_palette64.dylib): dlopen(/Applications/IDA Pro 7.2/ida64.app/Contents/MacOS/plugins/ida_palette64.dylib, 2): Symbol not found: _PyBaseObject_Type
  Referenced from: /Applications/IDA Pro 7.2/ida64.app/Contents/MacOS/plugins/ida_palette64.dylib
  Expected in: flat namespace
 in /Applications/IDA Pro 7.2/ida64.app/Contents/MacOS/plugins/ida_palette64.dylib
/Applications/IDA Pro 7.2/ida64.app/Contents/MacOS/plugins/ida_palette64.dylib: can't load file

But then the plugin works correctly.
Thanks!

@Jinmo
Copy link
Owner

Jinmo commented May 9, 2019

Hello, thanks for using the plugin! 👍

Just investigated the issue and found that it was because of the loading order:
ifred is loaded before IDAPython and relies on run-time linking (<self>) like pybind11 does.

image

Fortunately, IDA Pro scans and loads the plugins once again, but the warning still exists.

Maybe a separated python plugin (plugins/*.py) that loads ida_palette64.dylib and skips can be made (locally worked). I'll be likely choosing this way. If so, I'll attach a bootstrapper plugin from next release.

Or, statically linking ifred with libpython2.7.dylib, I must find out how IDAPython is linked. otool -L says that it uses /System/Library/Frameworks/Python.framework/Versions/2.7/Python in my mac, but I'm still not sure if it applies to all of IDA >=7.0 versions.

@Jinmo
Copy link
Owner

Jinmo commented May 14, 2019

This is fixed in bf63c2e by linking the plugin with IDAPython plugin.
Huge thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants