<br><div class="gmail_quote">2011/1/16 Zach La Celle <span dir="ltr">&lt;<a 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></div><div class="h5">
    On 01/11/2011 03:38 AM, Arnaud Quette wrote:
    <blockquote type="cite">Hi Zach,<br>
      <br>
      <div class="gmail_quote">2011/1/10 Zach La Celle <span dir="ltr">&lt;<a href="mailto:lacelle@roboticresearch.com" target="_blank">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> On 01/06/2011 08:06 AM, Arnaud Quette
                wrote:
                <blockquote type="cite"><br>
                  <div class="gmail_quote">2011/1/5 Zach La Celle <span dir="ltr">&lt;<a href="mailto:lacelle@roboticresearch.com" target="_blank">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> 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 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 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 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 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&#39;d try
                                  that after Arjen&#39;s suggestion with<br>
                                  &quot;-DDD&quot;.<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 href="http://powerquality.eaton.com" target="_blank">http://powerquality.eaton.com</a><br>
                              Network UPS Tools (NUT) Project Leader - <a href="http://www.networkupstools.org/" target="_blank">http://www.networkupstools.org/</a><br>
                              Debian Developer - <a href="http://www.debian.org" target="_blank">http://www.debian.org</a><br>
                              Free Software Developer - <a 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 &quot;dev&quot;
                        package.  I&#39;m not sure if that contains
                        debugging symbols.<br>
                        <br>
                        I&#39;m running with the &quot;-DDD&quot; option now.  It
                        hasn&#39;t crashed over the weekend, so we&#39;ll see
                        how long it takes to crash now.  I&#39;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&#39;ve sent, *and*
                  applied the various mentioned actions (adding key and
                  repository, refresh apt cache, ...)?<br>
                  <br>
                  otherwise, you won&#39;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 href="http://powerquality.eaton.com" target="_blank">http://powerquality.eaton.com</a><br>
                  Network UPS Tools (NUT) Project Leader - <a href="http://www.networkupstools.org/" target="_blank">http://www.networkupstools.org/</a><br>
                  Debian Developer - <a href="http://www.debian.org" target="_blank">http://www.debian.org</a><br>
                  Free Software Developer - <a href="http://arnaud.quette.free.fr/" target="_blank">http://arnaud.quette.free.fr/</a><br>
                  <br>
                </blockquote>
              </div>
            </div>
            I&#39;m having trouble finding the upsd source code, or maybe I
            just don&#39;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>
          </div>
        </blockquote>
      </div>
      <br>
      to get the one for your binary, check that you have a &quot;deb-src&quot;
      line for main in your /etc/apt/sources.list<br clear="all">
      then &quot;apt-get source nut&quot;<br>
      or get the source here: <a href="http://packages.ubuntu.com/maverick/nut" target="_blank">http://packages.ubuntu.com/maverick/nut</a><br>
      <br>
      note that upsd package is a completely different project.<br>
      <br>
      cheers,<br>
      Arnaud<br>
      -- <br>
      Linux / Unix Expert R&amp;D - Eaton - <a href="http://powerquality.eaton.com" target="_blank">http://powerquality.eaton.com</a><br>
      Network UPS Tools (NUT) Project Leader - <a href="http://www.networkupstools.org/" target="_blank">http://www.networkupstools.org/</a><br>
      Debian Developer - <a href="http://www.debian.org" target="_blank">http://www.debian.org</a><br>
      Free Software Developer - <a href="http://arnaud.quette.free.fr/" target="_blank">http://arnaud.quette.free.fr/</a><br>
      <br>
    </blockquote></div></div>
    I now have the upsd source package installed and built for debug,
    but when I run upsd I get errors connecting to my UPS.  I copied all
    of the configuration files from my normal config directory
    (/etc/nut) into the new directory (/usr/local/ups/etc/), but I get
    an &quot;Error; cannot find rack1ups; no such file or directory&quot; or
    something along those lines.  I&#39;ve tried to fix this myself but it
    just doesn&#39;t seem to be working.  Any idea?<br>
  </div>

</blockquote></div><br>in order to have a source compilation working in a Debian / derivative env., you need to configure using the following flags:<br clear="all">./configure --prefix=/usr \<br>            --exec-prefix=/ \<br>
            --sysconfdir=/etc/nut \<br>            --mandir=/usr/share/man \<br>            --libdir=/lib \<br>            --includedir=/usr/include \<br>            --without-ssl \<br>            --with-hal \<br>            --with-cgi \<br>
            --with-dev \<br>            --enable-static \<br>            --with-statepath=/var/run/nut \<br>            --with-altpidpath=/var/run/nut \<br>            --with-drvpath=/lib/nut \<br>            --with-cgipath=/usr/lib/cgi-bin/nut \<br>
            --with-htmlpath=/usr/share/nut/www \<br>            --with-pidpath=/var/run/nut \<br>            --datadir=/usr/share/nut \<br>            --with-pkgconfig-dir=/usr/lib/pkgconfig \<br>            --with-user=nut --with-group=nut<br>
<br>This is the official line from the Debian packages.<br>You can however disable a few to avoid installing build dependencies, ie --without-hal, --without-cgi, ...<br><br>cheers,<br>Arnaud<br>-- <br>Linux / Unix Expert R&amp;D - Eaton - <a href="http://powerquality.eaton.com" target="_blank">http://powerquality.eaton.com</a><br>
Network UPS Tools (NUT) Project Leader - <a href="http://www.networkupstools.org/" target="_blank">http://www.networkupstools.org/</a><br>Debian Developer - <a href="http://www.debian.org" target="_blank">http://www.debian.org</a><br>
Free Software Developer - <a href="http://arnaud.quette.free.fr/" target="_blank">http://arnaud.quette.free.fr/</a><br><br>