On Mon, Mar 27, 2017 at 9:27 AM, Adrian Daniel Calianu <
adrian.cali...@gmail.com> wrote:

> Hi all,
>
> I have the same issue. After I built the vpp from sources(master branch)
> and run vppctl I see a segmentation fault. This looks to be caused by the
> fact that the vlib_mains from init functions of dynamic linked libraries is
> 0x0.
> Following patch will fix the problem:
> --- a/src/vlib/global_funcs.h
>  19 +++ b/src/vlib/global_funcs.h
>  20 @@ -23,7 +23,7 @@ always_inline vlib_main_t *
>  21  vlib_get_main (void)
>  22  {
>  23    vlib_main_t *vm;
>  24 -  vm = vlib_mains[os_get_cpu_number ()];
>  25 +  vm = vlib_mains ? vlib_mains[os_get_cpu_number ()] :
> &vlib_global_main;
>  26    ASSERT (vm);
>  27    return vm;
>  28  }
>
> This is like a part of patch did in commit: 
> 80f54e20270ed0628ee725e3e3c515731a0188f2
> need to be reverted.
>
> Is other fix of this issue?
>
> /Adrian
>

For the record, my issue was PEBCAK.  I needed to add -lvlib
to my link line.

Oh yeah.

jdl
_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to