<p style="white-space: pre-wrap; word-wrap: break-word;">The problem is somewhere in cmd_execute_command_real(). Instead of composing 'argv' from 'vline', we need to use 'matched_element'.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Some info from gdb:</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">  $ gdb -q ./vty_transcript_test<br>  (gdb)$ b command.c:2322</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">  $ telnet localhost 42042<br>  $ vty_transcript_test> th</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">  (gdb)$ bt<br>    #0  cmd_execute_command_real (vline=0x62ac30, vty=0x6295e0, cmd=0x0) at command.c:2321<br>    #1  0x00007ffff7767575 in cmd_execute_command (vline=0x62ac30, vty=0x6295e0, cmd=0x0, vtysh=0x0) at command.c:2354<br>    #2  0x00007ffff776ab79 in vty_command (vty=0x6295e0, buf=0x629790 "multi0 th") at vty.c:431<br>    #3  0x00007ffff776b3a0 in vty_execute (vty=0x6295e0) at vty.c:695<br>    #4  0x00007ffff776cf8c in vty_read (vty=0x6295e0) at vty.c:1419<br>    #5  0x00007ffff776f5f1 in client_data (fd=0x629538, what=0x1) at telnet_interface.c:147<br>    #6  0x00007ffff7ba01c4 in osmo_fd_disp_fds (_rset=0x7fffffffda20, _wset=0x7fffffffdaa0, _eset=0x7fffffffdb20) at select.c:223<br>    #7  0x00007ffff7ba0349 in osmo_select_main (polling=0x0) at select.c:263<br>    #8  0x00000000004016d2 in main (argc=0x1, argv=0x7fffffffdcb8) at vty/vty_transcript_test.c:232<br>    #9  0x00007ffff73b3f45 in __libc_start_main (main=0x40154b <main>, argc=0x1, argv=0x7fffffffdcb8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffdca8) at libc-start.c:287<br>#10 0x00000000004010f9 in _start ()</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">  (gdb)$ p (char *) (vline->index[0])<br>    $131 = 0x62ad20 "multi0"<br>  (gdb)$ p (char *) (vline->index[1])<br>    $132 = 0x62ad90 "th"</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">  (gdb)$ p (char *) *((struct _vector *)((struct _vector *)((struct _vector *)(matched_element->strvec->index[0])))->index[0])<br>    $133 = 0x626400 "multi0"<br>  (gdb)$ p (char *) *((struct _vector *)((struct _vector *)((struct _vector *)(matched_element->strvec->index[1])))->index[0])<br>    $134 = 0x626660 "one"<br>  (gdb)$ p (char *) *((struct _vector *)((struct _vector *)((struct _vector *)(matched_element->strvec->index[1])))->index[1])<br>    $135 = 0x626390 "two"<br>  (gdb)$ p (char *) *((struct _vector *)((struct _vector *)((struct _vector *)(matched_element->strvec->index[1])))->index[2])<br>    $136 = 0x626840 "three"</pre><p><a href="https://gerrit.osmocom.org/14307">View Change</a></p><ul style="list-style: none; padding: 0;"></ul><p>To view, visit <a href="https://gerrit.osmocom.org/14307">change 14307</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/14307"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: I83c3aef813173952641035862c534ef16384780e </div>
<div style="display:none"> Gerrit-Change-Number: 14307 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Vadim Yanitskiy <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Vadim Yanitskiy <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Fri, 31 May 2019 19:52:08 +0000 </div>
<div style="display:none"> Gerrit-HasComments: No </div>
<div style="display:none"> Gerrit-HasLabels: No </div>