Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arp list crashes LK #200

Open
antoneliasson opened this issue Aug 10, 2017 · 2 comments
Open

arp list crashes LK #200

antoneliasson opened this issue Aug 10, 2017 · 2 comments

Comments

@antoneliasson
Copy link

Commit 63fa995, Ubuntu 16.04 host.

[5.1.1]antone@lnxantone1:~/git/lk> scripts/do-qemuarm
DO_BLOCK = 0
DO_NET = 0
make[1]: Entering directory '/home/antone/git/lk'
make[2]: Entering directory '/home/antone/git/lk'
PROJECT = qemu-virt-a15-test
PLATFORM = qemu-virt
TARGET = qemu-virt

TOOLCHAIN_PREFIX = arm-none-eabi-
LIBGCC = /usr/lib/gcc/arm-none-eabi/4.9.3/armv7-ar/thumb/softfp/libgcc.a
GLOBAL_COMPILEFLAGS = -g -finline -include ./build-qemu-virt-a15-test/config.h -W -Wall -Wno-multichar -Wno-unused-parameter -Wno-unused-function -Wno-unused-label -Werror=return-type -fno-common -mthumb-interwork  -mcpu=cortex-a15 -mfpu=vfpv3 -mfloat-abi=softfp -mthumb -D__thumb__
including app app/inetsrv app/shell app/stringtests app/tests dev dev/interrupt/arm_gic dev/timer/arm_generic dev/virtio/block dev/virtio/gpu dev/virtio/net kernel lib/aes lib/aes/test lib/cbuf lib/cksum lib/debugcommands lib/fdt lib/fs lib/fs/ext2 lib/fs/fat32 lib/fs/memfs lib/fs/spifs lib/fs/spifs/test lib/libm lib/minip lib/version platform target
including dev/virtio kernel/vm lib/bcache lib/bio lib/console lib/debug lib/fixed_point lib/gfx lib/heap lib/iovec lib/libc lib/pool lib/tftp
including lib/heap/dlmalloc lib/io
LIBGCC = /usr/lib/gcc/arm-none-eabi/4.9.3/armv7-ar/thumb/softfp/libgcc.a
GLOBAL_COMPILEFLAGS = -g -finline -include ./build-qemu-virt-a15-test/config.h -W -Wall -Wno-multichar -Wno-unused-parameter -Wno-unused-function -Wno-unused-label -Werror=return-type -fno-common -mthumb-interwork
GLOBAL_OPTFLAGS = -O2
generating build-qemu-virt-a15-test/platform/qemu-virt/module_config.h
generating build-qemu-virt-a15-test/config.h
generating build-qemu-virt-a15-test/top/module_config.h
generating build-qemu-virt-a15-test/arch/arm/module_config.h
generating build-qemu-virt-a15-test/app/inetsrv/module_config.h
generating build-qemu-virt-a15-test/app/module_config.h
generating build-qemu-virt-a15-test/app/shell/module_config.h
generating build-qemu-virt-a15-test/app/stringtests/module_config.h
generating build-qemu-virt-a15-test/app/tests/module_config.h
generating build-qemu-virt-a15-test/dev/module_config.h
generating build-qemu-virt-a15-test/dev/interrupt/arm_gic/module_config.h
generating build-qemu-virt-a15-test/dev/timer/arm_generic/module_config.h
generating build-qemu-virt-a15-test/dev/virtio/block/module_config.h
generating build-qemu-virt-a15-test/dev/virtio/gpu/module_config.h
generating build-qemu-virt-a15-test/dev/virtio/net/module_config.h
generating build-qemu-virt-a15-test/kernel/module_config.h
generating build-qemu-virt-a15-test/external/lib/aes/module_config.h
generating build-qemu-virt-a15-test/external/lib/aes/test/module_config.h
generating build-qemu-virt-a15-test/lib/cbuf/module_config.h
generating build-qemu-virt-a15-test/external/lib/cksum/module_config.h
generating build-qemu-virt-a15-test/lib/debugcommands/module_config.h
generating build-qemu-virt-a15-test/external/lib/fdt/module_config.h
generating build-qemu-virt-a15-test/lib/fs/module_config.h
generating build-qemu-virt-a15-test/lib/fs/ext2/module_config.h
generating build-qemu-virt-a15-test/lib/fs/fat32/module_config.h
generating build-qemu-virt-a15-test/lib/fs/memfs/module_config.h
generating build-qemu-virt-a15-test/lib/fs/spifs/module_config.h
generating build-qemu-virt-a15-test/lib/fs/spifs/test/module_config.h
generating build-qemu-virt-a15-test/external/lib/libm/module_config.h
generating build-qemu-virt-a15-test/lib/minip/module_config.h
generating build-qemu-virt-a15-test/buildid.h
build-qemu-virt-a15-test/buildid.h.tmp build-qemu-virt-a15-test/buildid.h differ: byte 115, line 3
generating build-qemu-virt-a15-test/lib/version/module_config.h
generating build-qemu-virt-a15-test/platform/module_config.h
generating build-qemu-virt-a15-test/target/module_config.h
generating build-qemu-virt-a15-test/dev/virtio/module_config.h
generating build-qemu-virt-a15-test/kernel/vm/module_config.h
generating build-qemu-virt-a15-test/lib/bcache/module_config.h
generating build-qemu-virt-a15-test/lib/bio/module_config.h
generating build-qemu-virt-a15-test/lib/console/module_config.h
generating build-qemu-virt-a15-test/lib/debug/module_config.h
generating build-qemu-virt-a15-test/lib/fixed_point/module_config.h
generating build-qemu-virt-a15-test/lib/gfx/module_config.h
generating build-qemu-virt-a15-test/lib/heap/module_config.h
generating build-qemu-virt-a15-test/lib/iovec/module_config.h
generating build-qemu-virt-a15-test/lib/libc/module_config.h
generating build-qemu-virt-a15-test/lib/pool/module_config.h
generating build-qemu-virt-a15-test/lib/tftp/module_config.h
generating build-qemu-virt-a15-test/external/lib/heap/dlmalloc/module_config.h
generating build-qemu-virt-a15-test/lib/io/module_config.h
generating build-qemu-virt-a15-test/system-onesegment.ld
compiling lib/version/version.c
linking build-qemu-virt-a15-test/lib/version.mod.o
linking build-qemu-virt-a15-test/lk.elf
   text	   data	    bss	    dec	    hex	filename
    177	      0	      0	    177	     b1	./build-qemu-virt-a15-test/app.mod.o
   2028	      0	      0	   2028	    7ec	./build-qemu-virt-a15-test/app/inetsrv.mod.o
     34	      0	      0	     34	     22	./build-qemu-virt-a15-test/app/shell.mod.o
   2673	     12	     16	   2701	    a8d	./build-qemu-virt-a15-test/app/stringtests.mod.o
  23412	    140	    188	  23740	   5cbc	./build-qemu-virt-a15-test/app/tests.mod.o
  11405	     20	  49280	  60705	   ed21	./build-qemu-virt-a15-test/arch/arm.mod.o
   1515	      0	      0	   1515	    5eb	./build-qemu-virt-a15-test/dev.mod.o
   1077	      0	   1796	   2873	    b39	./build-qemu-virt-a15-test/dev/interrupt/arm_gic.mod.o
   2412	      0	     44	   2456	    998	./build-qemu-virt-a15-test/dev/timer/arm_generic.mod.o
   1967	      0	      4	   1971	    7b3	./build-qemu-virt-a15-test/dev/virtio.mod.o
   1310	      0	      1	   1311	    51f	./build-qemu-virt-a15-test/dev/virtio/block.mod.o
   2730	      0	      4	   2734	    aae	./build-qemu-virt-a15-test/dev/virtio/gpu.mod.o
   2879	      0	      4	   2883	    b43	./build-qemu-virt-a15-test/dev/virtio/net.mod.o
  14108	      0	      0	  14108	   371c	./build-qemu-virt-a15-test/external/lib/aes.mod.o
    885	     12	      0	    897	    381	./build-qemu-virt-a15-test/external/lib/aes/test.mod.o
   3392	     12	      0	   3404	    d4c	./build-qemu-virt-a15-test/external/lib/cksum.mod.o
  11134	      0	      0	  11134	   2b7e	./build-qemu-virt-a15-test/external/lib/fdt.mod.o
  15630	     28	    524	  16182	   3f36	./build-qemu-virt-a15-test/external/lib/heap/dlmalloc.mod.o
  19672	     32	      8	  19712	   4d00	./build-qemu-virt-a15-test/external/lib/libm.mod.o
  18302	     12	   2772	  21086	   525e	./build-qemu-virt-a15-test/kernel.mod.o
  10779	    124	     88	  10991	   2aef	./build-qemu-virt-a15-test/kernel/vm.mod.o
   1575	      0	      0	   1575	    627	./build-qemu-virt-a15-test/lib/bcache.mod.o
   9121	     48	      0	   9169	   23d1	./build-qemu-virt-a15-test/lib/bio.mod.o
   1974	      0	      0	   1974	    7b6	./build-qemu-virt-a15-test/lib/cbuf.mod.o
   3975	     13	     28	   4016	    fb0	./build-qemu-virt-a15-test/lib/console.mod.o
    814	     12	      0	    826	    33a	./build-qemu-virt-a15-test/lib/debug.mod.o
   2509	     12	      8	   2529	    9e1	./build-qemu-virt-a15-test/lib/debugcommands.mod.o
      0	      0	      0	      0	      0	./build-qemu-virt-a15-test/lib/fixed_point.mod.o
   5501	     60	      4	   5565	   15bd	./build-qemu-virt-a15-test/lib/fs.mod.o
   2416	      0	      0	   2416	    970	./build-qemu-virt-a15-test/lib/fs/ext2.mod.o
   2902	      0	      0	   2902	    b56	./build-qemu-virt-a15-test/lib/fs/fat32.mod.o
   1414	      0	      0	   1414	    586	./build-qemu-virt-a15-test/lib/fs/memfs.mod.o
   4900	      0	      0	   4900	   1324	./build-qemu-virt-a15-test/lib/fs/spifs.mod.o
   5350	     12	      0	   5362	   14f2	./build-qemu-virt-a15-test/lib/fs/spifs/test.mod.o
   5029	     12	      0	   5041	   13b1	./build-qemu-virt-a15-test/lib/gfx.mod.o
   3570	     32	      5	   3607	    e17	./build-qemu-virt-a15-test/lib/heap.mod.o
    697	     16	    308	   1021	    3fd	./build-qemu-virt-a15-test/lib/io.mod.o
    180	      0	      0	    180	     b4	./build-qemu-virt-a15-test/lib/iovec.mod.o
   9901	     16	     12	   9929	   26c9	./build-qemu-virt-a15-test/lib/libc.mod.o
  16397	    172	    117	  16686	   412e	./build-qemu-virt-a15-test/lib/minip.mod.o
    574	      0	      0	    574	    23e	./build-qemu-virt-a15-test/lib/pool.mod.o
    935	     12	      0	    947	    3b3	./build-qemu-virt-a15-test/lib/tftp.mod.o
    350	     12	      0	    362	    16a	./build-qemu-virt-a15-test/lib/version.mod.o
    262	     12	      0	    274	    112	./build-qemu-virt-a15-test/platform.mod.o
   1230	    104	     48	   1382	    566	./build-qemu-virt-a15-test/platform/qemu-virt.mod.o
     16	      0	      0	     16	     10	./build-qemu-virt-a15-test/target.mod.o
   1576	      0	     32	   1608	    648	./build-qemu-virt-a15-test/top.mod.o
 230689	    937	  55291	 286917	  460c5	(TOTALS)
generating image: build-qemu-virt-a15-test/lk.bin
generating listing: build-qemu-virt-a15-test/lk.elf.lst
generating listing: build-qemu-virt-a15-test/lk.elf.debug.lst
generating symbols: build-qemu-virt-a15-test/lk.elf.sym
   text	   data	    bss	    dec	    hex	filename
 229936	    940	  55340	 286216	  45e08	build-qemu-virt-a15-test/lk.elf
generating sorted symbols: build-qemu-virt-a15-test/lk.elf.sym.sorted
generating size map: build-qemu-virt-a15-test/lk.elf.size
generating objdump: build-qemu-virt-a15-test/lk.elf.dump
generating build-qemu-virt-a15-test/srcfiles.txt
generating build-qemu-virt-a15-test/include_paths.txt
generating stack usage build-qemu-virt-a15-test/lk.elf.stack
make[2]: Leaving directory '/home/antone/git/lk'
make[1]: Leaving directory '/home/antone/git/lk'
qemu-system-arm -machine virt -cpu cortex-a15 -m 512 -smp 1 -kernel build-qemu-virt-a15-test/lk.elf -nographic

welcome to lk/MP

boot args 0x0 0x0 0x0 0x0
INIT: cpu 0, calling hook 0x8002eba1 (version) at level 0x3ffff, flags 0x1
version:
	arch:     ARM
	platform: QEMU_VIRT
	target:   QEMU_VIRT
	project:  QEMU_VIRT_A15_TEST
	buildid:  G8A90_LOCAL
INIT: cpu 0, calling hook 0x8002fed5 (vm_preheap) at level 0x3ffff, flags 0x1
initializing heap
calling constructors
INIT: cpu 0, calling hook 0x8002ff19 (vm) at level 0x50000, flags 0x1
initializing mp
initializing threads
initializing timers
initializing ports
creating bootstrap completion thread
top of bootstrap2()
INIT: cpu 0, calling hook 0x8002ca6d (pktbuf) at level 0x70000, flags 0x1
pktbuf: creating 256 pktbuf entries of size 1536 (total 393216)
INIT: cpu 0, calling hook 0x8002ec95 (virtio) at level 0x70000, flags 0x1
releasing 0 secondary cpus
initializing platform
initializing target
calling apps_init()
starting app inetsrv
starting internet servers
starting app shell
entering main console loop
] arp list


cpu 0 data abort, translation fault on read
DFAR 0x8 (fault address)
DFSR 0x5 (fault status register)
halting
current_thread 0x801df4b8, name shell
r0  0x00000000 r1  0x800453c0 r2  0x00000000 r3  0x00000000
r4  0x00000000 r5  0x801e07e0 r6  0x800594bc r7  0x800593e8
r8  0x801e0760 r9  0x801e0758 r10 0x00000008 r11 0x801e0928
r12 0x7a0b5ed8 usp 0x00000000 ulr 0x00000000 pc  0x8002b7be
spsr 0x40000173
 usr r13 0x00000000 r14 0x00000000
 fiq r13 0x00000000 r14 0x00000000
 irq r13 0x00000000 r14 0x800122d0
asvc r13 0x801e05c8 r14 0x80010a8b
*svc r13 0x801e0698 r14 0x8002c0c7
 und r13 0x00000000 r14 0x00000000
 sys r13 0x00000000 r14 0x00000000
bottom of stack at 0x801e0698:
0x801e0698: 00000000 80048450 00000061 00000008 |....P...a.......|
0x801e06a8: 800594bc 801dc640 00000000 801e07fc |....@...........|
0x801e06b8: 00000001 00000000 801e07e0 800594bc |................|
0x801e06c8: 00000000 8002c0c7 8002c051 00000000 |........Q.......|
0x801e06d8: 800594bc 80033a55 00009801 80039533 |....U:......3...|
0x801e06e8: 99999999 801e07e0 80033c07 00000001 |.........<......|
0x801e06f8: 80033375 00000000 00000000 800594bc |u3..............|
0x801e0708: 00000000 801e0758 00000000 800594bc |....X...........|
CRASH: starting debug shell... (reason = 9)
entering panic shell loop
! QEMU: Terminated
@travisg
Copy link
Member

travisg commented Aug 10, 2017

Thanks for the report, will look into this.

@nvll this is probably something in the arp cache code you wrote, right?

@nvll
Copy link
Member

nvll commented Aug 10, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants