Click here to Skip to main content
16,004,647 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Oeufs bénédictine Pin
RickZeeland2-Sep-24 1:30
mveRickZeeland2-Sep-24 1:30 
GeneralWordle 1,169 Pin
OriginalGriff30-Aug-24 19:44
mveOriginalGriff30-Aug-24 19:44 
GeneralRe: Wordle 1,169 - 3 4 me Pin
pkfox30-Aug-24 20:34
professionalpkfox30-Aug-24 20:34 
GeneralRe: Wordle 1,169 (4/6) Pin
Jeremy Falcon31-Aug-24 5:19
professionalJeremy Falcon31-Aug-24 5:19 
GeneralRe: Wordle 1,169 Pin
Cp-Coder31-Aug-24 6:09
Cp-Coder31-Aug-24 6:09 
GeneralRe: Wordle 1,169 3/6 Pin
jmaida31-Aug-24 12:21
jmaida31-Aug-24 12:21 
GeneralRe: Wordle 1,169 Pin
PJ Arends31-Aug-24 13:27
professionalPJ Arends31-Aug-24 13:27 
GeneralEver pushed a bubble around a waterbed? Pin
honey the codewitch30-Aug-24 6:58
mvahoney the codewitch30-Aug-24 6:58 
Some of my code is causing heap corruption.

I don't know what code, but I suspect it's my SVG code. The issue is that it works sometimes. But if I look at it funny it starts crashing, and my stack trace keeps pointing me to different places depending on the seemingly unrelated changes I make in main(). Sometimes it points me to some font rendering code. Sometimes it points me to a seemingly innocuous assign to a local variable in my SVG parser code. It's maddening.

It doesn't reproduce on the PC, at least 64-bit. I haven't tried 32 because trying to get 32-bit executables built on a windows machine these days I think requires a VM?

I tried running Deleaker against it, not sure if it would pick up heap corruption - it either doesn't, or it isn't coming up on the PC.

Unfortunately, much of this code is derived in many places from work that wasn't mine to begin with, and so instrumenting it to detect heap corruption if I have to wrap all malloc/reallocs etc will cause me real pain.

I don't know what to do. Maybe this would rear its head if I had kilobytes instead of gigabytes of RAM? but i wouldn't even know how to set that up on a PC without altering my code to use a custom constrained heap.

I'm so frustrated I've put it down, but it's gnawing at me, because it's definitely blocking any attempt I make at releasing.

I wish these little IoT devices had good memory protection. It just now occurred to me to try this on an ARM and hope i can reproduce it. Maybe I'll get a better stack trace. Who knows? Confused | :confused:
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix

GeneralRe: Ever pushed a bubble around a waterbed? Pin
k505430-Aug-24 8:05
mvek505430-Aug-24 8:05 
GeneralRe: Ever pushed a bubble around a waterbed? Pin
honey the codewitch30-Aug-24 9:25
mvahoney the codewitch30-Aug-24 9:25 
GeneralRe: Ever pushed a bubble around a waterbed? Pin
k505430-Aug-24 9:30
mvek505430-Aug-24 9:30 
GeneralRe: Ever pushed a bubble around a waterbed? Pin
honey the codewitch30-Aug-24 9:31
mvahoney the codewitch30-Aug-24 9:31 
GeneralRe: Ever pushed a bubble around a waterbed? Pin
k505430-Aug-24 9:40
mvek505430-Aug-24 9:40 
GeneralRe: Ever pushed a bubble around a waterbed? Pin
honey the codewitch30-Aug-24 9:42
mvahoney the codewitch30-Aug-24 9:42 
GeneralRe: Ever pushed a bubble around a waterbed? Pin
k505430-Aug-24 10:01
mvek505430-Aug-24 10:01 
GeneralRe: Ever pushed a bubble around a waterbed? Pin
honey the codewitch30-Aug-24 10:26
mvahoney the codewitch30-Aug-24 10:26 
GeneralRe: Ever pushed a bubble around a waterbed? Pin
Gary R. Wheeler31-Aug-24 0:27
Gary R. Wheeler31-Aug-24 0:27 
GeneralRe: Ever pushed a bubble around a waterbed? Pin
RickZeeland31-Aug-24 2:37
mveRickZeeland31-Aug-24 2:37 
GeneralRe: Ever pushed a bubble around a waterbed? Pin
honey the codewitch31-Aug-24 3:15
mvahoney the codewitch31-Aug-24 3:15 
GeneralRe: Ever pushed a bubble around a waterbed? Pin
Gary R. Wheeler31-Aug-24 4:48
Gary R. Wheeler31-Aug-24 4:48 
GeneralRe: Ever pushed a bubble around a waterbed? Pin
honey the codewitch31-Aug-24 4:49
mvahoney the codewitch31-Aug-24 4:49 
GeneralRe: Ever pushed a bubble around a waterbed? Pin
Alister Morton1-Sep-24 22:26
Alister Morton1-Sep-24 22:26 
GeneralRe: Ever pushed a bubble around a waterbed? Pin
honey the codewitch2-Sep-24 1:39
mvahoney the codewitch2-Sep-24 1:39 
GeneralRe: Ever pushed a bubble around a waterbed? Pin
Shao Voon Wong31-Aug-24 3:08
mvaShao Voon Wong31-Aug-24 3:08 
GeneralRe: Ever pushed a bubble around a waterbed? Pin
Daniel Pfeffer31-Aug-24 7:24
professionalDaniel Pfeffer31-Aug-24 7:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.