Thanks Florin that worked. From: Florin Coras <fcoras.li...@gmail.com> Sent: Thursday, August 23, 2018 11:13 AM To: Sirshak Das <sirshak....@arm.com> Cc: vpp-dev@lists.fd.io; nd <n...@arm.com>; Honnappa Nagarahalli <honnappa.nagaraha...@arm.com>; Yi He <yi...@arm.com>; nitin.sax...@cavium.com; Lijian Zhang <lijian.zh...@arm.com>; Brian Brooks <brian.bro...@arm.com> Subject: Re: [vpp-dev] Crash when using the debug vpp image
Hi Sirshak, Try: sudo rm -rf /dev/shm/* Florin On Aug 23, 2018, at 9:09 AM, Sirshak Das <sirshak....@arm.com<mailto:sirshak....@arm.com>> wrote: Hi all, I am trying to debug a segfault due to of my commits. I usually use the release image by building make build-release, but as I am trying to debug, so I decided to just do make build As ironic as it can be this one does not start up and ends with abort long before I start my tests, is this a known problem or am I missing some step (I have not done detailed code level debugging, hoping that I am missing something trivial). $ sudo gdb --args ./bin/vpp -c ~/intel-xxv710-DCDC-no-mseg.conf Reading symbols from ./bin/vpp...done. (gdb) run Starting program: /home/sirdas/code/commitb/vpp/build-root/build-vpp_debug-native/vpp/bin/vpp -c /home/sirdas/intel-xxv710-DCDC-no-mseg.conf warning: Unable to determine the number of hardware watchpoints available. warning: Unable to determine the number of hardware breakpoints available. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1". vlib_plugin_early_init:361: plugin path /home/sirdas/code/commitb/vpp/build-root/build-vpp_debug-native/vpp/lib/vpp_plugins:/home/sirdas/code/commitb/vpp/build-root/build-vpp_debug-native/vpp/lib64/vpp_plugins load_one_plugin:189: Loaded plugin: abf_plugin.so (ACL based Forwarding) load_one_plugin:189: Loaded plugin: acl_plugin.so (Access Control Lists) load_one_plugin:189: Loaded plugin: avf_plugin.so (Intel Adaptive Virtual Function (AVF) Device Plugin) load_one_plugin:191: Loaded plugin: cdp_plugin.so load_one_plugin:189: Loaded plugin: dpdk_plugin.so (Data Plane Development Kit (DPDK)) load_one_plugin:189: Loaded plugin: flowprobe_plugin.so (Flow per Packet) load_one_plugin:189: Loaded plugin: gbp_plugin.so (Group Based Policy) load_one_plugin:189: Loaded plugin: gtpu_plugin.so (GTPv1-U) load_one_plugin:189: Loaded plugin: igmp_plugin.so (IGMP messaging) load_one_plugin:189: Loaded plugin: ila_plugin.so (Identifier-locator addressing for IPv6) load_one_plugin:189: Loaded plugin: ioam_plugin.so (Inbound OAM) load_one_plugin:117: Plugin disabled (default): ixge_plugin.so load_one_plugin:189: Loaded plugin: l2e_plugin.so (L2 Emulation) load_one_plugin:189: Loaded plugin: lacp_plugin.so (Link Aggregation Control Protocol) load_one_plugin:189: Loaded plugin: lb_plugin.so (Load Balancer) load_one_plugin:189: Loaded plugin: mactime_plugin.so (Time-based MAC source-address filter) load_one_plugin:189: Loaded plugin: map_plugin.so (Mapping of address and port (MAP)) load_one_plugin:189: Loaded plugin: memif_plugin.so (Packet Memory Interface (experimetal)) load_one_plugin:189: Loaded plugin: nat_plugin.so (Network Address Translation) load_one_plugin:189: Loaded plugin: pppoe_plugin.so (PPPoE) load_one_plugin:189: Loaded plugin: srv6ad_plugin.so (Dynamic SRv6 proxy) load_one_plugin:189: Loaded plugin: srv6am_plugin.so (Masquerading SRv6 proxy) load_one_plugin:189: Loaded plugin: srv6as_plugin.so (Static SRv6 proxy) load_one_plugin:189: Loaded plugin: stn_plugin.so (VPP Steals the NIC for Container integration) load_one_plugin:189: Loaded plugin: tlsmbedtls_plugin.so (mbedtls based TLS Engine) load_one_plugin:189: Loaded plugin: tlsopenssl_plugin.so (openssl based TLS Engine) load_one_plugin:117: Plugin disabled (default): unittest_plugin.so svm_map_region:766: region /global_vm mutex held by dead pid 8702, tag 2, force unlock svm_map_region:774: recovery: attempt to re-lock region Program received signal SIGABRT, Aborted. 0x0000ffffbea70528 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54 54 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory. (gdb) bt #0 0x0000ffffbea70528 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54 #1 0x0000ffffbea719e0 in __GI_abort () at abort.c:89 #2 0x0000000000408224 in os_panic () at /home/sirdas/code/commitb/vpp/src/vpp/vnet/main.c:331 #3 0x0000ffffbeba8414 in mspace_malloc (msp=0x3ffff8001010, bytes=52) at /home/sirdas/code/commitb/vpp/src/vppinfra/dlmalloc.c:4332 #4 0x0000ffffbeba7f34 in mspace_get_aligned (msp=0x3ffff8001010, n_user_data_bytes=52, align=8, align_offset=8) at /home/sirdas/code/commitb/vpp/src/vppinfra/dlmalloc.c:4174 #5 0x0000ffffbec2041c in clib_mem_alloc_aligned_at_offset (size=48, align=8, align_offset=8, os_out_of_memory_on_failure=1) at /home/sirdas/code/commitb/vpp/src/vppinfra/mem.h:118 #6 0x0000ffffbec2089c in vec_resize_allocate_memory (v=0x3ffff800213c, length_increment=1, data_bytes=48, header_bytes=8, data_align=8) at /home/sirdas/code/commitb/vpp/src/vppinfra/vec.c:84 #7 0x0000ffffbec7a350 in _vec_resize_inline (v=0x3ffff800213c, length_increment=1, data_bytes=40, header_bytes=0, data_align=8) at /home/sirdas/code/commitb/vpp/src/vppinfra/vec.h:145 #8 0x0000ffffbec7d298 in svm_map_region (a=0xffff7edffe50) at /home/sirdas/code/commitb/vpp/src/svm/svm.c:778 #9 0x0000ffffbec7d4fc in svm_region_init_internal (a=0xffff7edffe50) at /home/sirdas/code/commitb/vpp/src/svm/svm.c:835 #10 0x0000ffffbec7d9d4 in svm_region_init_args (a=0xffff7edffe50) at /home/sirdas/code/commitb/vpp/src/svm/svm.c:918 #11 0x0000ffffbf697de0 in vlibmemory_init (vm=0xffffbed61640 <vlib_global_main>) at /home/sirdas/code/commitb/vpp/src/vlibmemory/memory_api.c:915 #12 0x0000ffffbece8330 in vlib_main (vm=0xffffbed61640 <vlib_global_main>, input=0xffff7edfffc0) at /home/sirdas/code/commitb/vpp/src/vlib/main.c:1757 #13 0x0000ffffbed32274 in thread0 (arg=281473883444800) at /home/sirdas/code/commitb/vpp/src/vlib/unix/main.c:607 #14 0x0000ffffbebd5ef0 in clib_calljmp () from /home/sirdas/code/commitb/vpp/build-root/build-vpp_debug-native/vpp/lib/libvppinfra.so Backtrace stopped: not enough registers or memory available to unwind further My startup conf (This is ARM thunderx2 machine with 4.15.0-32-generic, gcc version 7.3.0, 16.04 Ubuntu): unix { nodaemon interactive cli-listen /run/vpp/cli.sock exec intel-xxv710-address-up.commands } cpu { workers 2 main-core 136 corelist-workers 137,138 } dpdk { dev default { num-rx-queues 2 num-tx-queues 2 num-rx-desc 2048 num-tx-desc 2048 } dev 0000:8a:00.0 dev 0000:8a:00.1 socket-mem 0,1024 no-multi-seg } Thank you ++++++++++++++++++++++ Sirshak Das -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#10272): https://lists.fd.io/g/vpp-dev/message/10272 Mute This Topic: https://lists.fd.io/mt/24931461/675152 Group Owner: vpp-dev+ow...@lists.fd.io<mailto:vpp-dev+ow...@lists.fd.io> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [fcoras.li...@gmail.com<mailto:fcoras.li...@gmail.com>] -=-=-=-=-=-=-=-=-=-=-=-
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#10274): https://lists.fd.io/g/vpp-dev/message/10274 Mute This Topic: https://lists.fd.io/mt/24931461/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-