Hey,

I met the same issue when I using latest VPP code.
In VPP 17.01, CLI command “classify table mask l3 ip4 proto” works well.

Below is the error and bt log:
Could someone take a look at it?  Thanks a lot.

DBGvpp# classify table match 1 mask l3 ip4 proto

Thread 1 "vpp_main" received signal SIGSEGV, Segmentation fault.
0x00007ffff68e67b4 in vnet_classify_new_table (cm=0x7ffff7608320 
<vnet_classify_main>, mask=0x1 <error: Cannot access\
memory at address 0x1>, nbuckets=2, memory_size=2097152, skip_n_vectors=1, 
match_n_vectors=1)
    at /root/vpp/build-data/../src/vnet/classify/vnet_classify.c:118


(gdb) bt
#0  0x00007ffff68e67b4 in vnet_classify_new_table (cm=0x7ffff7608320 
<vnet_classify_main>, mask=0x1 <error: Cannot ac\
cess memory at address 0x1>, nbuckets=2, memory_size=2097152, skip_n_vectors=1, 
match_n_vectors=1)
    at /root/vpp/build-data/../src/vnet/classify/vnet_classify.c:118
#1  0x00007ffff68e98ad in vnet_classify_add_del_table (cm=0x7ffff7608320 
<vnet_classify_main>, mask=0x1 <error: Canno\
t access memory at address 0x1>, nbuckets=2, memory_size=2097152, skip=1, 
match=1, next_table_index=4294967295,
    miss_next_index=4294967295, table_index=0x7fffb6089b70, current_data_flag=0 
'\000', current_data_offset=0, is_add\
=1, del_chain=0) at 
/root/vpp/build-data/../src/vnet/classify/vnet_classify.c:675
#2  0x00007ffff68ec6cd in classify_table_command_fn (vm=0x7ffff7999340 
<vlib_global_main>, input=0x7fffb6089ef0, cmd=\
0x7fffb6060e30) at 
/root/vpp/build-data/../src/vnet/classify/vnet_classify.c:1461
#3  0x00007ffff76ccb08 in vlib_cli_dispatch_sub_commands (vm=0x7ffff7999340 
<vlib_global_main>, cm=0x7ffff79995a8 <vl\
ib_global_main+616>, input=0x7fffb6089ef0, parent_command_index=393) at 
/root/vpp/build-data/../src/vlib/cli.c:484
#4  0x00007ffff76cca16 in vlib_cli_dispatch_sub_commands (vm=0x7ffff7999340 
<vlib_global_main>, cm=0x7ffff79995a8 <vl\
ib_global_main+616>, input=0x7fffb6089ef0, parent_command_index=0) at 
/root/vpp/build-data/../src/vlib/cli.c:462
#5  0x00007ffff76ccded in vlib_cli_input (vm=0x7ffff7999340 <vlib_global_main>, 
input=0x7fffb6089ef0, function=0x7fff\
f7755b97 <unix_vlib_cli_output>, function_arg=0) at 
/root/vpp/build-data/../src/vlib/cli.c:558
#6  0x00007ffff775a3b7 in unix_cli_process_input (cm=0x7ffff79991a0 
<unix_cli_main>, cli_file_index=0) at /root/vpp/b\
uild-data/../src/vlib/unix/cli.c:2033
#7  0x00007ffff775ae1e in unix_cli_process (vm=0x7ffff7999340 
<vlib_global_main>, rt=0x7fffb6079000, f=0x0) at /root/\
vpp/build-data/../src/vlib/unix/cli.c:2130
#8  0x00007ffff76f3aa3 in vlib_process_bootstrap (_a=140736230333104) at 
/root/vpp/build-data/../src/vlib/main.c:1218
#9  0x00007ffff5fd2668 in clib_calljmp () at 
/root/vpp/build-data/../src/vppinfra/longjmp.S:110
#10 0x00007fffb5041a80 in ?? ()
#11 0x00007ffff76f3bce in vlib_process_startup (vm=0x7fffffffe260, p=0x406220 
<_start>, f=0x7ffff7999340 <vlib_global\
_main>) at /root/vpp/build-data/../src/vlib/main.c:1240
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thanks,
Hongjun

From: vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] On 
Behalf Of Siamak Abdollahzade via vpp-dev
Sent: Wednesday, February 15, 2017 2:57 PM
To: vpp-dev@lists.fd.io
Subject: [vpp-dev] problem in classify command in vpp

Hi all.

I am new in VPP and I'm trying to use classify command to filter specific 
traffic. I've followed [vpp-dev] Question: Classification with hex 
mask<https://lists.fd.io/pipermail/vpp-dev/2016-June/001408.html>. At first, I 
entered this command:

vpp# classify table mask l3 ip4 src dst proto

the result was:
classify table: match count required

I've done some research around this error, but I couldn't find anything 
helpful. So, I was wondering if there is a manual for this command? or can you 
tell me what the problem is? I also tried to enter an integer number as match 
and I got this error:
exec error: Misc

thanks.

[vpp-dev] Question: Classification with hex mask



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

Reply via email to