ASSERT will not cause crash in production image, as it is excluded from
production builds.
However if ASSERT condition was met than it is good probability that VPP will
crash shortly after or start to misbehave.
> On 19 Jun 2018, at 04:28, chetan bhasin wrote:
>
> Actually assert is fine if we
Actually assert is fine if we are doing QA testing but if we deploy build
at customer site we don't expect there would be a crash, even in error
condition, error code should be return and that code needs to be handled
properly.
Thanks,
Chetan Bhasin
On Tue, Jun 19, 2018, 14:32 Ray Kinsella wrot
Ok - there something we are missing here.
Why would you want to do this?
Ray K
On 15/06/2018 10:11, chetan bhasin wrote:
Hi ,
For deployment , we want to replace assert with error log. Is there a
way in VPP to do that?
Thanks,
Chetan
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messag
As you’ve seen, ASSERTs are not compiled into production images. There are far
too many of them to simply change the macro in CLIB_DEBUG=0 images and expect
anything like acceptable performance.
I would guess it’s at least a 50% hit. A -g -O0 (TAG=vpp_debug) image is often
an order-of-magnitude