



Code: Select all
# cat /proc/net/dev | column --table
Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
lo: 44746647 49480 0 0 0 0 0 0 44746647 49480 0 0 0 0 0 0
eth0: 46387519366 31339717 0 4057 0 0 0 677 956076853 10875068 0 0 0 0 0 0
wlan0: 460701 6204 0 11 0 0 0 0 32721394 21612 0 0 0 0 0 0
Code: Select all
# cat /proc/net/dev | column --table
Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
lo: 664060 1927 0 0 0 0 0 0 664060 1927 0 0 0 0 0 0
eth0: 10620507817 8826777 0 0 0 0 0 23238 246419500 1620305 0 1 0 0 0 0
sit0: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
tun0: 878200984 876045 0 0 0 0 0 0 78269932 709323 0 0 0 0 0 0





But to this point, I try to change it in gkrellm (because I want to try). Spoiler: I wont work.garrison wrote:I see very similar issue, noticed after updating to kernel 6.15.10 - in fact, interface is shown first then after update delay it disappears.
Traced it down to gkrellm opening /proc/net/route to read it, then it does rewind() which now fails with ESPIPE
If I replace rewind with fclose so gkrellm reopens that file before next read, it does subsequent reads successfully and interface stays displayed. Same workaround for /proc/net/dev allows gkrellm to see transferred bytes too.
Still not sure which kernel change can cause this or if it is a gkrellm implementation issue.
Code: Select all
free(): double free detected in tcache 2
gkrellm aborted: Net (update_monitor)
Aborted
To apply workaround you need to replace code at lines 822 and 858 and then either remove 'static' from variable declarations for f and f6 or assign them to NULL after fclose(). Similar change to lines reading from /proc/net/devNichtDerHans wrote: I change line 1045 and 1175 ( rewind(f); to fclose(f); ) in https://git.srcbox.net/gkrellm/gkrellm/ ... ps/linux.c.




I confirm this for 6.16.3. I am using Fedora 42 fully updated, just updated the kernel to the "official" 6.16.3-200.fc42.x86_64, and gkrellm (v. 2.4.0.3) does not show any network meters.Gatsby wrote:Nope.
With latest linux kernel 6.16.4 still no network meters in gkrellm (v.2.4.0-r1) shown.
Hi ExecutorElassus,ExecutorElassus wrote:@Gatsby: are you sure about that? I updated my kernel and did nothing else, rebooted, and gkrellm is showing my net meters again. The issue tracker for this issue on gkrellm's github reports the same.
Can you confirm that you see your net meters on an unaffected kernel? That is, one that didn't have the offending commit applied?
Cheers,
EE