Hi Zach,<br><br><div class="gmail_quote">2011/1/10 Zach La Celle <span dir="ltr"><<a href="mailto:lacelle@roboticresearch.com">lacelle@roboticresearch.com</a>></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/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"><<a href="mailto:lacelle@roboticresearch.com" target="_blank">lacelle@roboticresearch.com</a>></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"><<a href="mailto:clepple@gmail.com" target="_blank">clepple@gmail.com</a>></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>
<<a href="mailto:lacelle@roboticresearch.com" target="_blank">lacelle@roboticresearch.com</a>>
wrote:<br>
> On 12/29/2010 10:00 AM, Zach La Celle
wrote:<br>
>><br>
>> On 12/29/2010 08:34 AM, Charles Lepple
wrote:<br>
>>><br>
>>> On Dec 27, 2010, at 9:36 AM, Zach
La Celle wrote:<br>
>>><br>
>>>> I ran this in debug mode and
captures the backtrace.<br>
>>>><br>
>>>> root@*********:/etc/nut# upsd
-D<br>
>>>> Network UPS Tools upsd 2.4.3<br>
>>>> 0.000000 listening on
0.0.0.0 port 3493<br>
>>>> 0.000354 Connected to UPS
[rack1ups]: apcsmart-rack1ups<br>
>>>> 2.550554 User <a href="mailto:upsmon@127.0.0.1" target="_blank">upsmon@127.0.0.1</a>
logged into UPS [rack1ups]<br>
>>>> *** glibc detected *** upsd:
free(): invalid next size (fast):<br>
>>>> 0x00000000012c9870 ***<br>
>>><br>
>>> Can you give us some background
information about this system? What OS<br>
>>> 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'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&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 "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&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'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>
</div>
</blockquote></div><br>to get the one for your binary, check that you have a "deb-src" line for main in your /etc/apt/sources.list<br clear="all">then "apt-get source nut"<br>or get the source here: <a href="http://packages.ubuntu.com/maverick/nut">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&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>