Hello, I am using an older version of VPP(18.01) but I checked the code of 19.04 and I couldn't find any change in problematic area.
I sometimes get a crash with "Show PCI" command. >From the core, it seems to be crashing here : "format_vlib_pci_vpd ( s=0x2ad325f2cb58 "0000:02:00.0 0 14e4:1657 5.0 GT/s x2 tg3", ' ' <repeats 13 times>, "HP Ethernet 1Gb 4-port 331i Adapter", args=<optimized out>)" I checked this function and it seems that a particular pointer variable (u8* id) always ends up getting an invalid value - "0x3000000000 <Address 0x3000000000 out of bounds>" Further down in this function, we try to access this pointer and that sometimes causes the VPP to crash. Could it be that the "va_arg" call to get this "id" is returning something invalid? Can someone please help me with this ? Attaching the full stack trace as well. Regards, Siddarth
(gdb) bt #0 0x00002ad210d83207 in raise () from /lib64/libc.so.6 #1 0x00002ad210d848f8 in abort () from /lib64/libc.so.6 #2 0x0000000000405eb9 in os_panic () at vpp_path/vpp/vpp_1801/build-data/../src/vpp/vnet/main.c:266 #3 0x00002ad20ee8d777 in unix_signal_handler (signum=<optimized out>, si=<optimized out>, uc=<optimized out>) at vpp_path/vpp/vpp_1801/build-data/../src/vlib/unix/main.c:126 #4 <signal handler called> #5 format_vlib_pci_vpd ( s=0x2ad325f2cb58 "0000:02:00.0 0 14e4:1657 5.0 GT/s x2 tg3", ' ' <repeats 13 times>, "HP Ethernet 1Gb 4-port 331i Adapter", args=<optimized out>) at vpp_path/vpp/vpp_1801/build-data/../src/vlib/pci/pci.c:229 #6 0x00002ad2101c10d4 in do_percent (va=0x2ad2f0dadb48, fmt=<optimized out>, _s=<synthetic pointer>) at vpp_path/vpp/vpp_1801/build-data/../src/vppinfra/format.c:373 #7 va_format ( s=0x2ad325f2cb58 "0000:02:00.0 0 14e4:1657 5.0 GT/s x2 tg3", ' ' <repeats 13 times>, "HP Ethernet 1Gb 4-port 331i Adapter", s@entry=0x0, fmt=<optimized out>, va=va@entry=0x2ad2f0dadb48) at vpp_path/vpp/vpp_1801/build-data/../src/vppinfra/format.c:404 #8 0x00002ad20ee458c5 in vlib_cli_output (vm=vm@entry=0x2ad20f0a8240 <vlib_global_main>, fmt=fmt@entry=0x2ad20ee9a630 "%-13U%-5v%04x:%04x %-13U%-16s%-32v%U") at vpp_path/vpp/vpp_1801/build-data/../src/vlib/cli.c:687 #9 0x00002ad20ee73876 in show_pci_fn (vm=0x2ad20f0a8240 <vlib_global_main>, input=<optimized out>, cmd=<optimized out>) at vpp_path/vpp/vpp_1801/build-data/../src/vlib/pci/pci.c:106 #10 0x00002ad20ee45d65 in vlib_cli_dispatch_sub_commands (vm=vm@entry=0x2ad20f0a8240 <vlib_global_main>, cm=cm@entry=0x2ad20f0a8420 <vlib_global_main+480>, input=input@entry=0x2ad2f0daded0, parent_command_index=<optimized out>) ---Type <return> to continue, or q <return> to quit--- at vpp_path/vpp/vpp_1801/build-data/../src/vlib/cli.c:588 #11 0x00002ad20ee4611d in vlib_cli_dispatch_sub_commands (vm=vm@entry=0x2ad20f0a8240 <vlib_global_main>, cm=cm@entry=0x2ad20f0a8420 <vlib_global_main+480>, input=input@entry=0x2ad2f0daded0, parent_command_index=parent_command_index@entry=0) at vpp_path/vpp/vpp_1801/build-data/../src/vlib/cli.c:566 #12 0x00002ad20ee46361 in vlib_cli_input (vm=0x2ad20f0a8240 <vlib_global_main>, input=input@entry=0x2ad2f0daded0, function=function@entry=0x2ad20ee87980 <unix_vlib_cli_output>, function_arg=function_arg@entry=0) at vpp_path/vpp/vpp_1801/build-data/../src/vlib/cli.c:662 #13 0x00002ad20ee88a97 in unix_cli_process_input (cli_file_index=0, cm=0x2ad20f0a80e0 <unix_cli_main>) at vpp_path/vpp/vpp_1801/build-data/../src/vlib/unix/cli.c:2303 #14 0x00002ad20ee8c61d in unix_cli_process (vm=0x2ad20f0a8240 <vlib_global_main>, rt=0x2ad2f0d9d000, f=<optimized out>) at vpp_path/vpp/vpp_1801/build-data/../src/vlib/unix/cli.c:2419 #15 0x00002ad20ee53b36 in vlib_process_bootstrap (_a=<optimized out>) at vpp_path/vpp/vpp_1801/build-data/../src/vlib/main.c:1231 #16 0x00002ad2101c9bf8 in clib_calljmp () at vpp_path/vpp/vpp_1801/build-data/../src/vppinfra/longjmp.S:110
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13127): https://lists.fd.io/g/vpp-dev/message/13127 Mute This Topic: https://lists.fd.io/mt/31730875/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-