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

cause system crash #7

Open
emctoo opened this issue Dec 17, 2015 · 3 comments
Open

cause system crash #7

emctoo opened this issue Dec 17, 2015 · 3 comments

Comments

@emctoo
Copy link
Contributor

emctoo commented Dec 17, 2015

Running on ix0 interface:

sudo bricks-duplicate ix0 4

Another terminal runs:

sudo ./pkt-gen -i netmap:ix0}3 -f rx

Well it works. But ctrl+c to kill pkt-gen process, system crashes.

Systme info,

uname -a
FreeBSD xd 10.2-RELEASE-p2 FreeBSD 10.2-RELEASE-p2 #0: Thu Sep 10 20:00:45 CST 2015     root@ix:/usr/obj/usr/src/sys/NETMAP  amd64

Crash info in /var/log/message:

Dec 17 16:36:35 xd kernel: ix0: permanently promiscuous mode enabled
Dec 17 16:36:48 xd kernel: 408.141691 [1233] netmap_mem_global_config  reconfiguring
Dec 17 16:38:10 xd kernel: 490.349551 [ 325] netmap_pipe_krings_create 0xfffff8000f90b400: case 1, create everything
Dec 17 16:38:10 xd kernel: 490.351018 [ 325] netmap_pipe_krings_create 0xfffff8000f850400: case 1, create everything
Dec 17 16:38:10 xd kernel: 490.352474 [ 325] netmap_pipe_krings_create 0xfffff8000f90bc00: case 1, create everything
Dec 17 16:38:10 xd kernel: 490.353934 [ 325] netmap_pipe_krings_create 0xfffff8000f90c400: case 1, create everything
Dec 17 16:43:19 xd syslogd: kernel boot file is /boot/kernel/kernel
Dec 17 16:43:19 xd kernel: 
Dec 17 16:43:19 xd kernel: 
Dec 17 16:43:19 xd kernel: Fatal trap 12: page fault while in kernel mode
Dec 17 16:43:19 xd kernel: cpuid = 7; apic id = 02
Dec 17 16:43:19 xd kernel: fault virtual address        = 0x0
Dec 17 16:43:19 xd kernel: fault code           = supervisor read instruction, page not present
Dec 17 16:43:19 xd kernel: instruction pointer  = 0x20:0x0
Dec 17 16:43:19 xd kernel: stack pointer                = 0x28:0xfffffe10483d0700
Dec 17 16:43:19 xd kernel: frame pointer                = 0x28:0xfffffe10483d0770
Dec 17 16:43:19 xd kernel: code segment         = base 0x0, limit 0xfffff, type 0x1b
Dec 17 16:43:19 xd kernel: = DPL 0, pres 1, long 1, def32 0, gran 1
Dec 17 16:43:19 xd kernel: processor eflags     = interrupt enabled, resume, IOPL = 0
Dec 17 16:43:19 xd kernel: current process              = 3267 (pkt-gen)
Dec 17 16:43:19 xd kernel: trap number          = 12
Dec 17 16:43:19 xd kernel: panic: page fault
Dec 17 16:43:19 xd kernel: cpuid = 0
Dec 17 16:43:19 xd kernel: KDB: stack backtrace:
Dec 17 16:43:19 xd kernel: #0 0xffffffff8099c650 at kdb_backtrace+0x60
Dec 17 16:43:19 xd kernel: #1 0xffffffff80960206 at vpanic+0x126
Dec 17 16:43:19 xd kernel: #2 0xffffffff809600d3 at panic+0x43
Dec 17 16:43:19 xd kernel: #3 0xffffffff80d622fb at trap_fatal+0x36b
Dec 17 16:43:19 xd kernel: #4 0xffffffff80d625fd at trap_pfault+0x2ed
Dec 17 16:43:19 xd kernel: #5 0xffffffff80d61c9a at trap+0x47a
Dec 17 16:43:19 xd kernel: #6 0xffffffff80d48012 at calltrap+0x8
Dec 17 16:43:19 xd kernel: #7 0xffffffff80680d15 at netmap_do_unregif+0xa5
Dec 17 16:43:19 xd kernel: #8 0xffffffff80680bce at netmap_dtor_locked+0x3e
Dec 17 16:43:19 xd kernel: #9 0xffffffff80680e2a at netmap_dtor+0x4a
Dec 17 16:43:19 xd kernel: #10 0xffffffff806859b3 at netmap_dev_pager_dtor+0x73
Dec 17 16:43:19 xd kernel: #11 0xffffffff80bce0f7 at dev_pager_dealloc+0x57
Dec 17 16:43:19 xd kernel: #12 0xffffffff80beb156 at vm_object_terminate+0x246
Dec 17 16:43:19 xd kernel: #13 0xffffffff80bea11e at vm_object_deallocate+0x1e
Dec 17 16:43:19 xd kernel: #14 0xffffffff80be084d at vm_map_process_deferred+0x5d
Dec 17 16:43:19 xd kernel: #15 0xffffffff80be8928 at sys_munmap+0x1a8
Dec 17 16:43:19 xd kernel: #16 0xffffffff80d62c17 at amd64_syscall+0x357
Dec 17 16:43:19 xd kernel: #17 0xffffffff80d482fb at Xfast_syscall+0xfb
@emctoo
Copy link
Contributor Author

emctoo commented Dec 17, 2015

I tried the same thing on my FreeBSD 11.0-CURRENT, everything works well.

@ajamshed
Copy link
Contributor

Hi emctoo,

We tested packet-bricks on FreeBSD-10.2 but we patched the kernel with the latest netmap driver. We did not face any issues. Can you please try patching your kernel with the latest driver as well?

@emctoo
Copy link
Contributor Author

emctoo commented Dec 19, 2015

@ajamshed
I'll try it later.

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

2 participants