Hi All,
I compiled vpp code with "sudo make build" , but when I started vpp with
the "sudo make debug" command it aborted.
However I am able to start vpp with the release image successfully .

*vpp version : 21.10*

Please find full logs below

starting vpp with debug image:
=======================
supervisor@l2_sudhir>srv2:~/libvpp $ sudo make debug
WARNING: STARTUP_CONF not defined or file doesn't exist.
         Running with minimal startup config:  unix { interactive
cli-listen /run/vpp/cli.sock gid 0 } dpdk { no-pci } \n
GNU gdb (Ubuntu 8.1.1-0ubuntu1) 8.1.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/supervisor/libvpp/build-root/
*install-vpp_debug-native*/vpp/bin/vpp...done.
Signal        Stop Print Pass to program Description
SIGUSR1       No No Yes User defined signal 1
(gdb) run -c /etc/vpp/startup.conf
Starting program:
/home/supervisor/libvpp/build-root/install-vpp_debug-native/vpp/bin/vpp -c
/etc/vpp/startup.conf
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
unix_config:521: couldn't open log '/var/log/vpp/vpp.log'
/home/supervisor/libvpp/build-root/install-vpp_debug-native/vpp/bin/vpp[710]:
snort: initialized
/home/supervisor/libvpp/build-root/install-vpp_debug-native/vpp/bin/vpp[710]:
/home/supervisor/libvpp/src/vppinfra/ptclosure.c:25 (clib_ptclosure_alloc)
assertion `n > 0' fails

Program received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x00007ffff4e4d7f1 in __GI_abort () at abort.c:79
#2  0x0000000000407ab3 in os_panic () at
/home/supervisor/libvpp/src/vpp/vnet/main.c:618
#3  0x00007ffff55d6a19 in debugger () at
/home/supervisor/libvpp/src/vppinfra/error.c:84
#4  0x00007ffff55d6797 in _clib_error (how_to_die=2, function_name=0x0,
line_number=0, fmt=0x7ffff56b8705 "%s:%d (%s) assertion `%s' fails")
    at /home/supervisor/libvpp/src/vppinfra/error.c:143
#5  0x00007ffff562ceb1 in clib_ptclosure_alloc (n=0) at
/home/supervisor/libvpp/src/vppinfra/ptclosure.c:25
#6  0x00007ffff70a7144 in vnet_feature_arc_init (vm=0x7fffcf60d680,
vcm=0x7fffd1debc90, feature_start_nodes=0x7ffff7b40810 <.compoundliteral>,
    num_feature_start_nodes=1, last_in_arc=0x0, first_reg=0x0,
first_const_set=0x0, in_feature_nodes=0x7fffd1dd2960)
    at /home/supervisor/libvpp/src/vnet/feature/registration.c:253
#7  0x00007ffff70a0e34 in vnet_feature_init (vm=0x7fffcf60d680) at
/home/supervisor/libvpp/src/vnet/feature/feature.c:151
#8  0x00007ffff6a3e56f in ip4_lookup_init (vm=0x7fffcf60d680) at
/home/supervisor/libvpp/src/vnet/ip/ip4_forward.c:1131
#9  0x00007ffff6197167 in call_init_exit_functions_internal
(vm=0x7fffcf60d680, headp=0x7ffff64ab270 <vlib_global_main+368>,
call_once=1, do_sort=1,
    is_global=1) at /home/supervisor/libvpp/src/vlib/init.c:363
#10 0x00007ffff6196fff in vlib_call_init_exit_functions (vm=0x7fffcf60d680,
headp=0x7ffff64ab270 <vlib_global_main+368>, call_once=1, is_global=1)
    at /home/supervisor/libvpp/src/vlib/init.c:377
#11 0x00007ffff619722c in vlib_call_all_init_functions (vm=0x7fffcf60d680)
at /home/supervisor/libvpp/src/vlib/init.c:400
#12 0x00007ffff61c3e02 in vlib_main (vm=0x7fffcf60d680,
input=0x7fffb8d5efa8) at /home/supervisor/libvpp/src/vlib/main.c:2029
#13 0x00007ffff624d13e in thread0 (arg=140736672618112) at
/home/supervisor/libvpp/src/vlib/unix/main.c:716
#14 0x00007ffff5604a58 in clib_calljmp () at
/home/supervisor/libvpp/src/vppinfra/longjmp.S:123
#15 0x00007fffffffce00 in ?? ()
#16 0x00007ffff624cedb in vlib_unix_main (argc=45, argv=0x681500) at
/home/supervisor/libvpp/src/vlib/unix/main.c:797
#17 0x00000000004067a0 in main (argc=45, argv=0x681500) at
/home/supervisor/libvpp/src/vpp/vnet/main.c:344
(gdb)

starting vpp with release image:
========================
supervisor@l2_sudhir>srv2:~/libvpp $ make debug-release
WARNING: STARTUP_CONF not defined or file doesn't exist.
         Running with minimal startup config:  unix { interactive
cli-listen /run/vpp/cli.sock gid 1000 } dpdk { no-pci } \n
GNU gdb (Ubuntu 8.1.1-0ubuntu1) 8.1.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/supervisor/libvpp/build-root/*install-vpp-native*
/vpp/bin/vpp...done.
Signal        Stop Print Pass to program Description
SIGUSR1       No No Yes User defined signal 1
(gdb) run -c /etc/vpp/startup.conf
Starting program:
/home/supervisor/libvpp/build-root/install-vpp-native/vpp/bin/vpp -c
/etc/vpp/startup.conf
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
unix_config:521: couldn't open log '/var/log/vpp/vpp.log'
/home/supervisor/libvpp/build-root/install-vpp-native/vpp/bin/vpp[1114]:
snort: initialized
/home/supervisor/libvpp/build-root/install-vpp-native/vpp/bin/vpp[1114]:
snort: snort listener /shm/run/vpp//snort.sock
[New Thread 0x7fffade3a700 (LWP 1130)]
[New Thread 0x7fffad639700 (LWP 1131)]

Can anyone help us to resolve the issue.
Thanks in advance .

Regards,
Sudhir

-- 
NOTICE TO
RECIPIENT This e-mail message and any attachments are 
confidential and may be
privileged. If you received this e-mail in error, 
any review, use,
dissemination, distribution, or copying of this e-mail is 
strictly
prohibited. Please notify us immediately of the error by return 
e-mail and
please delete this message from your system. For more 
information about Rtbrick, please visit us at www.rtbrick.com 
<http://www.rtbrick.com>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21023): https://lists.fd.io/g/vpp-dev/message/21023
Mute This Topic: https://lists.fd.io/mt/89798793/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to