[Bug 341532] Re: libc6-dbg has broken 32 bit symbols on x86_64
Rolf Leggewie
341532 at bugs.launchpad.net
Fri Nov 21 19:21:01 UTC 2014
Hardy has seen the end of its life and is no longer receiving any
updates. Marking the Hardy task for this ticket as "Won't Fix".
** Changed in: glibc (Ubuntu Hardy)
Status: New => Won't Fix
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to glibc in Ubuntu.
https://bugs.launchpad.net/bugs/341532
Title:
libc6-dbg has broken 32 bit symbols on x86_64
Status in “glibc” package in Ubuntu:
Fix Released
Status in “glibc” source package in Hardy:
Won't Fix
Status in “glibc” source package in Intrepid:
Invalid
Bug description:
Binary package hint: libc6-dbg
On Ubuntu 8.10, gdb and valgrind cannot show line numbers and
filenames for functions in glibc for 32 bit programs on 64 bit systems,
even if libc6-dbg is installed.
You can see this by setting a breakpoint on some function
in glibc, running, and then getting a backtrace.
Here's a script I wrote to demonstrate the problem. It assumes
you have valgrind and libc6-dbg installed. (You don't need
valgrind to be affected by the problem, but that's where I
ran into it first.) On a good system, it outputs
"Worked! No bug found".
---- snip ----
#!/bin/sh
set -e
set -x
case `uname -m` in
x86_64) ;;
*) echo "This test is for x86_64 machines"; exit 1;;
esac
cat > leak.c <<_EOF_
#include <stdio.h>
#include <malloc.h>
int main(int argc, char **argv)
{
struct addrinfo *ai;
int err = getaddrinfo(NULL, "http", NULL, &ai);
printf("err %d, ai %p\n", err, ai);
}
_EOF_
for size in 64 32
do
gcc -g -m$size leak.c -o leak$size
valgrind --leak-check=full ./leak$size > leak$size.log 2>&1 || true
if ! grep -q "getaddrinfo.c:" leak$size.log
then
echo "No symbolic backtrace in $size bits; do you need to
install libc6-dbg?"
exit 1
fi
done
echo "Worked! No bug found."
---- snip ----
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/341532/+subscriptions
More information about the foundations-bugs
mailing list