help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Segmentation Fault


From: Lionel B
Subject: Re: Segmentation Fault
Date: Mon, 16 May 2005 10:07:34 +0100

"Christian Christmann" <plfriko@yahoo.de> wrote in message 
news:4285db50$0$25678$9b4e6d93@newsread2.arcor-online.net...
> Hi,
>
> I'm having a scientific program which is said to
> be running on both Linux and Solaris.
> When I compile and run the program on Linux
> with gcc3.2.3 everything is fine.
> On Solaris, I'm using gcc3.2.1. After compiling and
> running the program I get a "Segmentation fault"
> when running some particular functions. The
> other functions are ok.
>
> What could be the reason for that run-time error?

Works on one system, fails on another... sounds like a classic case of 
"undefined behaviour" - i.e. a bug in your
program.

> Maybe a g++ bug?

What makes you think that?

If you can't find the source of the problem, try posting a minimal, compilable 
program that replicates the problem.

-- 
Lionel B



reply via email to

[Prev in Thread] Current Thread [Next in Thread]