#989035 nyx: leaks memory

#989035#5
Date:
2021-05-24 08:03:25 UTC
From:
To:
nyx leaks memory, 262144 (== 64*4096) bytes every 5 seconds in my case.
Under Buster it didn't.

Running

  strace -e trace=mmap -v -ttt -f -p $(pgrep nyx)

shows calls to

  99483: mmap(NULL, 262144, ...)

every 5 seconds.  Running

  dd if=/proc/$(pgrep nyx)/task/99483/mem bs=4096 count=64 skip=$((0x7f37bfe80000/4096))|xxd

tells me it's the information from the Connection window.  Running
(which needs 6cd89c4[1] applied first):

  nyx --debug /tmp/nyx.debug

reveals that nyx queries the circuit information ("GETINFO
circuit-status") into a variable LAST_RETRIEVED_CIRCUITS every 5
seconds in
/usr/lib/python3/dist-packages/nyx/panel/connection.py:_update

I suspect something prevents the allocated data from being GCed.

N.B.: I also tested with onioncircuits to see if the bug might be in
stem, but it showed no sign of leaking.

#989035#10
Date:
2026-10-21 12:45:18 UTC
From:
To:
Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***

#989035#15
Date:
2026-10-21 16:37:07 UTC
From:
To:
as <owner@bugs.debian.org> sayd

for further information on this problem, please send it to this address

As IT and linux OS fan and user It's a big pleasure for me to make contacts together with and to cooperate with each other. Sending three photos of my screen.

#989035#20
Date:
2026-10-21 16:39:32 UTC
From:
To:
as <owner@bugs.debian.org> sayd

for further information on this problem, please send it to this address

As IT and linux OS fan and user It's a big pleasure for me to make contacts together with and to cooperate with each other. Sending three photos of my screen.