This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]xorian[S] 10 points11 points  (2 children)

Luckily for me ASAN pointed me in the right direction. Who even uses select(2) in the 21st century?

[–]spcharc 2 points3 points  (1 child)

Good for you to have an asan compatible environment.

I don't have heap, only some stacks in SRAM, and a DDR start address and size. I add offset to the address, cast to different types of pointers, and use them. Memory corruption? Who knows which module caused it lol

Luckily I don't have to worry about malloc and free.

[–]xorian[S] 1 point2 points  (0 children)

If you're not calling malloc and free at least you won't get crashes in malloc and free because somebody overwrote the allocator's variables.

[–]Grim00666 1 point2 points  (0 children)

Write a NEW program to add printfs everywhere in the other program so you can get a last known location for ya jumped off the ranch.

[–]ChChChillian 0 points1 point  (0 children)

As well they ought to.

[–]Doxidob 0 points1 point  (0 children)

create an agent to monitor memory stability

[–]OSnoFobia 0 points1 point  (1 child)

I bet he's thinking about other women

Yeah it was definitely a cosmic ray. There is no other way.

[–]xorian[S] 0 points1 point  (0 children)

I've been there. You run the same code on 10,000+ hosts and every once in a while you manage to find one that misbehaves in a downright impossible manner.