You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
When I use bfshell to send scripts to a running bf_switchd program.
As soon as the bfshell connection is closed, it will cause segfault on the bf_switchd program.
Here is the gdb output:
...
bf_rt cli exited normally.
Thread 13 "bf_cli_smain" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffdeffd640 (LWP 260075)]
0x00007ffff7e32975 in __GI___libc_free (mem=0xffffffffd40017b0) at malloc.c:3288
3288 malloc.c: No such file or directory.
(gdb) bt
#0 0x00007ffff7e32975 in __GI___libc_free (mem=0xffffffffd40017b0) at malloc.c:3288
#1 0x00007ffff7d996a5 in bf_sys_free (ptr=<optimized out>)
at /P4_SDE/p4-dpdk-target/third-party/target-syslibs/src/bf_sal/linux_usr/bf_sys_mem.c:40
#2 0x00007ffff78a97e4 in clish_shell_fini (this=0x7fffd4000b60)
at /P4_SDE/p4-dpdk-target/third-party/target-utils/third-party/klish/clish/shell/shell_new.c:195
#3 clish_shell_delete (this=this@entry=0x7fffd4000b60)
at /P4_SDE/p4-dpdk-target/third-party/target-utils/third-party/klish/clish/shell/shell_new.c:218
#4 0x00007ffff78af808 in cli_thread_start (args=<optimized out>)
at /P4_SDE/p4-dpdk-target/third-party/target-utils/third-party/klish/clish/shell/shell_thread.c:233
#5 0x00007ffff7f8ad80 in start_thread (arg=0x7fffdeffd640) at pthread_create.c:481
#6 0x00007ffff7ea676f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
(gdb)
The text was updated successfully, but these errors were encountered:
Hi,
When I use
bfshell
to send scripts to a runningbf_switchd
program.As soon as the
bfshell
connection is closed, it will cause segfault on thebf_switchd
program.Here is the gdb output:
The text was updated successfully, but these errors were encountered: