https://sourceware.org/bugzilla/show_bug.cgi?id=34754

--- Comment #1 from Simon Marchi <simark at simark dot ca> ---
Here's a repro, to run in the root of the elfutils build dir.

```
#!/bin/bash
debuginfod=$(realpath "$(dirname "$0")")/debuginfod/debuginfod
tmp=$(mktemp -d)
cd "$tmp"
printf 'int main (void) { return 0; }\n' > t.c
gcc -g -gdwarf-5 -gsplit-dwarf -Wl,--build-id t.c -o t
mkdir -p debug && objcopy --only-keep-debug t debug/t.debug
env -u DEBUGINFOD_URLS "$debuginfod" -d db.sqlite -p 8767 -F debug &
pid=$!
trap 'kill $pid; wait $pid 2>/dev/null; rm -rf "$tmp"' EXIT
sleep 3
bid=$(readelf -n t | sed -n 's/.*Build ID: *\([0-9a-f]*\).*/\1/p')
DEBUGINFOD_URLS=http://127.0.0.1:8767 DEBUGINFOD_CACHE_PATH=$PWD/cache \
        debuginfod-find source $bid $PWD/t.c
```

Without the fix, the source file is not found, with the fix, it is.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to