View previous topic :: View next topic |
Author |
Message |
czuga n00b
Joined: 27 Dec 2011 Posts: 9
|
Posted: Mon Jan 27, 2014 4:23 pm Post subject: glibc + __nss_passwd_lookup |
|
|
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 |
|
|
trippels Tux's lil' helper
Joined: 24 Nov 2010 Posts: 137 Location: Berlin
|
Posted: Mon Jan 27, 2014 4:38 pm Post subject: |
|
|
Please post your /etc/nsswitch.conf . |
|
Back to top |
|
|
czuga n00b
Joined: 27 Dec 2011 Posts: 9
|
Posted: Tue Jan 28, 2014 7:44 am Post subject: |
|
|
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 |
|
|
trippels Tux's lil' helper
Joined: 24 Nov 2010 Posts: 137 Location: Berlin
|
Posted: Tue Jan 28, 2014 7:52 am Post subject: |
|
|
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 |
|
|
czuga n00b
Joined: 27 Dec 2011 Posts: 9
|
Posted: Tue Jan 28, 2014 8:07 am Post subject: |
|
|
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 |
|
|
vespaman Guru
Joined: 28 Aug 2002 Posts: 346 Location: Stockholm, Sweden
|
Posted: Tue Jan 28, 2014 9:33 am Post subject: |
|
|
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 |
|
|
czuga n00b
Joined: 27 Dec 2011 Posts: 9
|
Posted: Wed Jan 29, 2014 9:50 am Post subject: |
|
|
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 |
|
|
vespaman Guru
Joined: 28 Aug 2002 Posts: 346 Location: Stockholm, Sweden
|
Posted: Wed Jan 29, 2014 10:14 am Post subject: |
|
|
Solution WORKED!
Thank you very much for the complete/detailed instruction! |
|
Back to top |
|
|
Maitreya Guru
Joined: 11 Jan 2006 Posts: 441
|
Posted: Wed Jan 29, 2014 10:24 am Post subject: |
|
|
See, you don't downgrade glibc ;P |
|
Back to top |
|
|
andorreJr n00b
Joined: 05 Nov 2008 Posts: 44 Location: Italy
|
Posted: Wed Jan 29, 2014 12:04 pm Post subject: |
|
|
czuga saved my life
I was thinking to try a deadly downgrade... |
|
Back to top |
|
|
ab3ap n00b
Joined: 22 Mar 2005 Posts: 59 Location: Pennsylvania
|
Posted: Thu Jan 30, 2014 12:13 am Post subject: |
|
|
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 |
|
|
kosik n00b
Joined: 09 Nov 2007 Posts: 20 Location: 127.0.0.1
|
Posted: Thu Jan 30, 2014 9:44 pm Post subject: |
|
|
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 |
|
|
snum n00b
Joined: 16 Jun 2012 Posts: 43
|
Posted: Tue Feb 04, 2014 8:17 pm Post subject: |
|
|
Hi!
This fix solved my problem too.
Thank you very much! |
|
Back to top |
|
|
devsk Advocate
Joined: 24 Oct 2003 Posts: 2995 Location: Bay Area, CA
|
Posted: Sun Feb 09, 2014 10:23 pm Post subject: |
|
|
has this been reported on bugs.gentoo.org? This is serious business. |
|
Back to top |
|
|
devsk Advocate
Joined: 24 Oct 2003 Posts: 2995 Location: Bay Area, CA
|
|
Back to top |
|
|
TomWij Retired Dev
Joined: 04 Jul 2012 Posts: 1553
|
Posted: Mon Feb 10, 2014 8:36 am Post subject: |
|
|
Thank you, have reassigned the bug to the core system maintainers. |
|
Back to top |
|
|
|