<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 01/06/2011 08:06 AM, Arnaud Quette wrote:
    <blockquote
      cite="mid:AANLkTi=vRFun3o_GUd9-fMi+FVr1MtWfwn_3dAzoPCFS@mail.gmail.com"
      type="cite"><br>
      <div class="gmail_quote">2011/1/5 Zach La Celle <span dir="ltr">&lt;<a
            moz-do-not-send="true"
            href="mailto:lacelle@roboticresearch.com">lacelle@roboticresearch.com</a>&gt;</span><br>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          <div bgcolor="#ffffff" text="#000000">
            <div>
              <div class="h5"> On 01/04/2011 08:20 AM, Arnaud Quette
                wrote:
                <blockquote type="cite"><br>
                  <div class="gmail_quote">2011/1/4 Charles Lepple <span
                      dir="ltr">&lt;<a moz-do-not-send="true"
                        href="mailto:clepple@gmail.com" target="_blank">clepple@gmail.com</a>&gt;</span><br>
                    <blockquote class="gmail_quote" style="margin: 0pt
                      0pt 0pt 0.8ex; border-left: 1px solid rgb(204,
                      204, 204); padding-left: 1ex;">
                      <div>On Mon, Jan 3, 2011 at 8:29 AM, Zach La Celle<br>
                        &lt;<a moz-do-not-send="true"
                          href="mailto:lacelle@roboticresearch.com"
                          target="_blank">lacelle@roboticresearch.com</a>&gt;

                        wrote:<br>
                        &gt; On 12/29/2010 10:00 AM, Zach La Celle
                        wrote:<br>
                        &gt;&gt;<br>
                        &gt;&gt; On 12/29/2010 08:34 AM, Charles Lepple
                        wrote:<br>
                        &gt;&gt;&gt;<br>
                        &gt;&gt;&gt; On Dec 27, 2010, at 9:36 AM, Zach
                        La Celle wrote:<br>
                        &gt;&gt;&gt;<br>
                        &gt;&gt;&gt;&gt; I ran this in debug mode and
                        captures the backtrace.<br>
                        &gt;&gt;&gt;&gt;<br>
                        &gt;&gt;&gt;&gt; root@*********:/etc/nut# upsd
                        -D<br>
                        &gt;&gt;&gt;&gt; Network UPS Tools upsd 2.4.3<br>
                        &gt;&gt;&gt;&gt;  0.000000     listening on
                        0.0.0.0 port 3493<br>
                        &gt;&gt;&gt;&gt;  0.000354     Connected to UPS
                        [rack1ups]: apcsmart-rack1ups<br>
                        &gt;&gt;&gt;&gt;  2.550554     User <a
                          moz-do-not-send="true"
                          href="mailto:upsmon@127.0.0.1" target="_blank">upsmon@127.0.0.1</a>
                        logged into UPS [rack1ups]<br>
                        &gt;&gt;&gt;&gt; *** glibc detected *** upsd:
                        free(): invalid next size (fast):<br>
                        &gt;&gt;&gt;&gt; 0x00000000012c9870 ***<br>
                        &gt;&gt;&gt;<br>
                        &gt;&gt;&gt; Can you give us some background
                        information about this system? What OS<br>
                        &gt;&gt;&gt; and version, who built the package,
                        etc.<br>
                        <br>
                      </div>
                      Just to be sure, are you running the
                      Ubuntu-provided package, or<br>
                      something from another package repository? Which
                      version of Ubuntu?<br>
                      <br>
                      Running valgrind might produce similarly opaque
                      results without debug<br>
                      symbols (which you can enable if you build from
                      source).</blockquote>
                    <div><br>
                      debug syms are available as separate debs.<br>
                      As an example, for Ubuntu, look here:<br>
                      <a moz-do-not-send="true"
                        href="https://wiki.kubuntu.org/DebuggingProgramCrash"
                        target="_blank">https://wiki.kubuntu.org/DebuggingProgramCrash</a><br>
                      <br>
                      then look for installing {nut,libupsclient}-dbgsym
                      and others if needed otherwise...<br>
                      <br>
                    </div>
                    <blockquote class="gmail_quote" style="margin: 0pt
                      0pt 0pt 0.8ex; border-left: 1px solid rgb(204,
                      204, 204); padding-left: 1ex;"> That is a bit<br>
                      more involved, though (especially if you want to
                      keep the installed<br>
                      files in the same place) so I'd try that after
                      Arjen's suggestion with<br>
                      "-DDD".<br>
                    </blockquote>
                  </div>
                  <br>
                  seconded for a first run.<br clear="all">
                  <br>
                  cheers,<br>
                  Arnaud<br>
                  -- <br>
                  Linux / Unix Expert R&amp;D - Eaton - <a
                    moz-do-not-send="true"
                    href="http://powerquality.eaton.com" target="_blank">http://powerquality.eaton.com</a><br>
                  Network UPS Tools (NUT) Project Leader - <a
                    moz-do-not-send="true"
                    href="http://www.networkupstools.org/"
                    target="_blank">http://www.networkupstools.org/</a><br>
                  Debian Developer - <a moz-do-not-send="true"
                    href="http://www.debian.org" target="_blank">http://www.debian.org</a><br>
                  Free Software Developer - <a moz-do-not-send="true"
                    href="http://arnaud.quette.free.fr/" target="_blank">http://arnaud.quette.free.fr/</a><br>
                  <br>
                </blockquote>
              </div>
            </div>
            The only extra package I could find is the "dev" package. 
            I'm not sure if that contains debugging symbols.<br>
            <br>
            I'm running with the "-DDD" option now.  It hasn't crashed
            over the weekend, so we'll see how long it takes to crash
            now.  I'm getting source to try and rebuild it so that I can
            walk through in GDB if necessary.<br>
          </div>
        </blockquote>
      </div>
      <br>
      have you looked at the pointer I've sent, *and* applied the
      various mentioned actions (adding key and repository, refresh apt
      cache, ...)?<br>
      <br>
      otherwise, you won't see these packages!<br>
      I still fail to see what is your exact system (Ubuntu? which
      version?) apart from the arch which is x86_64...<br clear="all">
      <br>
      cheers,<br>
      Arnaud<br>
      -- <br>
      Linux / Unix Expert R&amp;D - Eaton - <a moz-do-not-send="true"
        href="http://powerquality.eaton.com" target="_blank">http://powerquality.eaton.com</a><br>
      Network UPS Tools (NUT) Project Leader - <a
        moz-do-not-send="true" href="http://www.networkupstools.org/"
        target="_blank">http://www.networkupstools.org/</a><br>
      Debian Developer - <a moz-do-not-send="true"
        href="http://www.debian.org" target="_blank">http://www.debian.org</a><br>
      Free Software Developer - <a moz-do-not-send="true"
        href="http://arnaud.quette.free.fr/" target="_blank">http://arnaud.quette.free.fr/</a><br>
      <br>
    </blockquote>
    I'm having trouble finding the upsd source code, or maybe I just
    don't understand how to run it properly.  The source I have for
    ubuntu/lucid seems to either be for a different UPSD project, or to
    run very differently than the version off of the Ubuntu
    repositories.  Can you point me to the correct source for upsd?<br>
  </body>
</html>