gtkd-developers / GtkD

GtkD is a D binding and OO wrapper of GTK+ originally created by Antonio Monteiro
http://gtkd.org
Other
322 stars 71 forks source link

gio DesktopAppInfo memory corruption #292

Open valpackett opened 4 years ago

valpackett commented 4 years ago

Reading stuff from a DesktopAppInfo seems to corrupt memory somehow. Weird things were happening in my program (and they changed and appeared/disappeared based on various unrelated code changes like reordering fields) like crashing accesses into associative arrays, some windows not appearing, crashes on start, etc. Nothing was found by ASan (when gtkd and app were both built with ASan). Everything is fine when I'm not accessing it, especially keywords…

valpackett commented 4 years ago

hmm, seems like only long term storing the DesktopAppInfos themselves in the class is bad…

MikeWey commented 4 years ago

Might be a GC issue if it occurs only with storing long term.