Open Bojun-Seo opened 1 year ago
Hmm.. I don't really understand what the problem is. Is this error shown only in 64-bit kernel and 32-bit user environment?
The problem is that it prints only the report I attached(no backtraces are printed) I only found this issue happened on 64-bit arm chip with 64-bit kernel and 32-bit user environment. I will check whether I could share more information about test environment.
I found the way to reproduce this issue.
$ cat /etc/issue.net
Raspbian GNU/Linux 11
$ uname -r
6.1.21-v8+
./heaptrace samples/sample_leak.out
Will generate following result
$ ./heaptrace samples/sample_leak.out
[heaptrace] initialized for /proc/4862/maps (sample_leak.out)
[heaptrace] finalized for /proc/4862/maps (sample_leak.out)
=================================================================
[heaptrace] dump allocation sorted by 'size' for /proc/4862/maps (sample_leak.out)
=== backtrace #1 === [count/peak: 1/2] [size/peak: 4 bytes/1.0 MB] [age: 884.292 us]
[heaptrace] heap traced num of backtrace : 1 [heaptrace] heap traced allocation size : 4 bytes [heaptrace] allocator info (virtual) : 135.168 KB [heaptrace] allocator info (resident) : 22.712 KB [heaptrace] statm info (VSS/RSS/shared) : 4.370 MB / 2.801 MB / 2.646 MB
Hi, I don't have a raspberry-pi board so can this be reproduced in x86_64 machine in some ways?
I'll let you know, if I found a way to reproduce this issue in x86_64 machine.
That would be helpful. Please let me know how to reproduce it in host machine.
In some cases,(64-bits for kernel, and 32-bits for user environment)
Report doesn't print backtraces.
I checked the reason and found that
backtrace
function, https://man7.org/linux/man-pages/man3/backtrace.3.html which is called insiderecord_backtrace
function, returns zero.