Port-sparc archive

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

Re: Problems with packages on a netbsd-6 sparc



On Wed, May 02, 2012 at 10:28:13AM -0400, Chris Ross wrote:
>   Is it really a bug in sudo if the non-optimized code works, but the 
> optimized code causes a crash?

Yes, without optimization the total data layout may differ.
The code plays tricks with homegrown allocation, packing together various
structs and strings in a single allocation, i.e. a few lines before
the code you cited:

    cp = (char *) item + sizeof(struct cache_item);
    newpw = (struct passwd *) cp;

(though unless strange optimization options are in place this should not
cause misalignement at first glance)

Martin


Home | Main Index | Thread Index | Old Index