Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Jun 2005 16:11:43 -0400
From:      Joe Marcus Clarke <marcus@FreeBSD.org>
To:        Vladimir Chukharev <chu@h33.erkki.ton.tut.fi>
Cc:        gnome@FreeBSD.org, Vladimir Chukharev <chu@kemia.me.tut.fi>
Subject:   Re: HEADS UP: Realtime update support added to battstat
Message-ID:  <1120162303.36495.6.camel@shumai.marcuscom.com>
In-Reply-To: <op.ss66x52ish9hi4@localhost>
References:  <op.ss6v8jjc1taxl4@kempc17.me.tut.fi> <op.ss66x52ish9hi4@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-YvQjmebgO/Yws8vIlPNv
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Thu, 2005-06-30 at 22:26 +0300, Vladimir Chukharev wrote:
> On Thu, 30 Jun 2005 18:34:57 +0300, Vladimir Chukharev <chu@kemia.me.tut.=
fi> wrote:
>=20
> > You wrote:
> >
> >> If you're running 5.X or higher, and have been longing for realtime
> >> battery status updates in the battstat applet, apply this patch to dev=
d:
> >> http://www.marcuscom.com/downloads/devd.diff
> >
> > I tried it. After addition of the Battery Monitor to a panel
> > Well, while typing this I tried a few times to
> > connect/disconnect the power, it did not crash again.
>=20
> In two hours or so I got a lot of messages like
>=20
> Jun 30 20:52:01 chu kernel: kern.maxfiles limit exceeded by uid 540, plea=
se see tuning(7).
> Jun 30 20:52:32 chu last message repeated 31 times
>=20
> and had to reboot. After reboot on the first login I got the same
> two messages. In a few minuites the Battery Monitor crashed. I include
> the report collected by bugbuddy.

I went through the code again, but I did not see any obvious file
descriptor leaks.  I did, however, find a few other bugs.  I've posted a
new version of the battstat patch at
http://www.marcuscom.com/downloads/patch-battstat-acpi.  Please try this
new version, and if you see those maxfiles messages again, get the
output of lsof for the battstat process (i.e. lsof -p <PID of
battstat-applet-2>).

As for the backtrace below, it is useless.  It doesn't look like a crash
in the battstat code first of all; and secondly, there are no debugging
symbols.

Joe

>=20
> --=20
> V.Chukharev
>=20
> X-Mailer: bug-buddy 2.10.0
> Subject: battery monitor
>=20
> Distribution: Unknown
> Package: gnome-applets
> Severity: normal
> Version: GNOME2.10.2 0
> Gnome-Distributor: FreeBSD GNOME Project
> Synopsis: battery monitor
> Bugzilla-Product: gnome-applets
> Bugzilla-Component: battery
> Bugzilla-Version: 0
> BugBuddy-GnomeVersion: 2.0 (2.10.0)
> Description:
> Description of the crash:
>=20
>=20
> Steps to reproduce the crash:
> 1.
> 2.
> 3.
>=20
> Expected Results:
>=20
>=20
> How often does this happen?
>=20
>=20
> Additional Information:
>=20
>=20
>=20
> Debugging Information:
>=20
> Backtrace was generated from '/usr/X11R6/libexec/battstat-applet-2'
>=20
> (no debugging symbols found)...(no debugging symbols found)...(no
> debugging symbols found)...(no debugging symbols found)...(no debugging
> symbols found)...(no debugging symbols found)...(no debugging symbols
> found)...(no debugging symbols found)...(no debugging symbols
> found)...(no debugging symbols found)...(no debugging symbols
> found)...(no debugging symbols found)...(no debugging symbols
> found)...(no debugging symbols found)...(no debugging symbols
> found)...(no debugging symbols found)...(no debugging symbols
> found)...(no debugging symbols found)...(no debugging symbols
> found)...(no debugging symbols found)...(no debugging symbols
> found)...(no debugging symbols found)...(no debugging symbols
> found)...(no debugging symbols found)...(no debugging symbols
> found)...(no debugging symbols found)...(no debugging symbols
> found)...(no debugging symbols found)...(no debugging symbols
> found)...(no debugging symbols found)...(no debugging symbols
> found)...(no debugging symbols found)...(no debugging symbols
> found)...(no debugging symbols found)...(no debugging symbols
> found)...(no debugging symbols found)...(no debugging symbols
> found)...(no debugging symbols found)...(no debugging symbols
> found)...(no debugging symbols found)...(no debugging symbols
> found)...(no debugging symbols found)...(no debugging symbols
> found)...(no debugging symbols found)...(no debugging symbols
> found)...(no debugging symbols found)...(no debugging symbols
> found)...(no debugging symbols found)...(no debugging symbols
> found)...(no debugging symbols found)...(no debugging symbols
> found)...(no debugging symbols found)...(no debugging symbols
> found)...(no debugging symbols found)...(no debugging symbols
> found)...(no debugging symbols found)...(no debugging symbols
> found)...(no debugging symbols found)...(no debugging symbols
> found)...(no debugging symbols found)...[Switching to LWP 100098]
> 0x283fe39f in wait4 () from /lib/libc.so.5
> #0  0x283fe39f in wait4 () from /lib/libc.so.5
> #1  0x283ee2e1 in waitpid () from /lib/libc.so.5
> #2  0x2838b0ea in waitpid () from /usr/lib/libpthread.so.1
> #3  0x285beb64 in libgnomeui_module_info_get ()
>     from /usr/X11R6/lib/libgnomeui-2.so.1000
> #4  0x28394c79 in sigaction () from /usr/lib/libpthread.so.1
> #5  0xbfbfff94 in ?? ()
> #6  0x0000000b in ?? ()
> #7  0xbfbfe520 in ?? ()
> #8  0xbfbfe260 in ?? ()
> #9  0x00000000 in ?? ()
> #10 0x28394370 in sigaction () from /usr/lib/libpthread.so.1
> #11 0x28670d03 in g_io_add_watch_full ()
>     from /usr/local/lib/libglib-2.0.so.600
> #12 0x28670dd2 in g_io_add_watch () from
> /usr/local/lib/libglib-2.0.so.600
> #13 0x0804e5ce in power_management_getinfo ()
> #14 0x0804c437 in prop_cb ()
> #15 0x2867eb36 in g_main_context_wakeup ()
>     from /usr/local/lib/libglib-2.0.so.600
> #16 0x2867c137 in g_main_context_dispatch ()
>     from /usr/local/lib/libglib-2.0.so.600
> #17 0x2867dafd in g_main_context_acquire ()
>     from /usr/local/lib/libglib-2.0.so.600
> #18 0x2867de3a in g_main_loop_run () from
> /usr/local/lib/libglib-2.0.so.600
> #19 0x28c74280 in bonobo_main () from /usr/local/lib/libbonobo-2.so.0
> #20 0x28c72406 in bonobo_generic_factory_main_timeout ()
>     from /usr/local/lib/libbonobo-2.so.0
> #21 0x28c72494 in bonobo_generic_factory_main ()
>     from /usr/local/lib/libbonobo-2.so.0
> #22 0x2836a100 in panel_applet_callback_data_free ()
>     from /usr/X11R6/lib/libpanel-applet-2.so.1
>=20
>=20
--=20
Joe Marcus Clarke
FreeBSD GNOME Team      ::      gnome@FreeBSD.org
FreeNode / #freebsd-gnome
http://www.FreeBSD.org/gnome

--=-YvQjmebgO/Yws8vIlPNv
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (FreeBSD)

iD8DBQBCxFH/b2iPiv4Uz4cRAqsVAJ4zlxRsAc6tW2UAAyApfxi6qi5mrgCdGbIo
Qx6bek30sJPSFwYmMDXna6U=
=esmQ
-----END PGP SIGNATURE-----

--=-YvQjmebgO/Yws8vIlPNv--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1120162303.36495.6.camel>