Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Gentoo This forum is for the discussion of Gentoo Linux.


  Search this Thread
Old 01-07-2012, 05:41 PM   #1
Registered: Sep 2008
Location: Ioannina, Greece
Distribution: Gentoo
Posts: 332

Rep: Reputation: 55
Segmentation faults after system upgrade

This looks really bad (for me). After running
emerge -uDv system
some programs (like mc - midnight commander) give a segmentation fault (yeap, that's my nick, ironic...), and I cannot emerge anything (emerge also fails with a segmentation fault. After some research I found out that this could be related to glibc, so here is some info:
$ /lib/
GNU C Library stable release version 2.13, by Roland McGrath et al.
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
Compiled by GNU CC version 4.5.3.
Compiled on a Linux 2.6.39 system on 2011-12-12.
Available extensions:
        C stubs add-on version 2.1.2
        crypt add-on version 2.1 by Michael Glad and others
        Gentoo patchset 8
        GNU Libidn by Simon Josefsson
        Native POSIX Threads Library by Ulrich Drepper et al
        Support for some architectures added on, not maintained in glibc core.
For bug reporting instructions, please see:
 # gcc-config -l
 [1] x86_64-pc-linux-gnu-4.4.5
 [2] x86_64-pc-linux-gnu-4.5.3 *

 # eselect binutils show

 # ls -l /lib64/ | grep libc
-rwxr-xr-x  1 root root 1592528 Dec 12 02:00
lrwxrwxrwx  1 root root      12 Dec 12 02:01 ->

 # ld --version
GNU ld (GNU Binutils) 2.21.1
Copyright 2011 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.

# ls -l /lib64/ | grep ld-linux
lrwxrwxrwx  1 root root      10 Dec 12 02:01 ->
lrwxrwxrwx  1 root root      22 Dec 12 02:01 -> ../lib32/
emerge *anything* fails sooner or later.
Here is the output of mc run in gdb:
Reading symbols from /usr/bin/mc...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/mc 
BFD: /lib64/ invalid string offset 16779807 >= 6682 for section `.dynstr'
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7de6502 in ?? () from /lib64/
(gdb) backtrace
#0  0x00007ffff7de6502 in ?? () from /lib64/
#1  0x00007ffff7de9e3d in ?? () from /lib64/
#2  0x00007ffff7df0375 in ?? () from /lib64/
#3  0x00007ffff7769237 in _nc_mvcur_resume () from /lib64/
#4  0x00007ffff7769d95 in newterm () from /lib64/
#5  0x00007ffff7766692 in initscr () from /lib64/
#6  0x000000000043009f in ?? ()
#7  0x0000000000415186 in ?? ()
#8  0x00007ffff6c9f09d in __libc_start_main () from /lib64/
#9  0x0000000000410459 in ?? ()
#10 0x00007fffffffe048 in ?? ()
#11 0x000000000000001c in ?? ()
#12 0x0000000000000001 in ?? ()
#13 0x00007fffffffe345 in ?? ()
#14 0x0000000000000000 in ?? ()
Any help/ideas much appreciated.
Any more info you might need let me know.
Old 01-07-2012, 07:02 PM   #2
Registered: Sep 2008
Location: Ioannina, Greece
Distribution: Gentoo
Posts: 332

Original Poster
Rep: Reputation: 55
I am currently chrooted in my system from the latest gentoo minimal. Tryied to downgrade glibc to 2.12.2 but emerge didn't let me, saying that this is a shure way to destroy my system (I believe that). So I am re-emerging glibc and see if this does the trick (emerge seems to work ok in the chroot).

Ok, this seems to work. I don't get any segmentation faults so far. If revdep-rebuild completes (it was failing too) I will mark it as solved.

Last edited by segmentation_fault; 01-07-2012 at 08:23 PM.
Old 01-08-2012, 02:45 PM   #3
Registered: Sep 2008
Location: Ioannina, Greece
Distribution: Gentoo
Posts: 332

Original Poster
Rep: Reputation: 55
While I was pushing my system a bit it suddenly froze, so that raised questions about a RAM DIMM I installed a few days ago. I ran about 10 tests with memtest86 and it passed with no errors, but after removing the suspicious DIMM the system runs fine. Except that I am left with only 1GB RAM. So I'm going to mark the thread as solved.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Segmentation faults during upgrade from 13.1 to 13.37 dimm0k Slackware 2 05-01-2011 08:49 PM
Segmentation faults in C Haku72 Programming 6 11-19-2009 07:23 PM
Segmentation Faults. Terroth Linux - Hardware 1 06-19-2005 06:16 AM
Segmentation Faults ryankask Mandriva 2 06-13-2005 08:10 PM
Segmentation Faults? DoomsdayChef Linux - Newbie 2 10-18-2003 09:18 AM > Forums > Linux Forums > Linux - Distributions > Gentoo

All times are GMT -5. The time now is 09:45 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration