This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug libc/228] bus error signal during unaligned memory access...
- From: "pluto at pld-linux dot org" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 21 Jun 2004 19:46:37 -0000
- Subject: [Bug libc/228] bus error signal during unaligned memory access...
- References: <20040619205906.228.pluto@pld-linux.org>
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
------- Additional Comments From pluto at pld-linux dot org 2004-06-21 19:46 -------
(In reply to comment #1)
simplified testcase:
#include <pwd.h>
#include <stdio.h>
int main(int argc, char **argv)
{
? ? struct passwd *pwd = getpwuid(getuid());
? ? if (pwd != NULL)
? ? ? ? printf("username: %s\n", pwd->pw_name);
? ? return 0;
}
Program received signal SIGBUS, Bus error.
0xfffff8000012cce4 in __errno_location () from /lib64/libc.so.6
(gdb) bt
#0 ?0xfffff8000012cce4 in __errno_location () from /lib64/libc.so.6
#1 ?0xfffff800001ea220 in __nss_lookup_function () from /lib64/libc.so.6
#2 ?0xfffff800001ea424 in __nss_next () from /lib64/libc.so.6
#3 ?0xfffff800001a7f30 in getpwuid_r () from /lib64/libc.so.6
#4 ?0xfffff800001a775c in getpwuid () from /lib64/libc.so.6
#5 ?0x00000000001008bc in main ()
glibc-2.3.4-cvs on sparc(32/64) doesn't work.
--
http://sources.redhat.com/bugzilla/show_bug.cgi?id=228
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.