https://bugzilla.novell.com/show_bug.cgi?id=300589 Summary: getgrent core dump when read last line of the /etc/group with using LDAP Product: SUSE Linux 10.1 Version: Final Platform: x86 OS/Version: SLES 10 Status: NEW Severity: Critical Priority: P5 - None Component: Development AssignedTo: pth@novell.com ReportedBy: jiajia771121@yahoo.com QAContact: qa@suse.de Found By: Third Party Developer/Partner Code: int getGroupsByUser(INT32 NumGroup, gid_t *pGroups, char *pszUser ) { struct group grp; struct group *grpp = NULL; char grpbuf[AUTHUTIL_TEMP_BUF_LEN]; char **pGr_mem = NULL; int count = 0; if (!pszUser) { return(-1); } // // Set the list of groups found in /etc/group to the beginning. // setgrent(); // // While there are entries in the group list, check the list of members to see if our user // is in the list. // getgrent_r(&grp, grpbuf, AUTHUTIL_TEMP_BUF_LEN, &grpp); while (grpp != NULL) { for (pGr_mem = grpp->gr_mem; *pGr_mem; ++pGr_mem) { if (strcmp(pszUser, *pGr_mem)) { continue; /* If it's a new group number, then try to add it to the list. */ if ((NumGroup != 0) && (pGroups)) { if (count >= NumGroup) { endgrent(); return(count); } pGroups[count] = grpp->gr_gid; } count++; } getgrent_r(&grp, grpbuf, AUTHUTIL_TEMP_BUF_LEN, &grpp); } endgrent(); return(count); } GDB core dump backtrace #0 0xb6f91ee1 in X509_VERIFY_PARAM_inherit () from /usr/lib/libcrypto.so.0.9.8 #1 0x080afd88 in ?? () #2 0xbff02a54 in ?? () #3 0x080afc18 in ?? () #4 0xb701866f in ssl_verify_cert_chain () from /usr/lib/libssl.so.0.9.8 #5 0x080c0ea8 in ?? () #6 0x00000010 in ?? () #7 0x080b0e96 in ?? () #8 0xb7e62248 in __JCR_LIST__ () from /opt/bkupexec/bin/../lib/libvxcrypto.so #9 0xbff02a88 in ?? () #10 0x080b0a2a in ?? () #11 0x080af950 in ?? () #12 0x00000000 in ?? () -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.