Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Segmenation fault bei bootstrap und glibc
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
NightDragon
Veteran
Veteran


Joined: 21 Aug 2004
Posts: 1156
Location: Vienna (Austria)

PostPosted: Mon Feb 14, 2005 1:33 am    Post subject: Segmenation fault bei bootstrap und glibc Reply with quote

Hi Zusammen.
Ich bekomme ständig bei der selben Zeile auf einem Athlon-XP System mit 1 GB RAM
ein Segmentation fault.
Der bootstrap-prozess setzt immer genau bei der selben Zeile aus.

Kanns sein das hier an meinen Flags was nicht stimmt?:
Code:
CFLAGS="-O3 -pipe -march=athlon-xp -fomit-frame-pointer -ffast-math -falign-functions=4"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
#LDFLAGS="-Wl,-O1 -Wl,--relax -Wl,--enable-new-dtags -Wl,--sort-common -s"
FEATURES="ccache candy"
MAKEOPTS="-j2"
PORTAGE_BINHOST="http://gentoo.phaseburn.net/packages/"
CCACHE_SIZE="200M"


Bei memtest bekomme ich immer irgendwelche fehler. aber die siend völlig sporadisch.
Den RAM hatte ich schon ausgetauscht ohne erfolg. Der neue RAM funktioniert sonst völlig problemlos.

Könnte der Fehler von der Festplatte her kommen? Aber warum immer genau bei der selben Zeile?

Ich habe hier schon rumgesucht. Aber nichts gefunden das mir wirklich hilft. Das gesamte System wurde schon durchprobiert. Es scheint wie verhext. es können keine Hardware-fehler gefunden werden. Auch wenn memtest immer fehler meldet. aber das bringt memtest irgendwie bei allen rechnern die ich bis jetzt mal mit memtest durchprobiert habe.
_________________
You are the problem too all my solutions ;)
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Mon Feb 14, 2005 1:38 am    Post subject: Reply with quote

huch! ich habe auch ein glibc problem (aber nur beim bootstrapen) mit einem athlon xp und 1gb memory. schau dir mal folgendes an: https://bugs.gentoo.org/show_bug.cgi?id=81853

ist es das was du hast?

gruss

steve
Back to top
View user's profile Send private message
NightDragon
Veteran
Veteran


Joined: 21 Aug 2004
Posts: 1156
Location: Vienna (Austria)

PostPosted: Mon Feb 14, 2005 2:02 am    Post subject: Reply with quote

Code:
sln: stack smashing attack in function __guard_setup()
make[1]: *** [install-symbolic-link] Aborted
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20040808-r1/work/glibc-2.3.3'
make: *** [install] Error 2


Nein, bei mir steht in etwa sowas wie
[nscd/irgendwas] Segmentation fault.
...
ich muss es morgen mal reproduzieren.
Witzig ist nur, das der fehler immer genau an der selben stelle auftaucht. deswegen vermute ich mal das es kein hardwarefehler ist.

ich werde morgen nochmals bootstrap laufen lassen und dann die genau fehlermeldung posten.
_________________
You are the problem too all my solutions ;)
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Mon Feb 14, 2005 2:03 am    Post subject: Reply with quote

bin mal gespannt.


gruss und gute nacht

steve
Back to top
View user's profile Send private message
c07
Veteran
Veteran


Joined: 25 Oct 2002
Posts: 1091

PostPosted: Mon Feb 14, 2005 11:51 am    Post subject: Re: Segmenation fault bei bootstrap und glibc Reply with quote

Bemerkung am Rand: -falign-functions=4 ist für einen Athlon nicht sonderlich sinnvoll. Günstig ist für den entweder der Standard (16), weil dann die Befehlsqueue zu Beginn in einem Rutsch gefüllt werden kann oder 64, weil damit Cachelines optimal ausgenutzt werden. Oder 1, weil damit kein Platz verschwendet wird. Oder die bedingte Ausrichtung mit Werten von 9 bis 15 bzw. 33 bis 63.
Back to top
View user's profile Send private message
NightDragon
Veteran
Veteran


Joined: 21 Aug 2004
Posts: 1156
Location: Vienna (Austria)

PostPosted: Mon Feb 14, 2005 1:25 pm    Post subject: Reply with quote

Danke für die Info!
Ich habs auf 16 geändert und lass bootstrap gerade nochmals ablaufen.

Ausgechlossen sind mal folgende Punkte:
a) Übertemperatur vom RAM und CPU
b) CPU-Fehler

Aber was ich immer noch nicht verstehe ist, dass memtest echt bei jedem Rechner den ich habe sau viele Fehler berichtet. Aber bis auf dieses System, das immer an der selben Stelle abbricht, hab ich keine Probleme.
_________________
You are the problem too all my solutions ;)
Back to top
View user's profile Send private message
schotter
Guru
Guru


Joined: 30 Nov 2004
Posts: 497
Location: Germany, Bavaria, Bayreuth, Pottenstein, Tüchersfeld

PostPosted: Mon Feb 14, 2005 2:58 pm    Post subject: Reply with quote

Hab vor kurzem auch erst 'n meinen AthlonXP 2500+ mit Gentoo erfreut. Ebenfalls 1GB Ram, kein swap und wenn ich den bzw. solche Fehler bekam, hab ich erstmal damit weiter kompiliert was als nächstes gekommen wäre, also was emerge -p spricht. Und wenn's dann immernoch nicht geholfen hat, dann hab ich die USE-Variablen verändert bis entfernt.
Back to top
View user's profile Send private message
NightDragon
Veteran
Veteran


Joined: 21 Aug 2004
Posts: 1156
Location: Vienna (Austria)

PostPosted: Mon Feb 14, 2005 3:01 pm    Post subject: Reply with quote

ACHTUNG! EDIT!! Die meldung hat sich geändert, aber dafür ists nun die hier die immer kommt:

Hi!

die USE-Variablen hab ich beriets zurückgesetzet.
Jetzt konnte ich auch mal die Stelle rauskopieren wo er abhaut:
Code:
gcc -c    -O -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -W
traditional -pedantic -Wno-long-long   -DHAVE_CONFIG_H    -I. -I. -I/var/tmp/portage/gcc-3.3
.5-r1/work/gcc-3.3.5/gcc -I/var/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/gcc/. -I/var/tmp/por
tage/gcc-3.3.5-r1/work/gcc-3.3.5/gcc/config -I/var/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/g
cc/../include /var/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/gcc/c-dump.c -o c-dump.o
gcc -c    -O -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -W
traditional -pedantic -Wno-long-long   -DHAVE_CONFIG_H    -I. -I. -I/var/tmp/portage/gcc-3.3
.5-r1/work/gcc-3.3.5/gcc -I/var/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/gcc/. -I/var/tmp/por
tage/gcc-3.3.5-r1/work/gcc-3.3.5/gcc/config -I/var/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/g
cc/../include /var/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/gcc/cpplib.c -o cpplib.o
/var/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/gcc/cpplib.c: In function `read_flag':
/var/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/gcc/cpplib.c:742: internal compiler error: Segm
entation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.
make[2]: *** [cpplib.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/gcc-3.3.5-r1/work/build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.3.5-r1/work/build/gcc'
make: *** [bootstrap-lean] Error 2

!!! ERROR: sys-devel/gcc-3.3.5-r1 failed.
!!! Function gcc_do_make, Line 1093, Exitcode 2
!!! emake failed with bootstrap-lean
!!! If you need support, post the topmost build error, NOT this status message.


Ich werde gleich mal auf der genannten Seite etwas rumsuchen. Evtl. find ich ne lösung.

Swap ist bei mir aktive und wird auch bereits verwendet.
_________________
You are the problem too all my solutions ;)
Back to top
View user's profile Send private message
amne
Bodhisattva
Bodhisattva


Joined: 17 Nov 2002
Posts: 6378
Location: Graz / EU

PostPosted: Mon Feb 14, 2005 9:02 pm    Post subject: Reply with quote

Ich würde mal -ffast-math rausnehmen bzw überhaupt auf die stabilen CFLAGS zurückgehen, sonst nimmt dir keinen einen Bugreport ab. Falls du nicht immer wieder von vorne anfängst: Leer den ccache mal aus.
_________________
Dinosaur week! (Ok, this thread is so last week)
Back to top
View user's profile Send private message
NightDragon
Veteran
Veteran


Joined: 21 Aug 2004
Posts: 1156
Location: Vienna (Austria)

PostPosted: Mon Feb 14, 2005 9:44 pm    Post subject: Reply with quote

So. hab mal die Flags auf die sicheren geändert.
Mal schauen was sich tut.
Evtl. läufts ja schon damit.
Aber danke für die Info.
_________________
You are the problem too all my solutions ;)
Back to top
View user's profile Send private message
c07
Veteran
Veteran


Joined: 25 Oct 2002
Posts: 1091

PostPosted: Tue Feb 15, 2005 12:22 am    Post subject: Reply with quote

Wobei das gcc-Ebuild eh alle Flags außer -pipe und -march strippt (aus -O3 wird -O2) und das hier die Stage1 war, die sowieso ausschließlich mit -O1 gebaut wird (wie man ja im Log sieht). Wenn an den CFLAGS hier direkt was was ändert, dann höchstens die STAGE1_CFLAGS, die ich testweise mal auf -O0 oder auch -O2 setzen würd. Das eigentliche Problem muss aber im alten Compiler sein, der eigentlich grad ersetzt werden soll.
Back to top
View user's profile Send private message
NightDragon
Veteran
Veteran


Joined: 21 Aug 2004
Posts: 1156
Location: Vienna (Austria)

PostPosted: Tue Feb 15, 2005 4:44 am    Post subject: Reply with quote

Okay.
Ich habe jetzt die safe-Flags gesetzt.

Wies ausschaut, liegts nicht daran.

@c07
Du hast recht. es passiert genau in dem Abschnitt!
Hm. das seltsame ist, das jetzt nachdem ich die make.conf wirklich aufs einfachste abgespeckt habe, die Fehler wechseln.
Aber immer ein Seg. fault.
Morgen werde ich das Timing des Prozessors und des RAM's checken.
Evtl. auch die Festplatte ... ich vermute sogar das diese einen defekt haben könnte.

[EDIT]
CPU getauscht, selber effekt. Jetzt wär noch der RAM auszutesten.
_________________
You are the problem too all my solutions ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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