This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: other/10279: g++ exits with segmentation-fault
- From: Patrick <plax at chemie dot uni-dortmund dot de>
- To: bangerth at dealii dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org,nobody at gcc dot gnu dot org, plax at chemie dot uni-dortmund dot de,gcc-gnats at gcc dot gnu dot org
- Date: Tue, 1 Apr 2003 08:57:30 +0200
- Subject: Re: other/10279: g++ exits with segmentation-fault
- References: <20030331161020.4343.qmail@sources.redhat.com>
Hallo bangerth at dealii dot org!
I am very sure that this is not a hardware bug.
In fact, I run this computer for three months now with
Slackware 9.0-pre and now Slackware 9.0.0 without
any problems. gcc3 is the only program that has these crashes,
in Slackware 9.0-pre I installed gcc2 and it worked quite
fine.
I have used memtest86 over one weekend and it didn't report
any errors with the ram. I am sorry for not telling you the flags
for compilation, but I am more a "./configure && make"-user
than a real programmer. To cite the output by make:
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../dcop -I../../libltdl -I../../kdecore \
-I../../kdeui -I../../kio -I../../kio/kio -I../../kio/kfile -I../.. -I/usr/lib/qt/include \
-I. -I/opt/kde/include -DQT_THREAD_SUPPORT -D_REENTRANT \
-Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W \
-Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi \
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align \
-Wconversion -O2 -fno-exceptions -fno-check-new \
-DQT_NO_TRANSLATION -DQT_CLEAN_NAMESPACE \
-DQT_NO_ASCII_CAST -DQT_NO_COMPAT -c \
-o dcop.o `test -f 'dcop.cpp' || echo './'`dcop.cpp
About the frequency of the segmentation faults: In a software package like
kdelibs-3.1.1, I get about 20-30 of these segmentation faults, so on this
system I am unable to use gcc3. Regarding this frequency and the experienced
stability of other software on my system, I am sure that this is an error
in gcc3 or any of its development tools/libs.
If you are interested in following this bug and you need more information,
please send an email to me. At the moment I have no idea which more
information is useful for you because I'm not a programmer. Nevertheless
I am rather willing to help you if I can, although I have now decided to downgrade
back to gcc2.
Sincerely,
Patrick
Du schriebst am Montag, 31. März 2003 18:10:
> Synopsis: g++ exits with segmentation-fault
>
> State-Changed-From-To: open->closed
> State-Changed-By: bangerth
> State-Changed-When: Mon Mar 31 16:10:19 2003
> State-Changed-Why:
> Compiles fine for me. Two remarks:
> - you don't tell us which flags you used for compilation
> - sporadic non-reproducible crashed are more often than not
> problems with the hardware, in particular bad memory
> sticks. Try running a memory checking tool for a night
> on your machine to find out whether this is really the
> problem.
>
> Wolfgang
>
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&
>pr=10279