<div dir="ltr"><div><div>Well, it turns out that the git version of mosh works perfectly, so I have no idea what would be causing the problem. If you&#39;d like, I can modify the 1.2.5-r1 sources to get the coredump, but I don&#39;t think it&#39;ll be of much use to any of us, since the problem is fixed on both ends.<br><br></div>Thanks,<br></div>Deven<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 7, 2016 at 8:52 PM, John Hood <span dir="ltr">&lt;<a href="mailto:cgull@glup.org" target="_blank">cgull@glup.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <p>Oops, I&#39;m forgetting two rather important things, sorry.</p>
    <p>* The --local flag is only in mosh master, not yet in any release
      (though 1.2.6 is coming soon).  Available on GitHub near you.  If
      you don&#39;t want to mess with source you can run mosh-client and
      mosh-server manually as documented on
      <a href="https://mosh.mit.edu/" target="_blank">&lt;https://mosh.mit.edu/&gt;</a>.<br>
    </p>
    <p>* mosh-server itself disables coredumps to protect its
      cryptographic secrets.  Disabling that requires editing source and
      rebuilding mosh-server.</p>
    <p>regards,</p>
    <p>  --jh<br>
    </p><div><div class="h5">
    <div>On 06/07/2016 20:21, Deven Lahoti
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">mosh --local just gives &quot;unknown option&quot;, and I
        can&#39;t figure out how to enable coredumps for mosh-server -
        coredumps work for everything else, so I&#39;m not sure why they&#39;re
        disabled here.<br>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Tue, Jun 7, 2016 at 9:39 AM, John
          Hood <span dir="ltr">&lt;<a href="mailto:cgull@glup.org" target="_blank">cgull@glup.org</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="auto">
              <div>Try running </div>
              <div><br>
              </div>
              <div>strace -ffo trace mosh --local 127.0.0.1</div>
              <div><br>
              </div>
              <div>on that server after enabling coredumps. That&#39;s not
                exactly the same as normal execution, since it doesn&#39;t
                use ssh, but it&#39;s useful for issues like this one.</div>
              <div><br>
              </div>
              <div>regards,</div>
              <div><br>
              </div>
              <div>  --jh</div>
              <div>
                <div>
                  <div><br>
                    On Jun 7, 2016, at 12:56 AM, Deven Lahoti &lt;<a href="mailto:deywos@mit.edu" target="_blank"></a><a href="mailto:deywos@mit.edu" target="_blank">deywos@mit.edu</a>&gt;
                    wrote:<br>
                    <br>
                  </div>
                  <blockquote type="cite">
                    <div>
                      <p dir="ltr">Neither strace nor gdb will give me a
                        backtrace, since they both lose track of it when
                        it forks, but the failure happens after forking.
                        For some reason, systemd says that coredumps are
                        disabled for the process, so I can&#39;t get one of
                        those either. </p>
                      <div class="gmail_quote">On Jun 7, 2016 00:31,
                        &quot;Alex Chernyakhovsky&quot; &lt;<a href="mailto:achernya@mit.edu" target="_blank"></a><a href="mailto:achernya@mit.edu" target="_blank">achernya@mit.edu</a>&gt;
                        wrote:<br type="attribution">
                        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Unfortunately, that&#39;s
                          not much to go on. Could you grab the core
                          file<br>
                          and get a backtrace? I&#39;m assuming some syscall
                          (probably malloc?)<br>
                          failed.<br>
                          <br>
                          Sincerely,<br>
                          -Alex<br>
                          <br>
                          On Tue, Jun 7, 2016 at 12:18 AM, Deven Lahoti
                          &lt;<a href="mailto:deywos@mit.edu" target="_blank">deywos@mit.edu</a>&gt;
                          wrote:<br>
                          &gt; I don&#39;t think that&#39;s the problem, since
                          it&#39;s now giving me:<br>
                          &gt; mosh-server[21489]: segfault at 0 ip     
                               (null) sp 00007fffffffcbd8<br>
                          &gt; error 14 in
                          mosh-server[555555554000+60000]<br>
                          &gt;<br>
                          &gt; On Mon, Jun 6, 2016 at 11:42 PM, Alex
                          Chernyakhovsky &lt;<a href="mailto:achernya@mit.edu" target="_blank">achernya@mit.edu</a>&gt;<br>
                          &gt; wrote:<br>
                          &gt;&gt;<br>
                          &gt;&gt; I think the offending line is<br>
                          &gt;&gt;<br>
                          &gt;&gt; Jun 06 22:32:19 &lt;hostname&gt;
                          kernel: PAX: From 18.X.X.X: execution<br>
                          &gt;&gt; attempt in: (null), 00000000-00000000
                          00000000<br>
                          &gt;&gt; Jun 06 22:32:19 &lt;hostname&gt;
                          kernel: PAX: terminating task:<br>
                          &gt;&gt;
                          /usr/bin/mosh-server(mosh-server):12505,
                          uid/euid: XXXX/XXXX, PC:<br>
                          &gt;&gt;       (nil), SP: 000003844385a508<br>
                          &gt;&gt;<br>
                          &gt;&gt; mosh-server needs to fork and exec to
                          start subprocesses, and your<br>
                          &gt;&gt; kernel/configuration doesn&#39;t consider
                          mosh-server to be in the<br>
                          &gt;&gt; whitelist.<br>
                          &gt;&gt;<br>
                          &gt;&gt; Sincerely,<br>
                          &gt;&gt; -Alex<br>
                          &gt;&gt;<br>
                          &gt;&gt;<br>
                          &gt;&gt; On Mon, Jun 6, 2016 at 11:30 PM,
                          Deven Lahoti &lt;<a href="mailto:deywos@mit.edu" target="_blank">deywos@mit.edu</a>&gt;
                          wrote:<br>
                          &gt;&gt; &gt; Hi, when trying to connect to my
                          machine running Gentoo Hardened on<br>
                          &gt;&gt; &gt; kernel<br>
                          &gt;&gt; &gt; 4.4.8, mosh-server fails to
                          start. Here are the logs (modified to remove<br>
                          &gt;&gt; &gt; personal info) [<a href="http://web.mit.edu/deywos/www/mosh.log" rel="noreferrer" target="_blank"></a><a href="http://web.mit.edu/deywos/www/mosh.log" target="_blank">http://web.mit.edu/deywos/www/mosh.log</a>].
                          I&#39;m not really<br>
                          &gt;&gt; &gt; sure<br>
                          &gt;&gt; &gt; what the problem is, and I don&#39;t
                          know much about how mosh works, so I<br>
                          &gt;&gt; &gt; was<br>
                          &gt;&gt; &gt; hoping someone here could help
                          me out.<br>
                          &gt;&gt; &gt;<br>
                          &gt;&gt; &gt; Thanks,<br>
                          &gt;&gt; &gt; Deven<br>
                          &gt;&gt; &gt;<br>
                          &gt;&gt; &gt;
                          _______________________________________________<br>
                          &gt;&gt; &gt; mosh-users mailing list<br>
                          &gt;&gt; &gt; <a href="mailto:mosh-users@mit.edu" target="_blank">mosh-users@mit.edu</a><br>
                          &gt;&gt; &gt; <a href="http://mailman.mit.edu/mailman/listinfo/mosh-users" rel="noreferrer" target="_blank">http://mailman.mit.edu/mailman/listinfo/mosh-users</a><br>
                          &gt;&gt; &gt;<br>
                          &gt;<br>
                          &gt;<br>
                        </blockquote>
                      </div>
                    </div>
                  </blockquote>
                  <blockquote type="cite">
                    <div><span>_______________________________________________</span><br>
                      <span>mosh-users mailing list</span><br>
                      <span><a href="mailto:mosh-users@mit.edu" target="_blank">mosh-users@mit.edu</a></span><br>
                      <span><a href="http://mailman.mit.edu/mailman/listinfo/mosh-users" target="_blank">http://mailman.mit.edu/mailman/listinfo/mosh-users</a></span><br>
                    </div>
                  </blockquote>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </div></div></div>

</blockquote></div><br></div>