Return-Path: Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: (qmail 63234 invoked from network); 5 Mar 2011 03:01:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Mar 2011 03:01:11 -0000 Received: (qmail 7774 invoked by uid 500); 5 Mar 2011 03:01:10 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 6632 invoked by uid 500); 5 Mar 2011 03:01:07 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 6439 invoked by uid 99); 5 Mar 2011 03:01:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Mar 2011 03:01:04 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Mar 2011 01:45:06 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D76A6566FD for ; Sat, 5 Mar 2011 01:44:45 +0000 (UTC) Date: Sat, 5 Mar 2011 01:44:45 +0000 (UTC) From: "Todd Lipcon (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <189532702.505.1299289485878.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1185800002.15672.1298625818523.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Commented: (HADOOP-7156) getpwuid_r is not thread-safe on RHEL6 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-7156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13002903#comment-13002903 ] Todd Lipcon commented on HADOOP-7156: ------------------------------------- Apparently no one out there who implements pam modules knows that getpwuid_r is supposed to be reentrant :) A user saw this same issue with VAS: /lib64/libc.so.6[0x3757c7230f] /lib64/libc.so.6(cfree+0x4b)[0x3757c7276b] /opt/quest/lib64/libvas.so.4(vassym_sqlite3FreeX+0xe)[0x2aaaab2bd15e] /opt/quest/lib64/libvas.so.4[0x2aaaab2ac9b9] /opt/quest/lib64/libvas.so.4(vassym_sqlite3OsClose+0x93)[0x2aaaab2ad6d3] /opt/quest/lib64/libvas.so.4(vassym_sqlite3pager_close+0x4d)[0x2aaaab2af1cd] /opt/quest/lib64/libvas.so.4(vassym_sqlite3BtreeClose+0x15)[0x2aaaab29a235] /opt/quest/lib64/libvas.so.4(vassym_sqlite3_close+0x15b)[0x2aaaab2ab62b] /opt/quest/lib64/libvas.so.4(vassql_deinit+0xdf)[0x2aaaab3158de] /opt/quest/lib64/libvas.so.4[0x2aaaab2f3ef9] /opt/quest/lib64/libvas.so.4(vascache_deinit+0x30)[0x2aaaab2f438f] /lib64/libnss_vas3.so.2[0x2aaaab027240] /lib64/libnss_vas3.so.2(_nss_vas3_getXXent_release_tsd+0x10e)[0x2aaaab0284ff] /lib64/libnss_vas3.so.2[0x2aaaab02c3c0] /lib64/libnss_vas3.so.2(_nss_vas3_getpwuid_r+0x36)[0x2aaaab02d242] /lib64/libc.so.6(getpwuid_r+0xa5)[0x3757c99515] > getpwuid_r is not thread-safe on RHEL6 > -------------------------------------- > > Key: HADOOP-7156 > URL: https://issues.apache.org/jira/browse/HADOOP-7156 > Project: Hadoop Common > Issue Type: Bug > Affects Versions: 0.22.0 > Environment: RHEL 6.0 "Santiago" > Reporter: Todd Lipcon > Assignee: Todd Lipcon > Priority: Critical > Fix For: 0.22.0 > > Attachments: hadoop-7156.txt > > > Due to the following bug in SSSD, functions like getpwuid_r are not thread-safe in RHEL 6.0 if sssd is specified in /etc/nsswitch.conf (as it is by default): > https://fedorahosted.org/sssd/ticket/640 > This causes many fetch failures in the case that the native libraries are available, since the SecureIO functions call getpwuid_r as part of fstat. By enabling -Xcheck:jni I get the following trace on JVM crash: > *** glibc detected *** /mnt/toolchain/JDK6u20-64bit/bin/java: free(): invalid pointer: 0x0000003575741d23 *** > ======= Backtrace: ========= > /lib64/libc.so.6[0x3575675676] > /lib64/libnss_sss.so.2(_nss_sss_getpwuid_r+0x11b)[0x7fe716cb42cb] > /lib64/libc.so.6(getpwuid_r+0xdd)[0x35756a5dfd] -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira