Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge -> segfault
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
meez
n00b
n00b


Joined: 25 Jul 2004
Posts: 30

PostPosted: Fri Dec 21, 2012 1:57 pm    Post subject: emerge -> segfault Reply with quote

Hi Everybody,

I have a big problem on one of our liveservers. Wenn I try to emerge / update the package ist compiled without problems but then I get

Code:
>>> Installing (1 of 1) sys-devel/libtool-2.4-r1
Segfault


my kern.log says:
Code:
emerge[2870]: segfault at 0 ip 00007fe2041b4b21 sp 00007ffff2a66710 error 4 in libc-2.15.so[7fe20411e000+18f000]


so I can not update the system anymore. I tried to update the glibc but same here, compiles without problems and then same.

I then tried to debug and strace the emerge and got this:


Quote:
stat("/usr/lib64/python2.7/ctypes/struct", 0x7fffbc285700) = -1 ENOENT (No such file or directory)
open("/usr/lib64/python2.7/ctypes/struct.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib64/python2.7/ctypes/structmodule.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib64/python2.7/ctypes/struct.py", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib64/python2.7/ctypes/struct.pyc", O_RDONLY) = -1 ENOENT (No such file or directory)
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0} ---
+++ killed by SIGSEGV +++
Speicherzugriffsfehler


Has anybody an idea, how to get rid of this probleme without booting from livecd and recompile.

The system is running without problems (apache, php, mysql, java, tomcat,...)

Thanks,

Martin
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 5282

PostPosted: Fri Dec 21, 2012 2:27 pm    Post subject: Reply with quote

So, things were working normally before this happened, right? What was the last thing you did before this happened? Did you do a world update?
_________________
Gentoo Studio: http://gentoostudio.org
Facebook: http://www.facebook.com/gentoostudio
G+: https://plus.google.com/113947758237122861689/posts
Pappy's Kernel Seeds: http://kernel-seeds.org
Back to top
View user's profile Send private message
meez
n00b
n00b


Joined: 25 Jul 2004
Posts: 30

PostPosted: Fri Dec 21, 2012 3:34 pm    Post subject: Reply with quote

Yes I was starting a system / world update, but then things went wrong and so I can not repair with emerge anymore.

tried to install the compiled files from emerge -> var/tmp/portage/.../<package>/image manually but with no success.

Is it possible to install glibc this way to? or will it crash my system? Or is there a way to install the compiled glibc files manual?

Thanks,

Martin
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 9120

PostPosted: Sat Dec 22, 2012 1:45 am    Post subject: Reply with quote

What is the output of emerge --info?
Back to top
View user's profile Send private message
meez
n00b
n00b


Joined: 25 Jul 2004
Posts: 30

PostPosted: Tue Dec 25, 2012 10:06 am    Post subject: Reply with quote

Output from emerge --info
Code:
Portage 2.1.11.31 (default/linux/amd64/10.0/server, gcc-4.4.4, glibc-2.15-r3, 3.5.7-gentoo x86_64)
=================================================================
System uname: Linux-3.5.7-gentoo-x86_64-Intel-R-_Xeon-TM-_MV_CPU_3.20GHz-with-gentoo-2.1
Timestamp of tree: Tue, 25 Dec 2012 01:45:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.6.6-r1, 2.7.3-r2, 3.1.2-r4, 3.2.3
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.7.9-r1, 1.9.6-r2, 1.10.2, 1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.1.2, 4.3.4, 4.4.4-r2, 4.5.4
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo x-overlay
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.2/ext-active/ /etc/php/cgi-php5.2/ext-active/ /etc/php/cli-php5.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/opt/overlay"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="acl ads amd64 apache2 async automount bash-completion berkdb bzip2 cgi cli cracklib crypt ctype cups curl cxx dri exif force-cgi-redirect fortran ftp gdbm gpm hardened iconv imap libwww maildir mmx modules mudflap multilib mysql mysqli ncurses nls nptl offensive openmp pam pcre pdo perl php png postfix pppd python readline ruby session simplexml snmp sockets softquota spl sse sse2 ssl suexec syslog szip tcl tcpd threads truetype unicode urandom winbind xml xml2 zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex dav dav_fs dav_lock dbd deflate dir env expires ext_filter filter headers ident imagemap include info log_config logio mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias cgi" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_6 python2_7 python3_1 python3_2" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 5282

PostPosted: Wed Dec 26, 2012 3:28 pm    Post subject: Reply with quote

I wonder if the OP needs to chroot and unpack a fresh portage-latest...
_________________
Gentoo Studio: http://gentoostudio.org
Facebook: http://www.facebook.com/gentoostudio
G+: https://plus.google.com/113947758237122861689/posts
Pappy's Kernel Seeds: http://kernel-seeds.org
Back to top
View user's profile Send private message
meez
n00b
n00b


Joined: 25 Jul 2004
Posts: 30

PostPosted: Wed Dec 26, 2012 8:09 pm    Post subject: Reply with quote

I think its not a problem of the portage.

The portage is synced without a problem. Packages are compiled without a problem. But while install I get the segfault.
Today I tried to install a binary package build on an other host - same.

Martin

is there a manual way how to install a binary package? For example the glibc bin package I build?

Thanks,

Martin
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 32302
Location: 56N 3W

PostPosted: Wed Dec 26, 2012 8:19 pm    Post subject: Reply with quote

meez,

There is a manual way but its very ugly.

Each binary package made by emerge is like a mini stage3, so
Code:
tar pxf /path/to/tarball -C /
will install it.
Its ugly because USE flags are not checked or respected. No dependencies are are checked and there is no going back if it breaks.

Oh, these binary packages have some extra information for portage at the end, so that the work with emerge -K.
Tar will show a warning about that but you may safely ignore it.

You might want to try python-updater and/or emerge sandbox -1 before you revert to naked tar.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
meez
n00b
n00b


Joined: 25 Jul 2004
Posts: 30

PostPosted: Wed Dec 26, 2012 8:32 pm    Post subject: Reply with quote

Hi,

thanks.
Is this working with the glibc package too?

I Think I will try it in a VM.

Thanks,

Martin
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 32302
Location: 56N 3W

PostPosted: Wed Dec 26, 2012 8:40 pm    Post subject: Reply with quote

meez,

It works with all packages. There is even tinderbox.dev.gentoo.org where you can get individual packages from.

glibc takes some care - you must not downgrade it.
With gcc, you must run gcc-config and (re)select it.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
meez
n00b
n00b


Joined: 25 Jul 2004
Posts: 30

PostPosted: Wed Dec 26, 2012 8:49 pm    Post subject: Reply with quote

Yes,
I tried with glibc in a VM, it's working. Tomorrow I'm near to the server in case I have to reset it :-), so I will try to replace the glibc and hope emerge install is working normal than again.

Thanks,

Martin
Back to top
View user's profile Send private message
meez
n00b
n00b


Joined: 25 Jul 2004
Posts: 30

PostPosted: Thu Dec 27, 2012 8:13 am    Post subject: Reply with quote

I tried - and it is not working.

Even if I try to install a binary package with emerge -K <package> I get a segfault, but only at installing.
Nothing else segfaults
Can anybody tell me, what program is used to install packages?
I know its emerge, but is there anything else involved?

Greetings,

Martin
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 32302
Location: 56N 3W

PostPosted: Thu Dec 27, 2012 8:19 pm    Post subject: Reply with quote

meez,

Code:
 $ equery b install
 * Searching for install ...
sys-apps/coreutils-8.20-r1 (/usr/bin/install)


Try coreultils
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
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