Re: Problem with debugging -m32 program

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

 



On 07/09/2018 10:10 AM, Mahmood Naderan via gcc-help wrote:
>> So, your question is not "Why does this crash" but "Why does the -m64
>> version not crash?"
> 
> Should it crash really?

If you're overwriting the stack, then it is undefined behaviour.  Anything
can happen.

> If yes, then I agree with you. Why not specifying m32 doesn't crash?
> BTW, I don't explicitly specify -m64. I just use w/o -m32.

If it's undefined behaviour, not crashing is allowed.  So is crashing.
Anything.

-- 
Andrew Haley
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671



[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