This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/2990] New: getpwuid() (specifically _dl_make_fptr) causes a segfault when using electric fence
- From: "jeffmax at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 1 Aug 2006 17:15:28 -0000
- Subject: [Bug libc/2990] New: getpwuid() (specifically _dl_make_fptr) causes a segfault when using electric fence
- Reply-to: sourceware-bugzilla at sourceware dot org
The following code will cause a segfault when using the version of electric
fence supplied with Red Hat Enterprise Linux AS release 4 (2.2.0). The actual
segfault occurs in _dl_make_fptr in the ld-linux-ia64.so library. This is on an
IA64 bit platform. This is not the only time I have encountered the same issue
with _dl_make_fptr, but it is the easiest way to recreate it.
Code:
#include <pwd.h>
#include <sys/types.h>
#include <unistd.h>
int main (int argc, char *argv[])
{
uid_t UserID = getuid();
struct passwd *pPasswd =0;
pPasswd = (struct passwd*)getpwuid(UserID);
return(0);
}
Compiled with
g++ -g -lefence uid.cpp
--
Summary: getpwuid() (specifically _dl_make_fptr) causes a
segfault when using electric fence
Product: glibc
Version: 2.3.4
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: jeffmax at gmail dot com
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=2990
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.