question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Profiler] Error relocating /opt/datadog/continuousprofiler/Datadog.Linux.ApiWrapper.x64.so

See original GitHub issue

On a M1 Pro Macbook in docker with mcr.microsoft.com/dotnet/aspnet:6.0.9-alpine3.16 as a base image.

If LD_PRELOAD=/opt/datadog/continuousprofiler/Datadog.Linux.ApiWrapper.x64.so is set, attempting to do anything with the container results in:

Error relocating /opt/datadog/continuousprofiler/Datadog.Linux.ApiWrapper.x64.so: unsupported relocation type 7
Error relocating /opt/datadog/continuousprofiler/Datadog.Linux.ApiWrapper.x64.so: unsupported relocation type 7
Error relocating /opt/datadog/continuousprofiler/Datadog.Linux.ApiWrapper.x64.so: unsupported relocation type 7
Error relocating /opt/datadog/continuousprofiler/Datadog.Linux.ApiWrapper.x64.so: unsupported relocation type 7
Error relocating /opt/datadog/continuousprofiler/Datadog.Linux.ApiWrapper.x64.so: unsupported relocation type 8
Error relocating /opt/datadog/continuousprofiler/Datadog.Linux.ApiWrapper.x64.so: unsupported relocation type 6
Error relocating /opt/datadog/continuousprofiler/Datadog.Linux.ApiWrapper.x64.so: unsupported relocation type 6
Error relocating /opt/datadog/continuousprofiler/Datadog.Linux.ApiWrapper.x64.so: unsupported relocation type 6
Error relocating /opt/datadog/continuousprofiler/Datadog.Linux.ApiWrapper.x64.so: unsupported relocation type 6
Error relocating /opt/datadog/continuousprofiler/Datadog.Linux.ApiWrapper.x64.so: unsupported relocation type 6

Runtime environment:

  • Tracer version: 2.14.0 (musl)
  • OS: Host MacOS 12.5.1 / Container alpine3.16 arm64
  • Docker engine: 20.10.17

Workaround is to conditionally set LD_PRELOAD.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:6

github_iconTop GitHub Comments

4reactions
seanamoscommented, Jun 14, 2023

@gleocadie Any progress on this? While this wasn’t a big deal 6 months ago, its becoming more urgent for us.

3reactions
gleocadiecommented, Sep 21, 2022

Hi @seanamos I see. I’ll do some testing, but I think we miss an artifact Alpine/ARM64 that would explain why it’s not working for you. I’ll get back to you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

YourKit Java Profiler and .NET Profiler Forums
I'm running a docker container based on gliderlabs/alpine:3.3, which then has a JVM app that I'd like to connect yourkit up to.
Read more >
Need steps for alpine container profiling
Hi, I am trying to profile the dotnet core application deployed to aspnet:3.1-alpine3.13 image container with https://www.yourkit.com/dotnet/download .
Read more >
Error relocating /usr/src/api/node_modules/sqlite3/lib ...
I managed to find the version that has the same source code but it works fine. So I try to solve the problem...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found