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 05/02/2012 04:34 AM, Martin Husemann wrote:
Most likely a sudo bug, compile it with "-g -O2" and check the core.

Is it really a bug in sudo if the non-optimized code works, but the optimized code causes a crash?

Looking at it in gdb it certainly looks like a mis-aligned access. But, I'm not sure what "<optimized out>" means.

Program received signal SIGBUS, Bus error.
0x00024e24 in make_pwitem (pw=0x204a7aa8, name=0x0) at ./pwutil.c:178
178         memcpy(newpw, pw, sizeof(struct passwd));
(gdb) print newpw
$1 = <optimized out>
(gdb) print pw
$2 = (const struct passwd *) 0x204a7aa8
(gdb)


I'll take a look at the code directly, but I still don't understand how it could be a code bug, rather than an optimizer bug, that only shows when code is optimized.

            - Chris



Home | Main Index | Thread Index | Old Index