FLTK logo

Re: [fltk.coredev] Double free of groups

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.coredev  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Double free of groups Albrecht Schlosser Mar 16, 2023  
 
On 3/16/23 20:51 Albrecht Schlosser wrote:
On 3/16/23 20:23 Rob McDonald wrote:
It took a while for me to figure out what he was doing -- it feels much more complex than a singly linked list should be.  It took even longer to convince myself that the fix is right.

Yes, I also had a hard time to find this out. I added a lot of debug statements in destructors to see when the first occurrence of the double free happened exactly. ASAN was a big help, but finally you need to understand what he was doing. I was surprised that he didn't include pointers in the objects but used the linked list

[hit send too early, should continue with]


... as separate objects. But I didn't pursue this further, I just wanted to fix the bug, be it in Cartesian or FLTK.

I'm glad that this fixes the issue for you, thanks for confirmation.

--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/838e1e21-9395-0c78-e9d1-ff9aa508deb2%40online.de.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.