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

DebugSymbol.getFunctionByName aborting on linux #921

Open
bannsec opened this issue Jun 12, 2019 · 1 comment

Comments

@bannsec
Copy link

commented Jun 12, 2019

DebugSymbol.getFunctionByName appears to be working on Windows, however it does not appear to be working on Linux.

frida ./test2
     ____
    / _  |   Frida 12.6.5 - A world-class dynamic instrumentation toolkit
   | (_| |
    > _  |   Commands:
   /_/ |_|       help      -> Displays the help system
   . . . .       object?   -> Display information about 'object'
   . . . .       exit/quit -> Exit
   . . . .
   . . . .   More info at http://www.frida.re/docs/home/
Spawned `./test2`. Use %resume to let the main thread start executing!
[Local::test2]-> DebugSymbol.getFunctionByName('func2')

Now abort() in libdwarf. No error argument or handler available.
Process terminated

In the above example, test2 has a simple function named func2 which should be resolvable.

Similarly:

frida ./test2
     ____
    / _  |   Frida 12.6.5 - A world-class dynamic instrumentation toolkit
   | (_| |
    > _  |   Commands:
   /_/ |_|       help      -> Displays the help system
   . . . .       object?   -> Display information about 'object'
   . . . .       exit/quit -> Exit
   . . . .
   . . . .   More info at http://www.frida.re/docs/home/
Spawned `./test2`. Use %resume to let the main thread start executing!
[Local::test2]-> DebugSymbol.getFunctionByName('printf')

Now abort() in libdwarf. No error argument or handler available.
Process terminated

I tried installing the libdwarf libraries for Ubuntu but it didn't help.

@bannsec

This comment has been minimized.

Copy link
Author

commented Jul 20, 2019

Confirming that this bug is still present in 12.6.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.