<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hindsight is so wonderful.<br>
    <br>
    This is probably a duplicate of the general glibc issue in
    <a class="moz-txt-link-rfc2396E" href="https://github.com/mobile-shell/mosh/issues/727">&lt;https://github.com/mobile-shell/mosh/issues/727&gt;</a>, and we even
    have a PR on Gentoo Hardened
    <a class="moz-txt-link-rfc2396E" href="https://github.com/mobile-shell/mosh/issues/736">&lt;https://github.com/mobile-shell/mosh/issues/736&gt;</a> and forgot
    about it.<br>
    <br>
    regards,<br>
    <br>
      --jh<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 06/07/2016 21:19, Deven Lahoti
      wrote:<br>
    </div>
    <blockquote
cite="mid:CANGLR7ssNhiP1nG_FMwNxnLQj=kLD2BK4eQfTnThDPmc3ubDQg@mail.gmail.com"
      type="cite">
      <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'd like, I can modify the 1.2.5-r1 sources to
            get the coredump, but I don't think it'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 moz-do-not-send="true"
              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'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't want to mess with source
                you can run mosh-client and mosh-server manually as
                documented on <a moz-do-not-send="true"
                  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 "unknown
                      option", and I can't figure out how to enable
                      coredumps for mosh-server - coredumps work for
                      everything else, so I'm not sure why they'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
                            moz-do-not-send="true"
                            href="mailto:cgull@glup.org" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:cgull@glup.org">cgull@glup.org</a></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's not exactly the same as
                              normal execution, since it doesn't use
                              ssh, but it'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 moz-do-not-send="true"
                                    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't get one of those either. </p>
                                    <div class="gmail_quote">On Jun 7,
                                      2016 00:31, "Alex Chernyakhovsky"
                                      &lt;<a moz-do-not-send="true"
                                        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's not much to go on. Could
                                        you grab the core file<br>
                                        and get a backtrace? I'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
                                          moz-do-not-send="true"
                                          href="mailto:deywos@mit.edu"
                                          target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:deywos@mit.edu">deywos@mit.edu</a></a>&gt;
                                        wrote:<br>
                                        &gt; I don't think that's the
                                        problem, since it'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 moz-do-not-send="true"
                                          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'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
                                          moz-do-not-send="true"
                                          href="mailto:deywos@mit.edu"
                                          target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:deywos@mit.edu">deywos@mit.edu</a></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
                                          moz-do-not-send="true"
                                          href="http://web.mit.edu/deywos/www/mosh.log"
                                          target="_blank"><a class="moz-txt-link-freetext" href="http://web.mit.edu/deywos/www/mosh.log">http://web.mit.edu/deywos/www/mosh.log</a></a>].
                                        I'm not really<br>
                                        &gt;&gt; &gt; sure<br>
                                        &gt;&gt; &gt; what the problem
                                        is, and I don'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
                                          moz-do-not-send="true"
                                          href="mailto:mosh-users@mit.edu"
                                          target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:mosh-users@mit.edu">mosh-users@mit.edu</a></a><br>
                                        &gt;&gt; &gt; <a
                                          moz-do-not-send="true"
                                          href="http://mailman.mit.edu/mailman/listinfo/mosh-users"
                                          rel="noreferrer"
                                          target="_blank"><a class="moz-txt-link-freetext" href="http://mailman.mit.edu/mailman/listinfo/mosh-users">http://mailman.mit.edu/mailman/listinfo/mosh-users</a></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 moz-do-not-send="true"
                                        href="mailto:mosh-users@mit.edu"
                                        target="_blank">mosh-users@mit.edu</a></span><br>
                                    <span><a moz-do-not-send="true"
                                        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>
    </blockquote>
    <br>
  </body>
</html>