Re: Optimized SSE/MMX code crashing at runtime

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

 



On Wed, 2004-10-27 at 11:49 -0400, Craig McNally wrote:
> Hello,
> 
>  I think I may have found a bug, but I'm not sure.  
> 
> When compiling my SSE/MMX code in debug mode (-g), my program works
> fine.  When compiling that same code optimized (O3), my program crashes
> at run time.  In both cases the code compiles without errors.  I am
> using gcc-3.4.1 on a pentium 4.
> 
> I have narrowed the problem down to the _mm_storel_pi() intrinsic.  In
> some instances there is no problem.  However, further into the program,
> the very same command with the same syntax causes the program to crash
> at runtime.
> 
> Any suggestions would be greatly appreciated.

You have not said what platform you are working on.  If it is Linux
intel you should probably use valgrind to check for memory corruption.
There are other tools on other platforms.

KenF


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux