This is the mail archive of the glibc-bugs@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/228] bus error signal during unaligned memory access...


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]