This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Segmentation Faults
- From: Zack Weinberg <zack at codesourcery dot com>
- To: José Miguel Fernandes <Jose dot M dot Fernandes at siemens dot com>
- Cc: <bug-gcc at gnu dot org>
- Date: Fri, 29 Nov 2002 09:52:26 -0800
- Subject: Re: Segmentation Faults
- References: <852246F66844CC41A5FE1EF659F98F901E65F0@lisi053a.siemens.pt>
José Miguel Fernandes <Jose.M.Fernandes@siemens.com> writes:
> Dear Sirs,
>
> The fault may be in the compiler or the OS. I used to have my old
> Pentium Pro 200, OS was Solaris, GCC 2.95.2 24/10/99. Everything was
> OK during execution of my applications.
>
> Now I have P4 1.8 (Compaq Presario 2820EA), GCC 3.2 03/09/02,
> Xfree86 4.2.0, Red Hat 8.0 3.2-7, and I have Segmentation faults
> during program execution, exactly for the same code. When compiling
> and linking no errors are produced. I suspect of options in the GCC
> specs file ! I don't know.
You do not give enough information for us to diagnose the problem.
The most likely cause is that there is a bug in your code; GCC 2.95
happened to generate executables which worked correctly, by accident,
but 3.2 does not.
You must spend some more time investigating the problem yourself.
zw