<p><a href="https://gerrit.osmocom.org/c/libosmocore/+/15265">View Change</a></p><p>6 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/15265/1//COMMIT_MSG">Commit Message:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/15265/1//COMMIT_MSG@11">Patch Set #1, Line 11:</a> <code style="font-family:monospace,monospace">segfaults: the vty->obuf is already NULL.</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Why do we try to send a message to a killed session first of all? That seems to be the route of the issue.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/15265/1//COMMIT_MSG@13">Patch Set #1, Line 13:</a> <code style="font-family:monospace,monospace">In vty_out(), guard against this situation by not composing an output if</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Fine with this part so far.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/15265/1//COMMIT_MSG@16">Patch Set #1, Line 16:</a> <code style="font-family:monospace,monospace">Also guard all buffer_*() functions against a NULL buffer argument, which</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">this looks like a hack to fix other parts of the code which may be wrong, and looks like it should be fixed in other places rather than here.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/15265/1//COMMIT_MSG@20">Patch Set #1, Line 20:</a> <code style="font-family:monospace,monospace">Related: OS#4164</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">This ticket doesn't look related to me.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/15265/1/src/vty/buffer.c">File src/vty/buffer.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/15265/1/src/vty/buffer.c@95">Patch Set #1, Line 95:</a> <code style="font-family:monospace,monospace">  if (!b)</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">I don't think these checks are really needed to fix the issue at hand, so at least they should go into a separate commit.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/15265/1/src/vty/vty.c">File src/vty/vty.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/15265/1/src/vty/vty.c@266">Patch Set #1, Line 266:</a> <code style="font-family:monospace,monospace">                        * of this same (killed) telnet session. See OS#4146. */</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">OS#4146 (https://osmocom.org/issues/4146) seems non-related to what you say here, probably wrong ticket number.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/15265">change 15265</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/c/libosmocore/+/15265"/><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-Change-Id: Idca3f54dc986abf6784790c12e69e02bdf77cb41 </div>
<div style="display:none"> Gerrit-Change-Number: 15265 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-CC: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 22 Aug 2019 10:25:44 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>