Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Mar 2021 11:15:41 +0100
From:      Guido Falsi <mad@madpilot.net>
To:        xfce@freebsd.org, gnome@freebsd.org
Subject:   libgtop and network load (xfce4-systemlooad-plugin r569103 related)
Message-ID:  <bc0151c1-1553-551c-a3b9-19f8622a9d1b@madpilot.net>

next in thread | raw e-mail | index | archive | help
Hi,

The xfce4-systemlooad-plugin panel plugin added libgtop support to get 
network load information.

I tried enabling it by default adding an option to the port. It compiles 
fine, but then fails to run.

a backtrace from the core dump I got shows it failing here:

#5  0x0000000802aad581 in glibtop_get_netload_l
     (server=0x802ab9bb0 <_glibtop_global_server>, buf=0x7fffffffd4c0, 
interface=0x803e00cf8 "re0") at lib.c:876

But at that code line there is an unconditional error.

What I gather is on FreeBSD it expects some server process, running 
setgit kmem to actually read the data and report it back. This is not 
happening though and it falls back to unconditional error.

I have noticed a libgtop_server2 binary but manually launching it is not 
enough.

Am I missing something? Is some configuration required? Is this 
documented somewhere?

At present I committed the port with libgtop support disabled 
unconditionally, since it only makes the plugin crash on start. I'd like 
to understand things better before enabling libgtop support in this 
plugin in the port tree.

Thanks in advance!

-- 
Guido Falsi <mad@madpilot.net>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bc0151c1-1553-551c-a3b9-19f8622a9d1b>