Re: c++ sigmentation fault happens only in linux

2005-01-27 Thread Shachar Shemesh
guy keren wrote: int i; int j = i; int k = j; if (k > 0) blablabla... valgrind will only point the last one as an error (at least, that's how it is in valgrind-1.0.3). Actually, that's intentional. Otherwise, consider the following example: struct padding { char a; int b; } struct a, b; .

Re: c++ sigmentation fault happens only in linux

2005-01-26 Thread guy keren
On Wed, 26 Jan 2005, Orna Agmon wrote: > On Wed, 26 Jan 2005, guy keren wrote: > > On Mon, 24 Jan 2005, Orna Agmon wrote: > > > > > Valgrind is not always correct. It sometimes reports errors which do not > > > exists - they have no reason to exist and other memory checkers (such as > > > third)

Re: c++ sigmentation fault happens only in linux

2005-01-25 Thread Orna Agmon
On Wed, 26 Jan 2005, guy keren wrote: > On Mon, 24 Jan 2005, Orna Agmon wrote: > > > Valgrind is not always correct. It sometimes reports errors which do not > > exists - they have no reason to exist and other memory checkers (such as > > third) do not find them. > > that, ofcourse, is no proof - t

Re: c++ sigmentation fault happens only in linux

2005-01-25 Thread guy keren
On Mon, 24 Jan 2005, Orna Agmon wrote: > Valgrind is not always correct. It sometimes reports errors which do not > exists - they have no reason to exist and other memory checkers (such as > third) do not find them. that, ofcourse, is no proof - the other checker might be too limited, or have a

Re: c++ sigmentation fault happens only in linux

2005-01-24 Thread Orna Agmon
On Mon, 24 Jan 2005, Yedidyah Bar-David wrote: > Aviv, nobody thought that modern C++ compilers/OSes can't compile/run > this piece of code. The bug is obviously elsewhere in your program. Now, > traditionally, it would be hard to debug - you'd, as someone else > suggested, find a minimal subset of

Re: c++ sigmentation fault happens only in linux

2005-01-24 Thread Yedidyah Bar-David
On Mon, Jan 24, 2005 at 11:12:28AM +0200, Aviv Goll wrote: > On Mon, 24 Jan 2005 05:16:23 +0200, Micha Feigin <[EMAIL PROTECTED]> wrote: > > At Mon, 24 Jan 2005 02:45:52 +0200, > > Aviv Goll wrote: > > > > > > hi, > > > I'm currently writing an assignment in c++ using g++. > > > according to some

Re: c++ sigmentation fault happens only in linux

2005-01-24 Thread Aviv Goll
On Mon, 24 Jan 2005 05:16:23 +0200, Micha Feigin <[EMAIL PROTECTED]> wrote: > At Mon, 24 Jan 2005 02:45:52 +0200, > Aviv Goll wrote: > > > > hi, > > I'm currently writing an assignment in c++ using g++. > > according to some printouts, during the following lines: > > > > stringstream Fstr; > > fs

Re: c++ sigmentation fault happens only in linux

2005-01-24 Thread shtirlitz
Quoting Aviv Goll <[EMAIL PROTECTED]>: You better fix all vargrind errors. It takes time to understand why they are happening. The stability of my applications have bin raised significantly high after fixing all vargrind errors. Additional thing to test in valgring is gracefull shutdown of you ap

Re: c++ sigmentation fault happens only in linux

2005-01-23 Thread Micha Feigin
At Mon, 24 Jan 2005 02:45:52 +0200, Aviv Goll wrote: > > hi, > I'm currently writing an assignment in c++ using g++. > according to some printouts, during the following lines: > > stringstream Fstr; > fstr<<"blah blah"; > Just tried running just that and had no problem. Do notice that in the

c++ sigmentation fault happens only in linux

2005-01-23 Thread Aviv Goll
hi, I'm currently writing an assignment in c++ using g++. according to some printouts, during the following lines: stringstream Fstr; fstr<<"blah blah"; the seconed line creates a sigmentation fault. other lines in the project doesn't create such a sig. fault and even more weird is that I uplo