Check failed: page_allocator->DiscardSystemPages( reinterpret_cast<void*>(memory_area.begin()), memory_area.size()). #43448
Replies: 9 comments 1 reply
-
Can you run strace on your program? I suspect there's a munmap/mprotect/madvise system call failing and I'd like to know with what error. |
Beta Was this translation helpful? Give feedback.
-
I'll run it right away. |
Beta Was this translation helpful? Give feedback.
-
` Fatal error in , line 0Check failed: page_allocator->DiscardSystemPages( reinterpret_cast<void*>(memory_area.begin()), memory_area.size()).#FailureMessage Object: 0xb4afb600 |
Beta Was this translation helpful? Give feedback.
-
Can you run |
Beta Was this translation helpful? Give feedback.
-
Just a side notice, while running it with strace the error didn't occur that fast. |
Beta Was this translation helpful? Give feedback.
-
Seems to be not crashing while using strace. |
Beta Was this translation helpful? Give feedback.
-
YAS! Had to took the filesystem writing off. The amount of logs pushing to the flash in our embedded device slightly caused a bottleneck, but I was able to get it to trigger when printing to console. |
Beta Was this translation helpful? Give feedback.
-
Hmm, socket read turned into socket write. |
Beta Was this translation helpful? Give feedback.
-
Looks like your kernel is broken:
edit: converted to a discussion because it's not a node bug. |
Beta Was this translation helpful? Give feedback.
-
Version
v18.3.0
Platform
Linux exe4054-5181 5.4.78-rt44-exe1 #1 SMP Fri May 6 12:49:24 EEST 2022 armv7l GNU/Linux
Subsystem
Own buildroot based kernel
What steps will reproduce the bug?
Small app to read socket data. Data is coming quite fast in 24byte chunks.
`var net = require('node:net');
var client = new net.Socket();
client.connect(4028, '127.0.0.1', function() {
console.log('Connected');
//client.write('Hello, server! Love, Client.');
});
client.on('data', function(data) {
console.log(data);
//client.destroy(); // kill client after server's response
});
client.on('close', function() {
console.log('Connection closed');
});`
How often does it reproduce? Is there a required condition?
Issue occurs after start to listen socket. Few seconds go by and then the app crashes.
What is the expected behavior?
Everything works fine with node-v16.15.0-linux-armv7l
What do you see instead?
<Buffer 18 00 15 00 14 00 00 04 6c 00 64 00 48 2d ff 9b 18 0c 00 00 05 d2 2f 00>
<Buffer 18 00 15 00 14 00 00 04 66 00 64 00 72 2d ff 9b 18 0c 00 00 06 d2 2f 00>
<Buffer 18 00 15 00 14 00 00 04 6b 00 64 00 87 2d ff 9b 18 0c 00 00 06 d2 2f 00 18 00 15 00 14 00 00 04 6a 00 64 00 87 2d ff 9b 18 0c 00 00 06 d2 2f 00>
<Buffer 18 00 15 00 14 00 00 04 69 00 64 00 9c 2d ff 9b 18 0c 00 00 07 d2 2f 00 18 00 15 00 14 00 00 04 68 00 64 00 9c 2d ff 9b 18 0c 00 00 07 d2 2f 00>
<Buffer 18 00 15 00 14 00 00 04 6c 00 64 00 a7 2d ff 9b 18 0c 00 00 07 d2 2f 00>
<Buffer 18 00 15 00 14 00 00 04 66 00 64 00 d1 2d ff 9b 18 0c 00 00 08 d2 2f 00>
<Buffer 18 00 15 00 14 00 00 04 6b 00 64 00 e5 2d ff 9b 18 0c 00 00 08 d2 2f 00 18 00 15 00 14 00 00 04 6a 00 64 00 e6 2d ff 9b 18 0c 00 00 08 d2 2f 00>
<Buffer 18 00 15 00 14 00 00 04 69 00 64 00 05 2e ff 9b 18 0c 00 00 09 d2 2f 00 18 00 15 00 14 00 00 04 68 00 64 00 05 2e ff 9b 18 0c 00 00 09 d2 2f 00>
<Buffer 18 00 15 00 14 00 00 04 6c 00 64 00 0f 2e ff 9b 18 0c 00 00 09 d2 2f 00>
<Buffer 18 00 15 00 14 00 00 04 66 00 64 00 39 2e ff 9b 18 0c 00 00 0a d2 2f 00>
<Buffer 18 00 15 00 14 00 00 04 6b 00 64 00 4e 2e ff 9b 18 0c 00 00 0a d2 2f 00 18 00 15 00 14 00 00 04 6a 00 64 00 4e 2e ff 9b 18 0c 00 00 0a d2 2f 00>
<Buffer 18 00 15 00 14 00 00 04 69 00 64 00 6d 2e ff 9b 18 0c 00 00 0b d2 2f 00 18 00 15 00 14 00 00 04 68 00 64 00 6d 2e ff 9b 18 0c 00 00 0b d2 2f 00>
<Buffer 18 00 15 00 14 00 00 04 6c 00 64 00 78 2e ff 9b 18 0c 00 00 0b d2 2f 00>
<Buffer 18 00 15 00 14 00 00 04 66 00 64 00 97 2e ff 9b 18 0c 00 00 0c d2 2f 00>
<Buffer 18 00 15 00 14 00 00 04 6b 00 64 00 ac 2e ff 9b 18 0c 00 00 0c d2 2f 00 18 00 15 00 14 00 00 04 6a 00 64 00 ac 2e ff 9b 18 0c 00 00 0c d2 2f 00>
<Buffer 18 00 15 00 14 00 00 04 69 00 64 00 cb 2e ff 9b 18 0c 00 00 0d d2 2f 00 18 00 15 00 14 00 00 04 68 00 64 00 cb 2e ff 9b 18 0c 00 00 0d d2 2f 00>
<Buffer 18 00 15 00 14 00 00 04 6c 00 64 00 d6 2e ff 9b 18 0c 00 00 0d d2 2f 00>
<Buffer 18 00 15 00 14 00 00 04 66 00 64 00 00 2f ff 9b 18 0c 00 00 0e d2 2f 00>
Fatal error in , line 0
Check failed: page_allocator->DiscardSystemPages( reinterpret_cast<void*>(memory_area.begin()), memory_area.size()).
#FailureMessage Object: 0xb49fb600
Bus error
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions