You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my demo code, Receive a user input parameter time microsecond, create an infinite loop, create a thread inside the loop, print the current time in the thread, and sleep the user input parameter time.
No matter how long I set the sleep interval, such as 200 microseconds, 1 second, 10 seconds, etc., the RssAnno physical memory of the program has a regular memory leak.
For the first time, 56 KB of physical memory is added to the AsanThread::Create application. Then, the memory is released in AsanThread::Destroy. An additional 60 KB memory is applied for the second time, but AsanThread::Destroy releases only 56 KB memory each time. As a result, 4 KB physical memory is leaked each time a thread is created twice.
This problem occurs in libasan.so of gcc10.3 and gcc12.1 of arm64 version.
Do you have a description and fix?
The text was updated successfully, but these errors were encountered:
In my demo code, Receive a user input parameter time microsecond, create an infinite loop, create a thread inside the loop, print the current time in the thread, and sleep the user input parameter time.
No matter how long I set the sleep interval, such as 200 microseconds, 1 second, 10 seconds, etc., the RssAnno physical memory of the program has a regular memory leak.
![image](https://private-user-images.githubusercontent.com/32587993/336276480-7f6f4231-ee9b-4a25-9f0c-0f6f0b7d5cfb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ5NjI1MDgsIm5iZiI6MTcyNDk2MjIwOCwicGF0aCI6Ii8zMjU4Nzk5My8zMzYyNzY0ODAtN2Y2ZjQyMzEtZWU5Yi00YTI1LTlmMGMtMGY2ZjBiN2Q1Y2ZiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI5VDIwMTAwOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZiNjk2ZjQ0MjFhYmVlOTVlN2I1Y2NmOGY2MGIwODgxYzkxNGEwYTA4MTJkODA1NzkxMTUzZDAxZTllYzI3ZDQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.rmUjGmmAtxtIldBXbOmkneFl617t9SMI13uutWc5pBs)
![image](https://private-user-images.githubusercontent.com/32587993/336276550-66a7be52-fdd9-4df1-9fa0-4bf8e9d67831.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ5NjI1MDgsIm5iZiI6MTcyNDk2MjIwOCwicGF0aCI6Ii8zMjU4Nzk5My8zMzYyNzY1NTAtNjZhN2JlNTItZmRkOS00ZGYxLTlmYTAtNGJmOGU5ZDY3ODMxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI5VDIwMTAwOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWJjMzc4YzA4ZDhmZjkyNWE2ZDQ3YjVmOGMxZDM2ZmZjYzU3NTMzYzc1ZTAxYTRiZmUwMTY2ZmE0YmI3MDI1NTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Lv12GnzZfG8T2rMtqfwUxOZiTRgmeDgPQYF4ysEy6F0)
For the first time, 56 KB of physical memory is added to the AsanThread::Create application. Then, the memory is released in AsanThread::Destroy. An additional 60 KB memory is applied for the second time, but AsanThread::Destroy releases only 56 KB memory each time. As a result, 4 KB physical memory is leaked each time a thread is created twice.
This problem occurs in libasan.so of gcc10.3 and gcc12.1 of arm64 version.
Do you have a description and fix?
The text was updated successfully, but these errors were encountered: