Port-sparc64 archive

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

Re: sparc64 fine with ral cards



On Thu, 15 Apr 2010, Julian Coleman wrote:

> > just for the records your replaced -O2 with -g?
> > Or could gdb already not pinpoint the address with -O2 -g?
> 
> gdb couldn't pinpoint the address when I added "-g" (so using "-O2 -g") - it
> mainly said "value optimized out" for variables and also couldn't find the
> enclosing function.  So, I removed "-O2 -Wunitialized" and compiled with only
> "-g".  Then, the problem was gone, so I need to chase it down (probably by
> adding printf()'s ;-), unless someone beats me to it.  The place where it
> dies is:

Probably won't work since this is likely a bug in the optimizer and 
inserting function calls adds sequence points which also will probably 
make the problem go away.

> 
>   #0  0x00000000001152e0 in l2_packet_init ()
>   dist/wpa/src/l2_packet/l2_packet_freebsd.c:187
> 
> This line is actually in eth_get(): 
> 
> 186:            if (sdl->sdl_family != AF_LINK || sdl->sdl_nlen == 0 ||
> 187:                os_memcmp(sdl->sdl_data, device, sdl->sdl_nlen) != 0)

Can you show the disassembly of 20 or so lines around the optimized 
section that generates the fault as well as the register contents from 
the fault?

Eduardo


Home | Main Index | Thread Index | Old Index