Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Glibc segmentation fault
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
Arrta
Tux's lil' helper
Tux's lil' helper


Joined: 09 Nov 2003
Posts: 102

PostPosted: Sun Jul 08, 2012 2:02 pm    Post subject: Reply with quote

It sounds a bit strange that I can compile it once without issue but when I attempt to recompile it it fails. When I was compiling for the netbooted machine it worked off the kernel from the HDD on the first compile, but failed on the others. Granted that was a bootstrap, which does compile with different options, so I am inclined to believe you.

I can't use the kernel from the liveusb because I need xen dom0 support. When the machine is up and running, it is stable and I never have to worry about anything, unless I recompile glibc for some reason.
Please, help me. I would love to not have to boot from the USB to recompile.
Here is my:
cpuinfo
lspci
kernel config
make.conf
emerge --info

If you need anything else not already provided, jut ask.
Back to top
View user's profile Send private message
eccerr0r
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 3964
Location: USA

PostPosted: Sun Jul 08, 2012 2:20 pm    Post subject: Reply with quote

What gcc are you all using?

(ouka=my Core2 Duo E6700, Foxconn/G965):

Code:
ouka ~ $ equery list gcc
 * Searching for gcc ...
[I-O] [  ] cross-i686-pc-linux-gnu/gcc-4.5.3-r2:4.5
[IP-] [  ] sys-devel/gcc-4.5.3-r2:4.5
ouka ~ $ equery list glibc
 * Searching for glibc ...
[I-O] [  ] cross-i686-pc-linux-gnu/glibc-2.14.1-r3:i686-pc-linux-gnu-2.2
[IP-] [  ] sys-libs/glibc-2.14.1-r3:2.2
ouka ~ $ uname -a
Linux ouka 3.3.8-gentoo #1 SMP Mon Jun 25 23:49:50 MDT 2012 x86_64 Intel(R) Core(TM)2 CPU 6700 @ 2.66GHz GenuineIntel GNU/Linux


I don't recall my Pentium4 650 (i865) also running x86_64 having this issue either.

I'm wish (and don't wish...haha...) I could replicate this issue on my machines...
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed to be advocating?
Back to top
View user's profile Send private message
Arrta
Tux's lil' helper
Tux's lil' helper


Joined: 09 Nov 2003
Posts: 102

PostPosted: Sun Jul 08, 2012 3:21 pm    Post subject: Reply with quote

Code:
xen ~ # equery list gcc
 * Searching for gcc ...
[IP-] [  ] sys-devel/gcc-4.4.5:4.4
[IP-] [  ] sys-devel/gcc-4.6.2-r1:4.6
xen ~ # gcc-config -l
 [1] x86_64-pc-linux-gnu-4.4.5
 [2] x86_64-pc-linux-gnu-4.6.2 *
xen ~ # equery list glibc
 * Searching for glibc ...
[IP-] [ -] sys-libs/glibc-2.13-r4:2.2
xen ~ # uname -a
Linux xen 3.2.1-gentoo-r2 #1 SMP Mon Jul 2 00:07:32 EDT 2012 x86_64 Intel(R) Core(TM)2 Quad CPU Q8300 @ 2.50GHz GenuineIntel GNU/Linux
Back to top
View user's profile Send private message
fargred
n00b
n00b


Joined: 19 Oct 2010
Posts: 40

PostPosted: Wed Jul 11, 2012 6:49 am    Post subject: Reply with quote

eccerr0r wrote:

As for the original poster, he should try this too, just to see if there are any similarities (try to build your glibc with a chroot from the livecd/liveusb).

So I did as I wrote – cleaned partitions except boot, unpacked fresh stage3 and returned old /etc and /var/lib/portage/world, then did recompile kernel with modules and emerge -NuDaveb @world. And it works. I checked all my memory with memtest86+ and it didn’t find any errors on two passes.
Back to top
View user's profile Send private message
Arrta
Tux's lil' helper
Tux's lil' helper


Joined: 09 Nov 2003
Posts: 102

PostPosted: Fri Jul 13, 2012 3:22 am    Post subject: Reply with quote

fargred, can you post the results of the following?

equery list gcc
If you have more than one gcc install : gcc-config -l
equery list glibc
uname -a

Note, I only have sys-devel/gcc-4.6.2-r1:4.6 installed now after a --depclean
Back to top
View user's profile Send private message
rufnut
Apprentice
Apprentice


Joined: 16 May 2005
Posts: 185

PostPosted: Sun Jul 15, 2012 1:05 am    Post subject: Reply with quote

I have the same problems as the original post in this thread.

I followed this example:
http://archives.gentoo.org/gentoo-user/msg_fa6fb182200f356322a87fd0aa975a4a.xml

"quickpkg gconf" on another box that is amd64

moved it to my main box (actually I didn't do this as it is the main nfs server)

then "emerge -K gconf" on my main amd64 box.

This is a work around and the original fault still exists.

:)
Back to top
View user's profile Send private message
gasparov
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2006
Posts: 104

PostPosted: Sun Jul 22, 2012 5:42 pm    Post subject: Reply with quote

i found out that the gconf problem is an issue that some people have

https://bugs.gentoo.org/show_bug.cgi?id=411237

now i upgraded to gconf ~amd64 -orbit but that deluge problem came out for me too
Back to top
View user's profile Send private message
EoD
n00b
n00b


Joined: 30 May 2008
Posts: 29

PostPosted: Wed Jul 25, 2012 8:17 am    Post subject: Reply with quote

I got precisely the same issue as the original post. I re-emerged my world and after that a lot of programs which require gconfd (and a few more) started failing.

I found another reference in the mailing list.

A typical error message when I try to start eog out of lxde:
Code:
[   20.040315] NFSD: starting 90-second grace period
[  629.245650] gconfd-2[27107] general protection ip:7febec26ebc1 sp:7ffff6132b98 error:0 in libc-2.14.1.so[7febec1ee000+186000]
[  631.190346] gconfd-2[27109] general protection ip:7f3326477bc1 sp:7fffb6c4af48 error:0 in libc-2.14.1.so[7f33263f7000+186000]
[  633.284954] eog[27102]: segfault at 0 ip 00007f76b5420340 sp 00007fffd17b9870 error 4 in libglib-2.0.so.0.3200.3[7f76b53ac000+123000]
[  946.768847] gconfd-2[27111] general protection ip:7ffc3ac33bc1 sp:7fff00479858 error:0 in libc-2.14.1.so[7ffc3abb3000+186000]
[  946.840145] gconfd-2[27201] general protection ip:7f1c51307bc1 sp:7fff62858c78 error:0 in libc-2.14.1.so[7f1c51287000+186000]
[  946.897261] eog[27196]: segfault at 0 ip 00007fd391f2b340 sp 00007fff3f6b90d0 error 4 in libglib-2.0.so.0.3200.3[7fd391eb7000+123000]
[  953.242346] gconfd-2[27203] general protection ip:7fb121a26bc1 sp:7fff284cf188 error:0 in libc-2.14.1.so[7fb1219a6000+186000]
[  953.298736] gconfd-2[27209] general protection ip:7f092a547bc1 sp:7fff409e8ca8 error:0 in libc-2.14.1.so[7f092a4c7000+186000]
[  953.365806] eog[27204]: segfault at 0 ip 00007fb348661340 sp 00007fff9ac94960 error 4 in libglib-2.0.so.0.3200.3[7fb3485ed000+123000]
[  961.171114] gconfd-2[27211] general protection ip:7f6547845bc1 sp:7ffffd47a378 error:0 in libc-2.14.1.so[7f65477c5000+186000]
[  961.236110] gconfd-2[27226] general protection ip:7f3ae6ecbbc1 sp:7fff578526f8 error:0 in libc-2.14.1.so[7f3ae6e4b000+186000]
[  961.293271] eog[27221]: segfault at 0 ip 00007f12bd32d340 sp 00007fff6a2a3a30 error 4 in libglib-2.0.so.0.3200.3[7f12bd2b9000+123000]
[  989.363431] gconfd-2[27228] general protection ip:7fdaf42dfbc1 sp:7fffa845c248 error:0 in libc-2.14.1.so[7fdaf425f000+186000]
[  989.434697] gconfd-2[27247] general protection ip:7f1b0ab69bc1 sp:7fff05400048 error:0 in libc-2.14.1.so[7f1b0aae9000+186000]
[  989.501016] eog[27242]: segfault at 0 ip 00007fb82cc0c340 sp 00007fff27b8e8e0 error 4 in libglib-2.0.so.0.3200.3[7fb82cb98000+123000]


My computer hardware (apart from the HDD/DVD) is one week old, so I assume it's not a faulty memory or PSU. Memtest also tells me that it's fine.

I used gcc-4.6.3 for the world emerge and after I experienced the failures I copied glibc and gcc via quickpkg from a working machine to the failing one. Without any change in the error.
Emerge info of the failing machine
Emerge info of the working machine

Copying from the same working machine the binary file of "gnome-base/gconf" it works, like suggested. So I guess it's a faulty program in the DEPEND list? Or a RDEPEND of one of the DEPEND-encies? dbus maybe?
_________________
Sun Blade 100 (UltraSPARC IIe) server with multilib and Java
----
Gentoo/SPARC, Gentoo/AMD64, Gentoo/x86
Back to top
View user's profile Send private message
wcg
Guru
Guru


Joined: 06 Jan 2009
Posts: 588

PostPosted: Sat Aug 04, 2012 7:15 am    Post subject: Reply with quote

Quote:
for some reason glibc does not like to be recompiled from my hdd, but works fine when running from a minimal USB/DVD, and possibly a liveUSB/DVD.


I agree, the difference is the kernel. Building in a chroot, either from
the livecd or liveusb, the kernel is the one on the installation image.
When building in an hdd boot session, the kernel is one that you compiled
and installed in /boot yourself. (Meaning your make menuconfig options
are broken some way. Not wrong necessarily, just not compatible in some
way with your cpu/chipset/BIOS_setup.)
_________________
TIA
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
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