Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
glibc + __nss_passwd_lookup
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
czuga
n00b
n00b


Joined: 27 Dec 2011
Posts: 9

PostPosted: Mon Jan 27, 2014 4:23 pm    Post subject: glibc + __nss_passwd_lookup Reply with quote

After install glibc-2.18-r1 on gentoo i have problem with running some apps used jvm.

Details:

# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0xf6bd5c7d, pid=6266, tid=4138243840
#
# JRE version: 6.0_45-b06
# Java VM: Java HotSpot(TM) Client VM (20.45-b01 mixed mode, sharing linux-x86 )
# Problematic frame:
# C [libc.so.6+0x12ac7d] __nss_passwd_lookup+0x45d
Back to top
View user's profile Send private message
trippels
Tux's lil' helper
Tux's lil' helper


Joined: 24 Nov 2010
Posts: 137
Location: Berlin

PostPosted: Mon Jan 27, 2014 4:38 pm    Post subject: Reply with quote

Please post your /etc/nsswitch.conf .
Back to top
View user's profile Send private message
czuga
n00b
n00b


Joined: 27 Dec 2011
Posts: 9

PostPosted: Tue Jan 28, 2014 7:44 am    Post subject: Reply with quote

trippels wrote:
Please post your /etc/nsswitch.conf .


Code:

passwd:      compat
shadow:      compat
group:       compat

hosts:       files dns
networks:    files dns

services:    db files
protocols:   db files
rpc:         db files
ethers:      db files
netmasks:    files
netgroup:    files
bootparams:  files

automount:   files
aliases:     files
Back to top
View user's profile Send private message
trippels
Tux's lil' helper
Tux's lil' helper


Joined: 24 Nov 2010
Posts: 137
Location: Berlin

PostPosted: Tue Jan 28, 2014 7:52 am    Post subject: Reply with quote

For comparison here's mine:

Code:
passwd:         db files
group:          db files
initgroups:     db [SUCCESS=continue] files
shadow:         db files
gshadow:        files

hosts:          files dns
networks:       files dns

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       db files


Try to change "compat" to "db files" and "files" to "db files" in your /etc/nsswitch.conf .
Back to top
View user's profile Send private message
czuga
n00b
n00b


Joined: 27 Dec 2011
Posts: 9

PostPosted: Tue Jan 28, 2014 8:07 am    Post subject: Reply with quote

trippels wrote:
Try to change "compat" to "db files" and "files" to "db files" in your /etc/nsswitch.conf .


Thanks for response. Unfortunately, nothing has changed.
Back to top
View user's profile Send private message
vespaman
Guru
Guru


Joined: 28 Aug 2002
Posts: 346
Location: Stockholm, Sweden

PostPosted: Tue Jan 28, 2014 9:33 am    Post subject: Reply with quote

I think I have the same problem - after yesterdays update of glibc, I am unable to start sourceryg++ (Mentor Codebench/Eclipse). :(

Code:
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0xf76e910d, pid=2698, tid=4137663296
#
# JRE version: 6.0_20-b02
# Java VM: Java HotSpot(TM) Server VM (16.3-b01 mixed mode linux-x86 )
# Problematic frame:
# C  [libc.so.6+0x12b10d]
#
# An error report file with more information is saved as:
# /home/micke/svn/trunk/master/dap/hs_err_pid2698.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#


I am seeing this on 2 (64bit) computers..
Back to top
View user's profile Send private message
czuga
n00b
n00b


Joined: 27 Dec 2011
Posts: 9

PostPosted: Wed Jan 29, 2014 9:50 am    Post subject: Reply with quote

Solution:

Code:
ebuild [path]/portage/sys-libs/glibc/glibc-2.18-r1.ebuild unpack


Patch: simply I added inline to static __m128i

Code:

diff --git a/sysdeps/x86_64/multiarch/strstr.c b/sysdeps/x86_64/multiarch/strstr.c
index cd63b68..03d8b9a 100644
--- a/sysdeps/x86_64/multiarch/strstr.c
+++ b/sysdeps/x86_64/multiarch/strstr.c
@@ -86,7 +86,7 @@
 /* Simple replacement of movdqu to address 4KB boundary cross issue.
    If EOS occurs within less than 16B before 4KB boundary, we don't
    cross to next page.  */
-static __m128i
+static inline __m128i
 __m128i_strloadu (const unsigned char * p, __m128i zero)
 {
   if (__builtin_expect ((int) ((size_t) p & 0xfff) > 0xff0, 0))


After patch:
Code:

ebuild [path]/portage/sys-libs/glibc/glibc-2.18-r1.ebuild compile
ebuild [path]/portage/sys-libs/glibc/glibc-2.18-r1.ebuild install
ebuild [path]/portage/sys-libs/glibc/glibc-2.18-r1.ebuild qmerge
ebuild [path]/portage/sys-libs/glibc/glibc-2.18-r1.ebuild clean


This solved my problem.

P.S. It solved my problem with Adobe Reader too.
Back to top
View user's profile Send private message
vespaman
Guru
Guru


Joined: 28 Aug 2002
Posts: 346
Location: Stockholm, Sweden

PostPosted: Wed Jan 29, 2014 10:14 am    Post subject: Reply with quote

Solution WORKED! :) :) :) :) :)

Thank you very much for the complete/detailed instruction!
Back to top
View user's profile Send private message
Maitreya
Guru
Guru


Joined: 11 Jan 2006
Posts: 441

PostPosted: Wed Jan 29, 2014 10:24 am    Post subject: Reply with quote

See, you don't downgrade glibc ;P
Back to top
View user's profile Send private message
andorreJr
n00b
n00b


Joined: 05 Nov 2008
Posts: 44
Location: Italy

PostPosted: Wed Jan 29, 2014 12:04 pm    Post subject: Reply with quote

czuga saved my life :D

I was thinking to try a deadly downgrade... :wink:
Back to top
View user's profile Send private message
ab3ap
n00b
n00b


Joined: 22 Mar 2005
Posts: 59
Location: Pennsylvania

PostPosted: Thu Jan 30, 2014 12:13 am    Post subject: Reply with quote

Thank you, czuga! Till now a quick strace only showed me that acroread and various java programs were bombing in glibc. What did you do to track down the error, use gdb? How did you then know the problem? I never would guessed to use 'inline' to cure it.

Thanks again!
Mike
Back to top
View user's profile Send private message
kosik
n00b
n00b


Joined: 09 Nov 2007
Posts: 20
Location: 127.0.0.1

PostPosted: Thu Jan 30, 2014 9:44 pm    Post subject: Reply with quote

czuga wrote:
Solution:

Code:
ebuild [path]/portage/sys-libs/glibc/glibc-2.18-r1.ebuild unpack


Patch: simply I added inline to static __m128i

Code:

diff --git a/sysdeps/x86_64/multiarch/strstr.c b/sysdeps/x86_64/multiarch/strstr.c
index cd63b68..03d8b9a 100644
--- a/sysdeps/x86_64/multiarch/strstr.c
+++ b/sysdeps/x86_64/multiarch/strstr.c
@@ -86,7 +86,7 @@
 /* Simple replacement of movdqu to address 4KB boundary cross issue.
    If EOS occurs within less than 16B before 4KB boundary, we don't
    cross to next page.  */
-static __m128i
+static inline __m128i
 __m128i_strloadu (const unsigned char * p, __m128i zero)
 {
   if (__builtin_expect ((int) ((size_t) p & 0xfff) > 0xff0, 0))


After patch:
Code:

ebuild [path]/portage/sys-libs/glibc/glibc-2.18-r1.ebuild compile
ebuild [path]/portage/sys-libs/glibc/glibc-2.18-r1.ebuild install
ebuild [path]/portage/sys-libs/glibc/glibc-2.18-r1.ebuild qmerge
ebuild [path]/portage/sys-libs/glibc/glibc-2.18-r1.ebuild clean


This solved my problem.

P.S. It solved my problem with Adobe Reader too.


Dude, you're awesome!!!
Back to top
View user's profile Send private message
snum
n00b
n00b


Joined: 16 Jun 2012
Posts: 43

PostPosted: Tue Feb 04, 2014 8:17 pm    Post subject: Reply with quote

Hi!
This fix solved my problem too.
Thank you very much!
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2995
Location: Bay Area, CA

PostPosted: Sun Feb 09, 2014 10:23 pm    Post subject: Reply with quote

has this been reported on bugs.gentoo.org? This is serious business.
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2995
Location: Bay Area, CA

PostPosted: Sun Feb 09, 2014 10:54 pm    Post subject: Reply with quote

Filed: https://bugs.gentoo.org/show_bug.cgi?id=500812
Back to top
View user's profile Send private message
TomWij
Retired Dev
Retired Dev


Joined: 04 Jul 2012
Posts: 1553

PostPosted: Mon Feb 10, 2014 8:36 am    Post subject: Reply with quote

Thank you, have reassigned the bug to the core system maintainers.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum