Re: GCC compiles but code crashes. Works w/ Intel compiler

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

 



Hi Paul,

On 2023-06-18 at 06:23 -07, Paul Smith <paul@xxxxxxxxxxxxxxxxx> wrote...
> On Sun, 2023-06-18 at 05:51 -0700, Ken Mankoff via Gcc-help wrote:
>> > It crashes? How? What causes it to crash? What does gdb show?
>> 
>> An array contains a value (1.8e+215) causing an assert to fail.
>
> Now, did you actually MEAN you got an assert (e.g., from an assert()
> call or equivalent)?  Or is that another euphemism?

Yes, a real assert. That number should be near 1.

> I've been programming for a lot of years, and the number one rule I've
> seen be repeatedly re-affirmed is: it's not a bug in the compiler, it's
> a bug in the code.

Agreed - I did not mean to imply this was a gcc bug.

I can provide code, a full stack-trace, etc. but I will try some other things before I pollute this list with vagueness.

Thanks,

  -k.



[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