Comment 6 for bug 1808508

Revision history for this message
Steve Langasek (vorlon) wrote :

This is related to the usrmerge transition. On a freshly debootstrapped disco environment, /lib is a symlink to /usr/lib, which means the canonical path for the debug symbols as looked for by valgrind is /usr/lib/debug/usr/lib/x86_64-linux-gnu/ld-2.28.so which does not exist; only /usr/lib/debug/lib/x86_64-linux-gnu/ld-2.28.so exists and is not found.

Since we do not enforce the usrmerge transition on upgrade to disco, we need to ensure the system can compatibly resolve debug symbols on disco whether or not usrmerge is in effect.

And this problem does not exclusively affect valgrind; other consumers of debug symbols, such as gdb, will also be affected.

So I think the only correct solution here, if we are going to move forward w/ usrmerge by default for disco, is for something (e.g. base-files) to enforce on upgrade that /usr/lib/debug/{lib,bin,sbin} become symlinks to /usr/lib/debug/usr/foo, even if we don't do the usrmerge migration for / itself.