Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[BUG] Linux chip-tool : Memory may leak when try to control device after subscription #26028

@MengdiHe

Description

@MengdiHe

Reproduction steps

step 1.start linux chip-tool in interactive mode
./chip-tool interactive start
step 2.use chip-lighting-app as TH, and commission it using linux chip-tool
pairing onnetwork 10 20202021
step 3.send on/off command to chip-lighting-app
on-off on 10 1
step 4.Repete step 4 maybe 10 or 20 times. Compare memory difference
ps aux | grep chip-tool
Then you can see that the VMRSS will grow instantly, or you can use cat /proc/[pid]/status, you will see that the vmdata keep growing after every command

Bug prevalence

Whenever I do this

GitHub hash of the SDK that was being used

e2fa6ba

Platform

other

Platform Version(s)

ubuntu 22.04

Anything else?

Actually, I tried it on Nov 2022 sdk version, which has the same result of the version above.
I don't know if I missed some key points.
We are now developing the controller program based on the chip-tool program. It will be appreciated if you can answer this issue!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions