{"action":"created","issue":{"url":"https://api.github.com/repos/luigirizzo/netmap/issues/229","repository_url":"https://api.github.com/repos/luigirizzo/netmap","labels_url":"https://api.github.com/repos/luigirizzo/netmap/issues/229/labels{/name}","comments_url":"https://api.github.com/repos/luigirizzo/netmap/issues/229/comments","events_url":"https://api.github.com/repos/luigirizzo/netmap/issues/229/events","html_url":"https://github.com/luigirizzo/netmap/issues/229","id":179859963,"number":229,"title":"Netmap app crashing FreeBSD","user":{"login":"alexhebra","id":12926415,"avatar_url":"https://avatars.githubusercontent.com/u/12926415?v=3","gravatar_id":"","url":"https://api.github.com/users/alexhebra","html_url":"https://github.com/alexhebra","followers_url":"https://api.github.com/users/alexhebra/followers","following_url":"https://api.github.com/users/alexhebra/following{/other_user}","gists_url":"https://api.github.com/users/alexhebra/gists{/gist_id}","starred_url":"https://api.github.com/users/alexhebra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexhebra/subscriptions","organizations_url":"https://api.github.com/users/alexhebra/orgs","repos_url":"https://api.github.com/users/alexhebra/repos","events_url":"https://api.github.com/users/alexhebra/events{/privacy}","received_events_url":"https://api.github.com/users/alexhebra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-09-28T19:05:46Z","updated_at":"2016-09-28T21:20:54Z","closed_at":null,"body":"Hi,\r\n\r\nI've a netmap application routing (it takes my bgp routes, like netmap-fwd), but when i start it netmap just crash the system. I turned on kernel debug mode on FreeBSD and i can see the following message:\r\n\r\nSep 28 15:58:00 rt1 kernel: Fatal trap 12: page fault while in kernel mode\r\nSep 28 15:58:00 rt1 kernel: cpuid = 2; apic id = 04\r\nSep 28 15:58:00 rt1 kernel: fault virtual address\t= 0xfffffd78f2a32e20\r\nSep 28 15:58:00 rt1 kernel: fault code\t\t= supervisor read data, page not present\r\nSep 28 15:58:00 rt1 kernel: instruction pointer\t= 0x20:0xffffffff80693f99\r\nSep 28 15:58:00 rt1 kernel: stack pointer\t        = 0x28:0xfffffe0237e773b0\r\nSep 28 15:58:00 rt1 kernel: frame pointer\t        = 0x28:0xfffffe0237e77480\r\nSep 28 15:58:00 rt1 kernel: code segment\t\t= base 0x0, limit 0xfffff, type 0x1b\r\n\r\n(kgdb) list *0xffffffff80693f99\r\n0xffffffff80693f99 is in netmap_transmit (/usr/src/sys/dev/netmap/netmap.c:3025).\r\n3020\t\t}\r\n3021\t\r\n3022\t\ttxr = MBUF_TXQ(m);\r\n3023\t\ttx_kring = &NMR(na, NR_TX)[txr];\r\n3024\t\r\n3025\t\tif (tx_kring->nr_mode == NKR_NETMAP_OFF) {\r\n3026\t\t\treturn MBUF_TRANSMIT(na, ifp, m);\r\n3027\t\t}\r\n3028\t\r\n3029\t\tq = &kring->rx_queue;\r\nCurrent language:  auto; currently minimal\r\n(kgdb) bt\r\n#0  doadump (textdump=<value optimized out>) at pcpu.h:219\r\n#1  0xffffffff8097f642 in kern_reboot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:486\r\n#2  0xffffffff8097fa25 in vpanic (fmt=<value optimized out>, ap=<value optimized out>) at /usr/src/sys/kern/kern_shutdown.c:889\r\n#3  0xffffffff8097f8b3 in panic (fmt=0x0) at /usr/src/sys/kern/kern_shutdown.c:818\r\n#4  0xffffffff80daa69b in trap_fatal (frame=<value optimized out>, eva=<value optimized out>) at /usr/src/sys/amd64/amd64/trap.c:858\r\n#5  0xffffffff80daa99d in trap_pfault (frame=0xfffffe0237e77300, usermode=<value optimized out>) at /usr/src/sys/amd64/amd64/trap.c:681\r\n#6  0xffffffff80da9fea in trap (frame=0xfffffe0237e77300) at /usr/src/sys/amd64/amd64/trap.c:447\r\n#7  0xffffffff80d9007c in calltrap () at /usr/src/sys/amd64/amd64/exception.S:238\r\n#8  0xffffffff80693f99 in netmap_transmit (ifp=0xfffff800054c1800, m=0xfffff801ac443400) at /usr/src/sys/dev/netmap/netmap.c:3025\r\n#9  0xffffffff80a4decd in ether_output (ifp=0xfffff800054c1800, m=0xfffff801ac443400, dst=<value optimized out>, ro=<value optimized out>) at /usr/src/sys/net/if_ethersubr.c:438\r\n#10 0xffffffff80abb6fb in ip_output (m=0xfffff801ac443400, opt=<value optimized out>, flags=0, imo=<value optimized out>, inp=<value optimized out>)\r\n    at /usr/src/sys/netinet/ip_output.c:638\r\n#11 0xffffffff80b2f3d2 in tcp_output (tp=0xfffff801ac7b7810) at /usr/src/sys/netinet/tcp_output.c:1407\r\n#12 0xffffffff80b3b549 in tcp_usr_send (so=<value optimized out>, flags=<value optimized out>, m=<value optimized out>, nam=<value optimized out>, control=<value optimized out>, \r\n    td=<value optimized out>) at /usr/src/sys/netinet/tcp_usrreq.c:911\r\n#13 0xffffffff809fe796 in sosend_generic (so=0xfffff8001eaea2b8, addr=0x0, uio=0xfffffe0237e779c0, top=<value optimized out>, control=<value optimized out>, \r\n    flags=<value optimized out>, td=0x3000000010) at /usr/src/sys/kern/uipc_socket.c:1287\r\n#14 0xffffffff80a04b15 in kern_sendit (td=0xfffff8001e053960, s=7, mp=0xfffffe0237e77a88, flags=0, control=0x0, segflg=<value optimized out>)\r\n    at /usr/src/sys/kern/uipc_syscalls.c:944\r\n#15 0xffffffff80a04e39 in sendit (td=0xfffff8001e053960, s=<value optimized out>, mp=0xfffffe0237e77a88, flags=1223614464) at /usr/src/sys/kern/uipc_syscalls.c:871\r\n#16 0xffffffff80a04ec1 in sys_sendmsg (td=0xfffff8001e053960, uap=0xfffffe0237e77b80) at /usr/src/sys/kern/uipc_syscalls.c:1073\r\n#17 0xffffffff80dab07e in amd64_syscall (td=0xfffff8001e053960, traced=0) at subr_syscall.c:141\r\n#18 0xffffffff80d9036b in Xfast_syscall () at /usr/src/sys/amd64/amd64/exception.S:398\r\n#19 0x000000080098adca in ?? ()\r\nPrevious frame inner to this frame (corrupt stack?)\r\n(kgdb) \r\n\r\nI tried another test running examples/bridge on the same NIC that my bgp get the routes and same crash happened. Any ideas what's going on?\r\n\r\nAny help is welcome. Thanks.\r\n"},"comment":{"url":"https://api.github.com/repos/luigirizzo/netmap/issues/comments/250304405","html_url":"https://github.com/luigirizzo/netmap/issues/229#issuecomment-250304405","issue_url":"https://api.github.com/repos/luigirizzo/netmap/issues/229","id":250304405,"user":{"login":"vmaffione","id":4920001,"avatar_url":"https://avatars.githubusercontent.com/u/4920001?v=3","gravatar_id":"","url":"https://api.github.com/users/vmaffione","html_url":"https://github.com/vmaffione","followers_url":"https://api.github.com/users/vmaffione/followers","following_url":"https://api.github.com/users/vmaffione/following{/other_user}","gists_url":"https://api.github.com/users/vmaffione/gists{/gist_id}","starred_url":"https://api.github.com/users/vmaffione/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmaffione/subscriptions","organizations_url":"https://api.github.com/users/vmaffione/orgs","repos_url":"https://api.github.com/users/vmaffione/repos","events_url":"https://api.github.com/users/vmaffione/events{/privacy}","received_events_url":"https://api.github.com/users/vmaffione/received_events","type":"User","site_admin":false},"created_at":"2016-09-28T21:20:54Z","updated_at":"2016-09-28T21:20:54Z","body":"I'm not sure about what are you printing. Can you please\r\n\r\n````\r\n(kgdb) print na->tx_rings\r\n````\r\n?"}}
{"actor":{"display_login":"vmaffione"}}