Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

segmentatin fault in Itanium 2

abinitiomd
Beginner
327 Views
Hi!
My code worked fine with intel 7.0 compiler.
Recently, I could use intel 8.0 C++ compiler in Itanium 2.
I compiled my program with optimization option -O3 -ivdep_parallel.
While running the program, I got segmentation fault.
To find the place causing the segmentation faults, I recompiled with turning off -O3 -ivdep_parallel -DNDEBUG and with turning on -g option.
And the program works fine.
Do you have any idea with this problem?
By the way, The compiler version is
Intel C++ Itanium Compiler for Itanium-based applications
Version 8.0 Build 20040416 Package ID:
Copyright (C) 1985-2004 Intel Corporation. All rights reserved.
Thank you.
bckim
0 Kudos
1 Reply
abinitiomd
Beginner
327 Views

Hi Again.

I want to be more specific to describe the problem.

Problematic part isone class,

template class Vec

I am using this class throughout my codes. In the other class, this class works like

Vec babo(100, 0.0);

So with optimization options which I mentioned above message, above sentence cause segmentation fault but no problem without optimization.

Now I created new class like,

template class Vec1

Vec1 is exactly same as Vec except name.

And use this class,

Vec1 babo(100, 0.0);

Even with optimization, No problem.

So.. I have no idea what the problem is.

Hope this help you understand my problem.

Thank you,

bckim

0 Kudos
Reply