MERAprojects / ops-build

Other
0 stars 0 forks source link

Segmentation fault was returned after trying to execute "write terminal" in aaa group configuration menu #43

Open alrukav opened 7 years ago

alrukav commented 7 years ago

Problem Description:

Segmentation fault was returned after trying to execute "write terminal" in aaa group configuration menu

OpenSwitch version:

OpenSwitch 0.4.0 (Build: appliance-ops-0.4.0-meraswitch/devel/master-20170330163417-dev)

Test Topology:

one DUT.

Steps to reproduce the problem (see attached files):

  1. Configure DUT:
    
    root@switch:~# vtysh
    switch# conf t

switch(config)# hostname ops switch(config)# aaa group server tacacs_plus tacgr1

2. Try to execute "write terminal" command on DUT. - `NOK: segmentation fault.`

ops(config-sg)# write terminal Current configuration: ! hostname ops Segmentation fault root@switch:~#


Small debug info:

root@switch:~# gdb vtysh (gdb) run Starting program: /usr/bin/vtysh [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/libthread_db.so.1". ops# conf t ops(config)# do sh run Current configuration: ! !Version OpenSwitch 0.4.0 (Build: appliance-ops-0.4.0-meraswitch/devel/master-20170330163417-dev) !Schema version 0.1.8 hostname ops timezone set utc ! ! ! ! aaa group server tacacs_plus tacgr1 aaa authentication login default local aaa authorization commands default none ! ! ! ! vlan 1 no shutdown ops(config)# aaa group server tacacs_plus tacgr1 ops(config-sg)# write terminal

Current configuration: ! hostname ops [New Thread 0x7ffff021a700 (LWP 584)]

Program received signal SIGSEGV, Segmentation fault. 0x00007ffff6b18fee in ?? () from /usr/lib/libops-cli.so.0.0.0 (gdb) bt

0 0x00007ffff6b18fee in ?? () from /usr/lib/libops-cli.so.0.0.0

1 0x00007ffff6b18a25 in ?? () from /usr/lib/libops-cli.so.0.0.0

2 0x00007ffff6b1f532 in ?? () from /usr/lib/libops-cli.so.0.0.0

3 0x00007ffff6b1f700 in cmd_execute_command ()

from /usr/lib/libops-cli.so.0.0.0

4 0x000000000041bc7f in ?? ()

5 0x000000000041c169 in vtysh_execute ()

6 0x000000000041a541 in main ()