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

Re: strange SIGSEV

On Thu, Mar 30, 2006 at 04:23:41PM +0400, Serge Belyshev wrote:
>                     ^^^^^^
> Typical 32bit BUG. You forgot to prototype getfoo(), so it become
> "int getfoo (void)" by default. "int" is 32 bit on amd64, but
> pointer is 64 bit, so you are calling printf() with truncated
> to 32bit pointer. Use -Wall to detect these errors:

Ouch.  Thanks :)

Robert Millan

Reply to: