Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: ipfstat dumps core on sparc - unaligned read?
In article <rmiiqmsneu2.fsf%fnord.ir.bbn.com@localhost>,
Greg Troxel <gdt%ir.bbn.com@localhost> wrote:
>-=-=-=-=-=-
>
>
>I have a Sparc Classic (with very little memory) running netbsd-4.
>ifpstat with no arguments runs, and all combinations of ipfstat
>-[in]h?6? work except -inh, but only the v4 input ruleset is non-empty.
>So it seems something that prints per-rule hits has alignment issues.
>Is anyone else seeing this? It seems to work on sparc64, interestingly
>enough.
>
>#> gdb /usr/sbin/ipfstat
>GNU gdb 6.5
>Copyright (C) 2006 Free Software Foundation, Inc.
>GDB is free software, covered by the GNU General Public License, and you are
>welcome to change it and/or distribute copies of it under certain conditions.
>Type "show copying" to see the conditions.
>There is absolutely no warranty for GDB. Type "show warranty" for details.
>This GDB was configured as "sparc--netbsdelf"...(no debugging symbols found)
>
>(gdb) run -inh
>Starting program: /usr/sbin/ipfstat -inh
>(no debugging symbols found)
>(no debugging symbols found)
>(no debugging symbols found)
>(no debugging symbols found)
>(no debugging symbols found)
>
>Program received signal SIGBUS, Bus error.
>0x00012dcc in printlivelist ()
>(gdb) bt
>#0 0x00012dcc in printlivelist ()
>#1 0x00015178 in main ()
This kind of code probably does not help, try replacing with calloc().
u_long array[1000];
memset(array, 0xff, sizeof(array));
fp = (frentry_t *)array;
christos
Home |
Main Index |
Thread Index |
Old Index