Hi Neale,

thanks for the info.

Just to further clarify for the community.

To start vpp with gdb run:

~/vpp/make build && make debug

then run:

(gdb) r -c /etc/vpp/startup.conf

(gdb) bt

Best regards,
Alessio


On Mon, Jun 12, 2017 at 7:55 PM, Neale Ranns (nranns) <nra...@cisco.com>
wrote:

> Hi Alessio,
>
>
>
> Nothing wrong with your method of compiling/running. Time to break out the
> debugger;
>
> sudo gdb ~/vpp/build-root/build-vpp_debug-native/vpp/bin/vpp
>
> (gdb) r -c /etc/vpp/startup.conf
>
> (gdb) bt
>
>
>
>
>
> /neale
>
>
>
> *From: *<vpp-dev-boun...@lists.fd.io> on behalf of Alessio Silvestro <
> ale.silver...@gmail.com>
> *Date: *Monday, 12 June 2017 at 17:42
> *To: *"vpp-dev@lists.fd.io" <vpp-dev@lists.fd.io>
> *Subject: *[vpp-dev] New vpp node
>
>
>
> Dear all,
>
>
>
> I am implementing a new node in VPP.
>
>
>
> The code is in ~/vpp/src/vnet/mynode/
>
>
>
> In order to compile the code, I added the following lines to the file
> ~/vpp/src/vnet.am
>
>
>
> libvnet_la_SOURCES +=               \
>
>  vnet/mynode/my_file.c
>
> nobase_include_HEADERS +=           \
>
>  vnet/mynode/my_file.h
>
>
>
> When I do from the top directory
>
> make build
>
>
>
> it compiles also my code, without any error.
>
>
>
> Now when I try to run vpp with the command
>
> ~/vpp/build-root/build-vpp_debug-native/vpp/bin/vpp -c
> /etc/vpp/startup.conf
>
> I have the following output:
>
> vlib_plugin_early_init:356: plugin path /usr/lib/vpp_plugins
>
> load_one_plugin:184: Loaded plugin: acl_plugin.so (Access Control Lists)
>
> load_one_plugin:184: Loaded plugin: dpdk_plugin.so (Data Plane Development
> Kit (DPDK))
>
> load_one_plugin:184: Loaded plugin: flowprobe_plugin.so (Flow per Packet)
>
> load_one_plugin:184: Loaded plugin: gtpu_plugin.so (GTPv1-U)
>
> load_one_plugin:184: Loaded plugin: ila_plugin.so (Identifier-locator
> addressing for IPv6)
>
> load_one_plugin:184: Loaded plugin: ioam_plugin.so (Inbound OAM)
>
> load_one_plugin:114: Plugin disabled (default): ixge_plugin.so
>
> load_one_plugin:184: Loaded plugin: lb_plugin.so (Load Balancer)
>
> load_one_plugin:184: Loaded plugin: libsixrd_plugin.so (IPv6 Rapid
> Deployment on IPv4 Infrastructure (RFC5969))
>
> load_one_plugin:184: Loaded plugin: memif_plugin.so (Packet Memory
> Interface (experimetal))
>
> load_one_plugin:184: Loaded plugin: snat_plugin.so (Network Address
> Translation)
>
> Segmentation fault
>
>
>
>
>
> My questions is the following: is there a segmentation fault because of my
> code or because of the set of operation I am doing?
>
>
>
> Best regards,
>
> Alessio
>
>
_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to