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




To: Chris Ross <cross+netbsd%distal.com@localhost>

Subject: Re: Problems with packages on a netbsd-6 sparc

From: Martin Husemann <martin%duskware.de@localhost>

Date: Wed, 2 May 2012 17:27:54 +0200


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


Follow-Ups:

Re: Problems with packages on a netbsd-6 sparc
From: Martin Husemann


References:

Problems with packages on a netbsd-6 sparc
From: Chris Ross

Re: Problems with packages on a netbsd-6 sparc
From: Martin Husemann

Re: Problems with packages on a netbsd-6 sparc
From: Chris Ross




Prev by Date: Re: Problems with packages on a netbsd-6 sparc

Next by Date: Re: Problems with packages on a netbsd-6 sparc

Previous by Thread: Re: Problems with packages on a netbsd-6 sparc

Next by Thread: Re: Problems with packages on a netbsd-6 sparc

Indexes:

reverse Date

reverse Thread

Old Index



Home | Main Index | Thread Index | Old Index