juliand[m] has quit [Quit: Idle timeout reached: 172800s]
<gauteh[m]>
Yeah, looks like stack overflow.
cinemaSundays has quit [Quit: Connection closed for inactivity]
Makarov has joined #rust-embedded
zeenix[m] has quit [Quit: Idle timeout reached: 172800s]
<thejpster[m]>
jamesmunns: I think the OOM handler on Linux doesn’t terminate the process that wanted the memory - it terminates a random process weighted by how much memory they’ve allocated. So the odds are good that in fact it’s the program that ate all the memory that gets terminated and not the poor process that just wanted a few more bytes for something.
<thejpster[m]>
I’ve listened to two back to back and I very much enjoyed the telegraph analogy.
Makarov has quit [Ping timeout: 256 seconds]
Makarov has joined #rust-embedded
Makarov has quit [Quit: Client closed]
crabbedhaloablut has quit []
crabbedhaloablut has joined #rust-embedded
<JamesMunns[m]>
<thejpster[m]> "jamesmunns: I think the OOM..." <- TIL!
<Ralph[m]>
<gauteh[m]> "Yeah, looks like stack overflow." <- do you know [flip-link](https://crates.io/crates/flip-link)? it "adds zero-cost stack overflow protection to your embedded programs"
<JamesMunns[m]>
you put a pointer to note in log::NOTE and then continue using a mutable reference to it
Henk[m] has quit [Quit: Idle timeout reached: 172800s]
<gauteh[m]>
yeah 🫣
<gauteh[m]>
I don't think the compiler noticed
<JamesMunns[m]>
I mean, you're asking us about debugging things that "seem impossible"
<JamesMunns[m]>
:/
<gauteh[m]>
fair enough. it did turn out to likely be stack overflow though, i reduced some buffers and queues and it was ok. seems pretty likely that the static A2 was overwritten with those
<gauteh[m]>
I hope I only use the static reference in the panic handler/hardfault, since I have access to it the regular way usually.
<huayra1[m]>
what is the "recommended" way to do c++ bindings? i know of cxxbridge and include macro. btw, is it normal for a file using cxxbridge to take like 15 seconds?
romancardenas[m] has quit [Quit: Idle timeout reached: 172800s]
vollbrecht[m] has quit [Quit: Idle timeout reached: 172800s]
rmsyn[m] has quit [Quit: Idle timeout reached: 172800s]
i509vcb[m] has quit [Quit: Idle timeout reached: 172800s]
therealprof[m] has quit [Quit: Idle timeout reached: 172800s]
RockBoynton[m] has quit [Quit: Idle timeout reached: 172800s]
Makarov46 has joined #rust-embedded
Makarov has quit [Ping timeout: 256 seconds]
omani[m] has quit [Quit: Idle timeout reached: 172800s]
kenny has joined #rust-embedded
xnor has quit [Ping timeout: 248 seconds]
xnor has joined #rust-embedded
Charles[m] has quit [Quit: Idle timeout reached: 172800s]
Makarov46 has quit [Quit: Client closed]
Makarov has joined #rust-embedded
Makarov has quit [Quit: Client closed]
Foxyloxy has quit [Read error: Connection reset by peer]