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

daemon crash when run loopback_vport #27

Closed
dsocer opened this issue May 19, 2016 · 2 comments
Closed

daemon crash when run loopback_vport #27

dsocer opened this issue May 19, 2016 · 2 comments

Comments

@dsocer
Copy link

dsocer commented May 19, 2016

localhost:10514 $ run perftest/loopback_vport 
Environment variable "SN_CORE_START" is not set. Using default value "1"
Environment variable "SN_CORE_END" is not set. Using default value "8"
Environment variable "SN_CORE_STEP" is not set. Using default value "1"
Environment variable "SN_INTERVAL" is not set. Using default value "2"
CPU                           1
Ports           (total)  vport0
--------------------------------
Outgoing (Mpps)   7.553   7.553
Incoming (Mpps)   7.553   7.553

*** Error: Not connected to BESS daemon
<disconnected> $ 
----------------------------------------------------------------------------
May 19 09:56:39 maryland bessd[13273]: /sys/devices/system/node/possible not available. Assuming a single-node system...
May 19 09:56:39 maryland bessd[13273]: EAL: Detected lcore 0 as core 0 on socket 0
May 19 09:56:39 maryland bessd[13273]: EAL: Detected lcore 1 as core 1 on socket 0
May 19 09:56:39 maryland bessd[13273]: EAL: Detected lcore 2 as core 2 on socket 0
May 19 09:56:39 maryland bessd[13273]: EAL: Detected lcore 3 as core 3 on socket 0
May 19 09:56:39 maryland bessd[13273]: EAL: Detected lcore 4 as core 0 on socket 0
May 19 09:56:39 maryland bessd[13273]: EAL: Detected lcore 5 as core 1 on socket 0
May 19 09:56:39 maryland bessd[13273]: EAL: Detected lcore 6 as core 2 on socket 0
May 19 09:56:39 maryland bessd[13273]: EAL: Detected lcore 7 as core 3 on socket 0
May 19 09:56:39 maryland bessd[13273]: EAL: Support maximum 128 logical core(s) by configuration.
May 19 09:56:39 maryland bessd[13273]: EAL: Detected 8 lcore(s)
May 19 09:56:39 maryland bessd[13273]: EAL: Probing VFIO support...
May 19 09:56:39 maryland bessd[13273]: EAL: Module /sys/module/vfio_pci not found! error 2 (No such file or directory)
May 19 09:56:39 maryland bessd[13273]: EAL: VFIO modules not loaded, skipping VFIO support...
May 19 09:56:39 maryland bessd[13273]: EAL: Setting up physically contiguous memory...
May 19 09:56:39 maryland bessd[13273]: EAL: Ask a virtual area of 0x1000000 bytes
May 19 09:56:39 maryland bessd[13273]: EAL: Virtual area found at 0x7fbab3400000 (size = 0x1000000)
May 19 09:56:39 maryland bessd[13273]: EAL: Ask a virtual area of 0x200000 bytes
May 19 09:56:39 maryland bessd[13273]: EAL: Virtual area found at 0x7fbab3000000 (size = 0x200000)
May 19 09:56:39 maryland bessd[13273]: EAL: Ask a virtual area of 0x200000 bytes
May 19 09:56:39 maryland bessd[13273]: EAL: Virtual area found at 0x7fbab2c00000 (size = 0x200000)
May 19 09:56:39 maryland bessd[13273]: EAL: Ask a virtual area of 0x200000 bytes
May 19 09:56:39 maryland bessd[13273]: EAL: Virtual area found at 0x7fbab2800000 (size = 0x200000)
May 19 09:56:39 maryland bessd[13273]: EAL: Ask a virtual area of 0x200000 bytes
May 19 09:56:39 maryland bessd[13273]: EAL: Virtual area found at 0x7fbab2400000 (size = 0x200000)
May 19 09:56:39 maryland bessd[13273]: EAL: Ask a virtual area of 0xd000000 bytes
May 19 09:56:39 maryland bessd[13273]: EAL: Virtual area found at 0x7fbaa5200000 (size = 0xd000000)
May 19 09:56:39 maryland bessd[13273]: EAL: Ask a virtual area of 0x200000 bytes
May 19 09:56:39 maryland bessd[13273]: EAL: Virtual area found at 0x7fbaa4e00000 (size = 0x200000)
May 19 09:56:39 maryland bessd[13273]: EAL: Ask a virtual area of 0x71400000 bytes
May 19 09:56:39 maryland bessd[13273]: EAL: Virtual area found at 0x7fba33800000 (size = 0x71400000)
May 19 09:56:39 maryland bessd[13273]: EAL: Ask a virtual area of 0x200000 bytes
May 19 09:56:39 maryland bessd[13273]: EAL: Virtual area found at 0x7fba33400000 (size = 0x200000)
May 19 09:56:39 maryland bessd[13273]: EAL: Requesting 1024 pages of size 2MB from socket 0
May 19 09:56:39 maryland bessd[13273]: EAL: TSC frequency is ~4008001 KHz
May 19 09:56:39 maryland bessd[13273]: EAL: Master lcore 127 is ready (tid=b5650cc0;cpuset=[0])
May 19 09:56:39 maryland bessd[13273]: EAL: lcore 3 is ready (tid=31bfc700;cpuset=[0])
May 19 09:56:39 maryland bessd[13273]: EAL: lcore 2 is ready (tid=323fd700;cpuset=[0])
May 19 09:56:39 maryland bessd[13273]: EAL: lcore 1 is ready (tid=32bfe700;cpuset=[0])
May 19 09:56:39 maryland bessd[13273]: EAL: lcore 0 is ready (tid=333ff700;cpuset=[0])
May 19 09:56:39 maryland bessd[13273]: EAL: PCI device 0000:03:00.0 on NUMA socket -1
May 19 09:56:39 maryland bessd[13273]: EAL:   probe driver: 8086:154d rte_ixgbe_pmd
May 19 09:56:39 maryland bessd[13273]: EAL:   PCI memory mapped at 0x7fbab64ce000
May 19 09:56:39 maryland bessd[13273]: EAL:   PCI memory mapped at 0x7fbab6592000
May 19 09:56:39 maryland bessd[13273]: PMD: eth_ixgbe_dev_init(): MAC: 2, PHY: 18, SFP+: 5
May 19 09:56:39 maryland bessd[13273]: PMD: eth_ixgbe_dev_init(): port 0 vendorID=0x8086 deviceID=0x154d
May 19 09:56:39 maryland bessd[13273]: EAL: PCI device 0000:03:00.1 on NUMA socket -1
May 19 09:56:39 maryland bessd[13273]: EAL:   probe driver: 8086:154d rte_ixgbe_pmd
May 19 09:56:39 maryland bessd[13273]: EAL:   PCI memory mapped at 0x7fbab644e000
May 19 09:56:39 maryland bessd[13273]: EAL:   PCI memory mapped at 0x7fbab658e000
May 19 09:56:39 maryland bessd[13273]: PMD: eth_ixgbe_dev_init(): MAC: 2, PHY: 18, SFP+: 6
May 19 09:56:39 maryland bessd[13273]: PMD: eth_ixgbe_dev_init(): port 1 vendorID=0x8086 deviceID=0x154d
May 19 09:56:40 maryland bessd[13273]: 524287 packet buffers allocated on socket 0
May 19 09:56:40 maryland bessd[13273]: 2 DPDK PMD ports have been recognized:
May 19 09:56:40 maryland bessd[13273]: DPDK port_id 0 (rte_ixgbe_pmd)   RXQ 128 TXQ 64  0000:03:00.00 8086:154d  
May 19 09:56:40 maryland bessd[13273]: DPDK port_id 1 (rte_ixgbe_pmd)   RXQ 128 TXQ 64  0000:03:00.01 8086:154d  
May 19 09:56:40 maryland bessd[13273]: Master: listening on 127.0.0.1:10514
May 19 09:56:43 maryland bessd[13273]: Master: a new client from 127.0.0.1:21704
May 19 09:56:47 maryland bessd[13273]: *** All workers have been paused ***
May 19 09:56:47 maryland bessd[13273]: Worker 0(0x7fba331ef220) is running on core 0 (socket 0)
May 19 09:56:47 maryland bessd[13273]: *** Resumed ***
May 19 09:56:47 maryland kernel: [244599.973764] bess - sn_register_netdev():872 vport0: registered - 26:d1:67:77:5e:b8 txq 1 rxq 1
May 19 09:56:49 maryland bessd[13273]: *** All workers have been paused ***
May 19 09:56:49 maryland kernel: [244601.982238] bess - sn_register_netdev():872 vport1: registered - 9a:71:0b:11:af:25 txq 1 rxq 1
May 19 09:56:49 maryland bessd[13273]: A critical error has occured. Aborting... (pid=13273, tid=13275)
May 19 09:56:49 maryland bessd[13273]: Signal: 11 (Segmentation fault), si_code: 128 (SI_KERNEL: sent by the kernel), address: (nil), IP: 0x441c45
May 19 09:56:49 maryland bessd[13273]: Backtrace (recent calls first) ---
May 19 09:56:49 maryland bessd[13273]: (0): bess/bin/bessd(sched_loop+0x4e5) [0x441c45]
May 19 09:56:49 maryland bessd[13273]: *** Resumed ***
May 19 09:56:49 maryland bessd[13273]:     accumulate at /opt/bess/core/tc.c:345
May 19 09:56:49 maryland bessd[13273]:          342: #011*((__m128i *)p1+1) = _mm_add_epi64(*((__m128i *)p1+1), *((__m128i *)p2+1));
May 19 09:56:49 maryland bessd[13273]:          343: #else
May 19 09:56:49 maryland bessd[13273]:          344: #011for (int i = 0; i < NUM_RESOURCES; i++)
May 19 09:56:49 maryland bessd[13273]:       -> 345: #011#011p1[i] += p2[i];
May 19 09:56:49 maryland bessd[13273]:          346: #endif
May 19 09:56:49 maryland bessd[13273]:          347: }
May 19 09:56:49 maryland bessd[13273]:          348: 
May 19 09:56:49 maryland bessd[13273]:      (inlined by) tc_account at /opt/bess/core/tc.c:360
May 19 09:56:49 maryland bessd[13273]:          357: 
May 19 09:56:49 maryland bessd[13273]:          358: #011int i;
May 19 09:56:49 maryland bessd[13273]:          359: 
May 19 09:56:49 maryland bessd[13273]:       -> 360: #011accumulate(c->stats.usage, usage);
May 19 09:56:49 maryland bessd[13273]:          361: 
May 19 09:56:49 maryland bessd[13273]:          362: #011if (!c->has_limit) {
May 19 09:56:49 maryland bessd[13273]:          363: #011#011c->last_tsc = tsc;
May 19 09:56:49 maryland bessd[13273]:      (inlined by) sched_done at /opt/bess/core/tc.c:439
May 19 09:56:49 maryland bessd[13273]:          436: #011#011assert(c->state.queued);
May 19 09:56:49 maryland bessd[13273]:          437: #011#011c->ss.pass += c->ss.stride * consumed / QUANTUM;
May 19 09:56:49 maryland bessd[13273]:          438: 
May 19 09:56:49 maryland bessd[13273]:       -> 439: #011#011throttled = tc_account(s, c, usage, tsc);
May 19 09:56:49 maryland bessd[13273]:          440: #011#011if (throttled) 
May 19 09:56:49 maryland bessd[13273]:          441: #011#011#011reschedule = 0;
May 19 09:56:49 maryland bessd[13273]:          442: 
May 19 09:56:49 maryland bessd[13273]:      (inlined by) sched_loop at /opt/bess/core/tc.c:691
May 19 09:56:49 maryland bessd[13273]:          688: #011#011#011usage[RESOURCE_PACKET] = ret.packets;
May 19 09:56:49 maryland bessd[13273]:          689: #011#011#011usage[RESOURCE_BIT] = ret.bits;
May 19 09:56:49 maryland bessd[13273]:          690: 
May 19 09:56:49 maryland bessd[13273]:       -> 691: #011#011#011sched_done(s, c, usage, 1, now);
May 19 09:56:49 maryland bessd[13273]:          692: #011#011} else {
May 19 09:56:49 maryland bessd[13273]:          693: #011#011#011now = rdtsc();
May 19 09:56:49 maryland bessd[13273]:          694: 
May 19 09:56:49 maryland bessd[13273]: (1): bess/bin/bessd() [0x442e35]
May 19 09:56:49 maryland bessd[13273]:     run_worker at /opt/bess/core/worker.c:213
May 19 09:56:49 maryland bessd[13273]:       -> 213: #011sched_loop(ctx.s);
May 19 09:56:49 maryland bessd[13273]: (2): bess/bin/bessd(eal_thread_loop+0x1d4) [0x490594]
May 19 09:56:49 maryland bessd[13273]:     eal_thread_loop at /opt/bess/deps/dpdk-16.04/lib/librte_eal/linuxapp/eal/eal_thread.c:184
May 19 09:56:49 maryland bessd[13273]:       -> 184: #011#011ret = lcore_config[lcore_id].f(fct_arg);
May 19 09:56:49 maryland bessd[13273]: (3): /lib/x86_64-linux-gnu/libpthread.so.0(+0x8181) [0x7fbab5e61181]
May 19 09:56:49 maryland bessd[13273]:     ?? ??:0
May 19 09:56:49 maryland bessd[13273]: (4): /lib/x86_64-linux-gnu/libc.so.6(clone+0x6c) [0x7fbab574c47c]
May 19 09:56:49 maryland bessd[13273]:     ?? ??:0
May 19 09:56:49 maryland kernel: [244602.026269] bess - sn_release_netdev():890 vport1: releasing netdev...
May 19 09:56:49 maryland kernel: [244602.052721] bess - sn_release_netdev():890 vport0: releasing netdev...

@sangjinhan
Copy link
Member

Could you attach core/tc.o or core/bessd file? I'd need to disassemble the compiled code.

Also, it would be helpful to know the CPU model (cat /proc/cpuinfo) and your gcc version.

@dsocer
Copy link
Author

dsocer commented May 19, 2016

Hi Sangjin,

It works after rebuilding DPDK with the latest code.

Thanks,
Yan

On Thu, May 19, 2016 at 4:04 PM, Sangjin Han notifications@github.com
wrote:

Could you attach core/tc.o or core/bessd file? I'd need to disassemble the
compiled code.

Also, it would be helpful to know the CPU model (cat /proc/cpuinfo) and
your gcc version.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#27 (comment)

@dsocer dsocer closed this as completed May 19, 2016
maryamtahhan pushed a commit to maryamtahhan/bess that referenced this issue Aug 21, 2023
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