Forums

Skip to content

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

Segmentation fault

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
nordicruler
Tux's lil' helper
Tux's lil' helper
Posts: 93
Joined: Mon Dec 20, 2004 1:37 pm
Location: Philippines (but from Sweden)

Segmentation fault

  • Quote

Post by nordicruler » Tue Apr 09, 2019 2:08 am

Im suffering from a world update gone bad. Can someone help me recover from this?

Code: Select all

Emerge gives segmentation fault
emerge --sync seg fault
emerge --info seg fault
revdep-rebuild seg fault
gcc-config -l gives
* gcc-config: Could not get portage CHOST!
* gcc-config: You should verify that CHOST is set in one of these places:
* gcc-config:  - //etc/portage/make.conf
* gcc-config:  - active environment
Top
Phoenix591
Guru
Guru
Posts: 504
Joined: Mon Sep 17, 2007 3:52 am

  • Quote

Post by Phoenix591 » Tue Apr 09, 2019 7:15 am

well, to get things started, lets go to the wiki: "Fix my Gentoo". Since it seems your box is booted you don't need to grab a livecd, but the general idea of grabbing a stage3 and setting up a chroot with it (be sure to copy /etc/portage to your temporary chroot!) to rebuild portage and/or python (or potentially other critical packages like in the system set). since emerge is broken you'll have to use tar until you get it fixed.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56082
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Tue Apr 09, 2019 7:56 am

nordicruler,

Exacty what caused the segfault will be at the end of dmesg.
Please post the end of dmesg or put it all onto a pastebin.

-- edit --

It might be possible to call emerge directly or emerge may word with other python versions.
You should at least two installed.

Lets see what's broken first.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
yagaev
n00b
n00b
Posts: 27
Joined: Tue Jan 10, 2017 7:06 am

  • Quote

Post by yagaev » Fri Apr 26, 2019 9:25 am

Hey, I have same problem here.
My "main" gentoo works fine, but there is a segfault error on the copy of gentoo. I made copy to other partition for some tests (changing profile, DE, etc.). When I try to emerge smth after chrooting to that copy I catch a segfault error.

The last messages of dmesg on chroot shows:
[ 347.047496] show_signal_msg: 36 callbacks suppressed
[ 347.047504] emerge[6390]: segfault at b0 ip 00007fb1a5a77b05 sp 00007ffc3a8de170 error 4 in ld-2.29.so[7fb1a5a6d000+1e000]
[ 347.047509] Code: 04 49 83 fc 06 44 0f 44 c8 81 e2 ff 7f 00 00 45 89 8e 08 04 00 00 48 8d 04 52 4d 89 ae 00 04 00 00 4c 8d 04 c6 4d 85 c0 74 0f <41> 8b 70 08 b8 00 00 00 00 85 f6 4c 0f 44 c0 41 8b 7d 00 4c 89 f6
[ 524.254359] ntfs: driver 2.1.32 [Flags: R/W MODULE].
How to solve that?
Top
ffyring
n00b
n00b
Posts: 63
Joined: Tue Aug 16, 2005 9:57 am
Location: Stockholm

Re: Segmentation fault

  • Quote

Post by ffyring » Sun May 05, 2019 4:35 pm

nordicruler wrote:Im suffering from a world update gone bad. Can someone help me recover from this?

Code: Select all

Emerge gives segmentation fault
emerge --sync seg fault
emerge --info seg fault
revdep-rebuild seg fault
gcc-config -l gives
* gcc-config: Could not get portage CHOST!
* gcc-config: You should verify that CHOST is set in one of these places:
* gcc-config:  - //etc/portage/make.conf
* gcc-config:  - active environment
Hi. I had the same problem. I found it was due to a bug in openssl-1.1.1a. To fix it I did

* wget http://packages.gentooexperimental.org/ ... .0.2r.tbz2
* tar xvf openssl-1.0.2r.tbz2
* from the extracted dir, copy lib64/libssl* and lib64/libcrypty* to /usr/lib64/
* make sure /usr/libb64/libssl.so and /usr/lib64/libcrypto.so (and perhaps also libssl.1.1.so) points to the extracted so files (libssl.1.0.0.so, libcrypto.1.0.0.so I think).

Now emerge works again and you can unmask openssl-1.1.1b-r2 and do an emerge -uDN @world to fix the system.
Top
Post Reply

5 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