runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Unable to debug coreclr apps on Debian 8.2

Open caslan opened this issue 10 years ago • 3 comments

With the latest clrdbg bits and RC2 coreclr bits, debugging fails to start on Debian 8.2. CLR debugging services API returns CORDBG_E_UNSUPPORTED error on trying to attach the process.

The issue appears to be an invalid rpath setting in libmscordbi.so component.

  • If you do “ldd” on libmscordbi.so that is installed with the shared framework you can see it cannot find libmscordaccore.so
  • Running clrdbg under native debugger, I can see that we are picking up libmscordbi.so correctly (i.e. from shared framework) but we are picking up libmscordaccore.so next to us (clrdbg) instead of from next to libmscordbi.so. If I patch libmscordbi.so and add $ORIGIN to rpath, the issue goes away.

caslan avatar Apr 11 '16 08:04 caslan

@mikem8361 can you take a look into it please?

janvorli avatar Apr 11 '16 10:04 janvorli

It should be fixed now.

mikem8361 avatar Apr 12 '16 00:04 mikem8361

@mikem8361 will the fix be in rc2 drops of CoreClr? Debian support for dotnet CLI is something we want for rc2.

dleeapho avatar Apr 12 '16 15:04 dleeapho