Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Every run of emerge makes system segfaulting

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
Jinidog
Guru
Guru
User avatar
Posts: 593
Joined: Wed Nov 26, 2003 7:21 pm
Location: Berlin
Contact:
Contact Jinidog
Website

Every run of emerge makes system segfaulting

  • Quote

Post by Jinidog » Tue Jun 24, 2008 2:21 pm

Cheers,

the whole mess started when I tried to update to glibc 2.7.

The compile went fine but when portage copied the glibc-files into the filesystem, it stopped somewhere in the process with a segfault.
After that the system was not useable anymore. Simple console commands resulted in segfaults.
When booting the system now segfaults just when the kernel calls init.

I repaired the damage by building a glibc-2.6 package somewhere else and copying all its files into the filesystem. After that everything works again.

Well, I tried to merge glibc-2.7, 2.8 and 2.6.1 again. Every time the systems was unuseable after merging the files into the filesystem.
EVEN when I want portage to install the glibc package that I use to rescue my system (by copying its content to / ) I only get segfaults.
Every run of emerge does it. For example I run "emerge dialog" and after that my whole system segfaults and works again when I copy the working glibc-files by hand.

What is going on here?


Portage 2.1.4.4 (default-linux/amd64/2007.0, gcc-4.2.4, glibc-2.7-r2,glibc-2.6.1-r0, 2.6.24-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.24-gentoo-r8 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4400+
Timestamp of tree: Mon, 23 Jun 2008 20:00:02 +0000
ccache version 2.4 [enabled]
app-shells/bash: 3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python: 2.4.4-r13
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache: 2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox: 1.2.18.1-r2
sys-devel/autoconf: 2.13, 2.61-r2
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils: 2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 1.5.26
virtual/os-headers: 2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -pipe -fomit-frame-pointer -fno-ident -mfpmath=sse -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php4/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php4/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php4/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon64 -pipe -fomit-frame-pointer -fno-ident -mfpmath=sse -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer prelink sandbox sfperms unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LINGUAS="de"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/desktop-effects"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi aiglx alsa amd64 amrnb amrwb apache2 audacious berkdb bzip2 bzlib cgi cli completion cpudetection cracklib crypt ctype cups dba dbus dga directfb divx divx4linux dri dv dvb dvd dvdr dvdread encode fbcon ffmpeg gdbm gif gimp glibc-omitfp glitz gpm gstreamer gtk hal haststyle hddtempbash iconv imlib imlib2 insecure-drivers ip3100 ipv6 isdnlog java jpeg kde kdeenablefinal kdehiddenvisibility kqemu lib++ libsamplerate lirc live logitech-mouse lzw-tiff mad midi mmx mmxext modplug mozdevelop mp3 mpeg4 mplayer mudflap mysql mysqli ncurses nls nptl nptlonly nsplugin ogg opengl openmp openssh pam pcre pdf perl php pic pixusip3100 png pppd python qt3 quicktime readline realmedia reflection rtc sdl session slang spell spl sse sse2 ssl ssse3 svg tcpd theora threadsafe truetype type1 unicode usb userlocales v4l v4l2 videos visualization vorbis wifi wma wmp x264 xcomposite xml xorg xscreensaver xv xvid zlib" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" LIRC_DEVICES="devinput" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPT
Last edited by Jinidog on Wed Jun 25, 2008 8:39 am, edited 1 time in total.
Just unused Microsoft-Software is good Microsoft-Software
Top
cyrillic
Watchman
Watchman
User avatar
Posts: 7311
Joined: Wed Feb 19, 2003 3:05 am
Location: Groton, Massachusetts USA

  • Quote

Post by cyrillic » Wed Jun 25, 2008 12:42 am

Can you post your "emerge --info" ?
Top
Jinidog
Guru
Guru
User avatar
Posts: 593
Joined: Wed Nov 26, 2003 7:21 pm
Location: Berlin
Contact:
Contact Jinidog
Website

  • Quote

Post by Jinidog » Wed Jun 25, 2008 8:47 am

Posted above. Changed the problem description and the title. It is not only a problem with glibc anymore. Every run of emerge makes my system segfaulting. Even when I compile such small and unimportant things like dialog.
Just unused Microsoft-Software is good Microsoft-Software
Top
cyrillic
Watchman
Watchman
User avatar
Posts: 7311
Joined: Wed Feb 19, 2003 3:05 am
Location: Groton, Massachusetts USA

Re: Every run of emerge makes system segfaulting

  • Quote

Post by cyrillic » Wed Jun 25, 2008 2:20 pm

Jinidog wrote:What is going on here?


Portage 2.1.4.4 (default-linux/amd64/2007.0, gcc-4.2.4, glibc-2.7-r2,glibc-2.6.1-r0, 2.6.24-gentoo-r8 x86_64)
As far as I know, sys-libs/glibc is not a slotted package, so something is really broken if you have 2 different versions installed at the same time.


ps. Are you trying to upgrade your whole system to ~ARCH ?
Top
Jinidog
Guru
Guru
User avatar
Posts: 593
Joined: Wed Nov 26, 2003 7:21 pm
Location: Berlin
Contact:
Contact Jinidog
Website

  • Quote

Post by Jinidog » Wed Jun 25, 2008 8:07 pm

Well, the problem started when portage tried to merge the first glibc 2.7 package.
During this operation the system got unuseable and it didn't complete.
So it left me with a half installed glibc 2.7.

Every operation to unmerge glibc 2.7 or 2.6 can not complete because it segfaults.

Well, I'm currently building a fresh gentoo install. Don't believe I can repair this.
Just unused Microsoft-Software is good Microsoft-Software
Top
tranquilcool
Veteran
Veteran
Posts: 1246
Joined: Fri Mar 25, 2005 1:16 pm

  • Quote

Post by tranquilcool » Fri Jun 27, 2008 6:14 am

Jinidog wrote:Well, the problem started when portage tried to merge the first glibc 2.7 package.
During this operation the system got unuseable and it didn't complete.
So it left me with a half installed glibc 2.7.

Every operation to unmerge glibc 2.7 or 2.6 can not complete because it segfaults.

Well, I'm currently building a fresh gentoo install. Don't believe I can repair this.
are you sure it's no hardware problem?
it could be memory modules or motherboard issues.
this is a strange strange world.
Top
Neo2
Apprentice
Apprentice
Posts: 224
Joined: Mon Sep 25, 2006 3:05 pm
Location: Italy

  • Quote

Post by Neo2 » Fri Jun 27, 2008 9:29 am

Have you tried with sane CFLAGS? Something like "-O2 -march=native -pipe" should do. You can switch -march to "native" because you're using >=GCC4.2. That will automatically determine the best -march= option based on the processor info. That also includes the -msse3 switch. Also "-fomit-frame-pointer" isn't needed on AMD64 architecture because GCC enables it with -O2 on AMD64. If you want to compile glibc with "-fomit-frame-pointer" you can use the local package USE "glibc-omitfp". The other flags are known to be unstable in some cases, especially "-mfpmath".
If I'm right glibc should filter out unstable CFLAGS by default, but you may give it a try anyway.
Neo2
Unofficial minimal liveCD for x86/amd64 w/reiser4+truecrypt
Top
Jinidog
Guru
Guru
User avatar
Posts: 593
Joined: Wed Nov 26, 2003 7:21 pm
Location: Berlin
Contact:
Contact Jinidog
Website

  • Quote

Post by Jinidog » Fri Jun 27, 2008 6:03 pm

Well, well.
But as I wrote. I could even do a
"emerge dialog" or "emerge nbench" and the result is a unuseable system.
My CFLAGS are quite sane, I would say. At least they worked for one year ;)

Hardware problem is not likely. I'm currently building a new gentoo in a chroot and there I have no problem.
Just unused Microsoft-Software is good Microsoft-Software
Top
Post Reply

8 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic