This is the mail archive of the glibc-bugs@sourceware.org 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/2990] New: getpwuid() (specifically _dl_make_fptr) causes a segfault when using electric fence


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.


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