eteran / edb-debugger

edb is a cross-platform AArch32/x86/x86-64 debugger.
GNU General Public License v2.0
2.68k stars 322 forks source link

Arch Linux Failed to successfully load debugger core plugin #782

Closed qumusabel closed 3 years ago

qumusabel commented 3 years ago

Hello,

I've been trying to build edb on arch linux for a while now. At first there were issues with cmake not finding boost. In the end I was able to build it, but when I run it this message pops up:

Failed to successfully load the debugger core plugin. Please make sure it exists and that the plugin path is correctly configured.
This is normal if edb has not been previously run or the configuration file has been removed.

What I've tried:

eteran commented 3 years ago

OK, a few thoughts:

  1. have you by any chance installed edb in some other way? If so, it is recommended to still to one way
  2. If not... can you look in the edb-debugger/build/plugins and do an ls *.so to see if the plugins are found in there?
qumusabel commented 3 years ago
  1. I've tried multiple methods to install edb, first from AUR, then converting .deb to Arch package (almost worked, it was missing libcapstone). Finally I've tried building from the sources, and it worked besides the plugins issue. First time I did make && make install, this time I've built it to build/ and wiped all the files from previous make install attempt.
  2. This is what's in build/plugins https://pastebin.com/ZmnM633Z. No .so files
qumusabel commented 3 years ago

I ran make in build/plugins, and turns out they haven't been built yet, which is really strange. I expected them to be built with everything else...

eteran commented 3 years ago

They certainly should have been built with everything else. By default, then end up in the same directory as edb itself, which is build/

IdanBanani commented 3 years ago

Ubuntu, no .so files in plugins directory for me. image

I tried to follow exactly the install instructions.

maybe it's because edb was installed previously? (came built in) and needs to be removed first?

qumusabel commented 3 years ago

@IdanBanani try make in build/ or build/plugins

IdanBanani commented 3 years ago

@IdanBanani try make in build/ or build/plugins

Didn't work.

IdanBanani commented 3 years ago

image

eteran commented 3 years ago

@IdanBanani do you have .so files in the build directory? That's where the plugins should end up.

eteran commented 3 years ago

@qumusabel did you resolve the issue by pointing the settings at build/ since that's where the plugin .so files should be?

qumusabel commented 3 years ago

@qumusabel did you resolve the issue by pointing the settings at build/ since that's where the plugin .so files should be?

Yes, that's what I did after build.

eteran commented 3 years ago

Also, @IdanBanani ,

If there is a copy of edb install system wide, it is recommended to uninstall it to avoid any conflicts.

IdanBanani commented 3 years ago

Also, @IdanBanani ,

If there is a copy of edb install system wide, it is recommended to uninstall it to avoid any conflicts.

As suggested in the top of the page: This one solved it! "removing directory.plugin.path from ~/.config/codef00.com/edb.conf, as suggested in #623"


Starting edb version: 1.3.0
Please Report Bugs & Requests At: https://github.com/eteran/edb-debugger/issues
comparing versions: [4864] [4864]

[ Errors in terminal before that were like: "[load_plugins] Cannot load library /usr/lib/x86_64-linux-gnu/edb/libAnalyzer.so: (/usr/lib/x86_64-linux-gnu/edb/libAnalyzer.so: undefined symbol:"

+No idea how I could uninstall (through sudo apt-get remove edb/edb-debugger) ? or something like "make clean" command?

eteran commented 3 years ago

@IdanBanani you will need to remove it through the package manager.

eteran commented 3 years ago

@IdanBanani I am assuming based on "This one solved it!", that this is no longer an issue, so I'm closing this issue. Please re-open if this issue is not resolved.