Bug#930808: libc6: ${PLATFORM} is expanded as haswell instead of x86_64
Package: libc6
Version: 2.28-10
Severity: important
Dear Maintainer,
It seems ${PLATFORM} is wrongly expanded on x86_64 architectures with
libc6 2.28. This leads to troubles while referencing libraries.
This doesn't seem related to the usage of curly braces.
You can find the reproductions steps below:
$ arch
x86_64
$ strace -ELD_PRELOAD='/sss/$PLATFORM/dddd' -s300 /bin/cat
execve("/bin/cat", ["/bin/cat"], 0x5607e51d5490 /* 62 vars */) = 0
brk(NULL) = 0x560cc39d5000
readlink("/proc/self/exe", "/bin/cat", 4096) = 8
openat(AT_FDCWD, "/sss/haswell/dddd", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
$ strace -ELD_PRELOAD='/sss/${PLATFORM}/dddd' -s300 /bin/cat
execve("/bin/cat", ["/bin/cat"], 0x563dc5b51490 /* 62 vars */) = 0
brk(NULL) = 0x55f8d420d000
readlink("/proc/self/exe", "/bin/cat", 4096) = 8
openat(AT_FDCWD, "/sss/haswell/dddd", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
Feel free to ask me any additionnal information.
Best regards,
-- System Information:
Debian Release: 10.0
APT prefers testing
APT policy: (900, 'testing'), (1, 'experimental'), (1, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.19.0-5-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages libc6 depends on:
ii libgcc1 1:8.3.0-6
Versions of packages libc6 recommends:
ii libidn2-0 2.0.5-1
Versions of packages libc6 suggests:
ii debconf [debconf-2.0] 1.5.71
pn glibc-doc <none>
ii libc-l10n 2.28-10
ii locales 2.28-10
-- debconf information:
glibc/disable-screensaver:
glibc/kernel-too-old:
glibc/restart-failed:
glibc/upgrade: true
* libraries/restart-without-asking: false
glibc/kernel-not-supported:
* glibc/restart-services: cups cron
Reply to: