HEADS UP: Realtime update support added to battstat

Joe Marcus Clarke marcus at FreeBSD.org
Thu Jun 30 20:12:00 GMT 2005


On Thu, 2005-06-30 at 22:26 +0300, Vladimir Chukharev wrote:
> On Thu, 30 Jun 2005 18:34:57 +0300, Vladimir Chukharev <chu at kemia.me.tut.fi> wrote:
> 
> > 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 devd:
> >> 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.
> 
> In two hours or so I got a lot of messages like
> 
> Jun 30 20:52:01 chu kernel: kern.maxfiles limit exceeded by uid 540, please see tuning(7).
> Jun 30 20:52:32 chu last message repeated 31 times
> 
> 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

> 
> -- 
> V.Chukharev
> 
> X-Mailer: bug-buddy 2.10.0
> Subject: battery monitor
> 
> 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:
> 
> 
> Steps to reproduce the crash:
> 1.
> 2.
> 3.
> 
> Expected Results:
> 
> 
> How often does this happen?
> 
> 
> Additional Information:
> 
> 
> 
> Debugging Information:
> 
> Backtrace was generated from '/usr/X11R6/libexec/battstat-applet-2'
> 
> (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
> 
> 
-- 
Joe Marcus Clarke
FreeBSD GNOME Team      ::      gnome at FreeBSD.org
FreeNode / #freebsd-gnome
http://www.FreeBSD.org/gnome
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-gnome/attachments/20050630/1e8231c2/attachment.bin


More information about the freebsd-gnome mailing list