Not sure why there is no debug symbols in the dpdk build, but if you want to debug DPDK in VPP, the easiest way is probably to recompile VPP & DPDK in debug mode. To do that, in VPP source tree: ~# make rebuild DPDK_DEBUG=y And then you can run your VPP debug build like this: ~# ./build-root/install-vpp_debug-native/vpp/bin/vpp -c /etc/vpp/startup.conf
ben > -----Original Message----- > From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of Guangming > Sent: Tuesday, November 29, 2022 2:44 > To: vpp-dev <vpp-dev@lists.fd.io> > Subject: Re: [vpp-dev] VPP - 'No debugging symbols found in /usr/lib/vpp > plugins/dpdk plugin.so' > > Hi ,Gábor > Not debug version, but i have installed vpp-debuginfo.x86_64.rpm, my os > is centos > The rte_eth_tx_prepare in frame 6 is in file dpdk_plugin.so, the > diffrence is > that rte_eth_tx_prepare is in VPP, the i40e_xmit_pkts is in dpdk . > Maybe the dpdk static lib has no symbols. I did not find how to rebuild > dpdk static lib with symbol in VPP project. > > Thanks > Guangming > ________________________________ > > zhangguangm...@baicells.com > > > From: Gabor LENCSE <mailto:len...@hit.bme.hu> > Date: 2022-11-29 09:28 > To: vpp-dev <mailto:vpp-dev@lists.fd.io> > Subject: Re: [vpp-dev] VPP - 'No debugging symbols found in > /usr/lib/vpp plugins/dpdk plugin.so' > > Hi Guangming, > > Do you use the debug version of the plugins, too? > > Gábor > > > On 11/29/2022 10:11 AM, Guangming wrote: > > > Hi , Ben > Do you know how to let gdb to show the dpdk file number ? > In frame 5 , i can only see the address and assembly code > that the vpp-dbg package was already installed. > how to show the src code file and line number > > > #0 0x00007f2e0a1ac387 in raise () from /lib64/libc.so.6 > #1 0x00007f2e0a1ada78 in abort () from /lib64/libc.so.6 > be#3 0x00007f2e0c297ac7 in unix_signal_handler (signurm=7, > si=<optimized out>, > uc=<optimized out>) at /usr/src/debug/vpp- > 1.0.0/src/vlib/unix/main.c:187 > #4 <signal handler called> > #5 0x00007f2d05cb06fb in i40e_xmit_pkts () from > /usr/lib/vpp_plugins/dpdk_plugin.so > #6 0x00007f2d0619f69a in rte_eth_tx_prepare > (nb_pkts=<optimized out>, > tx_pkts=<optimized out>, queue_id=<optimized out>, > port_id=<optimized out>) > at /usr/src/debug/vpp- > 1.0.0/src/plugins/dpdk/device/device.c:170 > #7 tx_burst_vector_internal (n_left=<optimized out>, > mb=<optimized out>, > xd=0x7f2d00000000, vm=<optimized out>) > at /usr/src/debug/vpp- > 1.0.0/src/plugins/dpdk/device/device.c:179 > #8 dpdk_device_class_tx_fn_skx () > at /usr/src/debug/vpp- > 1.0.0/src/plugins/dpdk/device/device.c:453 > #9 0x00007f2e0c243a15 in dispatch_pending_node > (vm=<optimized out>, > pending_frame_index=<optimized out>, > last_time_stamp=<optimized out>) > at /usr/src/debug/vpp-1.0.0/src/vlib/main.c:1024 > #10 0x00007f2e0c2454ff in vlib_worker_loop > (vm=vm@entry=0x7f2d0edc1fc0) > > > Thanks > Guangming > ________________________________ > > > zhangguangm...@baicells.com > <mailto:zhangguangm...@baicells.com> > > > From: Benoit Ganne (bganne) via lists.fd.io > <mailto:bganne=cisco....@lists.fd.io> > Date: 2022-11-28 21:18 > To: vpp-dev@lists.fd.io <mailto:vpp-dev@lists.fd.io> > Subject: Re: [vpp-dev] VPP - 'No debugging symbols > found in /usr/lib/vpp plugins/dpdk plugin.so' > Did you installed vpp from packages? If so, you'll > need the vpp-dbg package. > > Best > ben > > > -----Original Message----- > > From: vpp-dev@lists.fd.io <mailto:vpp- > d...@lists.fd.io> <vpp-dev@lists.fd.io> <mailto:vpp-dev@lists.fd.io> On > Behalf Of Venkataraju, > > Raghu via lists.fd.io > > Sent: Monday, November 28, 2022 14:03 > > To: vpp-dev@lists.fd.io <mailto:vpp-dev@lists.fd.io> > > Subject: [vpp-dev] VPP - 'No debugging symbols found > in /usr/lib/vpp > > plugins/dpdk plugin.so' > > > > Hi, > > > > > > In FDIO vpp 21.01, while testing TCP traffic > observing a seg fault > > resulting in vpp abort. Generated the core dump and > ran gdb on it. > > bt was pointing to 'dpdk_plugin' in vpp > > > > $ gdb vpp <core_dump> > > > > warning: Unable to find matching inferior's thread > library, thread > > debugging will not be available. > > Core was generated by `vpp -c > /etc/vpp/startup.conf'. > > Program terminated with signal SIGABRT, Aborted.#0 > 0x0000007faf663280 in > > raise () from /lib/libc.so.6 > > [Current thread is 1 (LWP 383)] > > > > > > (gdb) bt > > #0 0x0000007faf663280 in raise () from > /lib/libc.so.6 > > #1 0x0000007faf652dcc in abort () from > /lib/libc.so.6 > > #2 0x0000005573b84124 in os_exit () > > #3 0x0000007faf8b7ed0 in ?? () from > /usr/lib/libvlib.so.21.01.1 > > #4 <signal handler called> > > #5 0x0000007faf663280 in raise () from > /lib/libc.so.6 > > #6 0x0000007faf652dcc in abort () from > /lib/libc.so.6 > > #7 0x0000007fa97df8b4 in __rte_panic () from > > /usr/lib/vpp_plugins/dpdk_plugin.so > > #8 0x0000007fa9960b58 in ?? () from > /usr/lib/vpp_plugins/dpdk_plugin.so > > #9 0x0000007fa99599b8 in ?? () from > /usr/lib/vpp_plugins/dpdk_plugin.so > > #10 0x0000007fa99463f4 in ?? () from > /usr/lib/vpp_plugins/dpdk_plugin.so > > #11 0x0000007faf7e4224 in ?? () from > /lib/libpthread.so.0 > > #12 0x0000007faf6e5d1c in ?? () from /lib/libc.so.6 > > > > (gdb) file /usr/lib/vpp_plugins/dpdk_plugin.so > > warning: core file may not match specified > executable file. > > Reading symbols from > /usr/lib/vpp_plugins/dpdk_plugin.so...(No debugging > > symbols found in > /usr/lib/vpp_plugins/dpdk_plugin.so) > > warning: File "/lib/libthread_db-1.0.so" auto- > loading has been declined by > > your `auto-load safe-path' set to > "$debugdir:$datadir/auto-load". > > warning: Unable to find libthread_db matching > inferior's thread library, > > thread debugging will not be available. > > > > > > From bt, function name not displayed for dpdk_plugin > because of 'No > > debugging symbols found in > /usr/lib/vpp_plugins/dpdk_plugin.so' > > We had built the dpdk_plugin in debug mode with -g > option. But still we > > are getting above warning. > > > > In FDIO vpp 21.01 version, can dpdk_plugin be built > with debug symbols ? > > Any flag or additional code changes needed ? > > > > > > > > Can you please help on this regard. > > > > Regards, > > Raghu > > This message contains information that may be > privileged or confidential > > and is the property of the Capgemini Group. It is > intended only for the > > person to whom it is addressed. If you are not the > intended recipient, you > > are not authorized to read, print, retain, copy, > disseminate, distribute, > > or use this message or any part thereof. If you > receive this message in > > error, please notify the sender immediately and > delete all copies of this > > message. > > > > > > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#22253): https://lists.fd.io/g/vpp-dev/message/22253 Mute This Topic: https://lists.fd.io/mt/95309032/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-