After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 741782 - Random crash with alive extensions
Random crash with alive extensions
Status: RESOLVED OBSOLETE
Product: libpeas
Classification: Platform
Component: general
git master
Other All
: Normal normal
: ---
Assigned To: libpeas-maint
libpeas-maint
Depends on:
Blocks:
 
 
Reported: 2014-12-19 19:45 UTC by Garrett Regier
Modified: 2018-05-22 12:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Avoid freeing plugins if an extension is still alive (3.08 KB, patch)
2015-09-22 05:51 UTC, Garrett Regier
none Details | Review
Add helper for an extension test without a fixture (2.60 KB, patch)
2015-11-21 03:54 UTC, Garrett Regier
none Details | Review
Avoid freeing plugins if an extension is still alive (9.60 KB, patch)
2015-11-21 03:55 UTC, Garrett Regier
none Details | Review

Description Garrett Regier 2014-12-19 19:45:49 UTC
If PeasEngine is freed with an alive extension than the PeasPluginLoader backing that object can be freed and cause a random crash when the extension is used.

This only affects Lua plugins with a PeasEngine using non-global plugin loaders.
Comment 1 Garrett Regier 2015-09-22 05:51:37 UTC
Created attachment 311826 [details] [review]
Avoid freeing plugins if an extension is still alive

This still needs some tests.
Comment 2 Garrett Regier 2015-11-21 03:54:42 UTC
Created attachment 316004 [details] [review]
Add helper for an extension test without a fixture
Comment 3 Garrett Regier 2015-11-21 03:55:50 UTC
Created attachment 316005 [details] [review]
Avoid freeing plugins if an extension is still alive

Otherwise, it could cause serious issues.

---

This includes a full set of tests.
Comment 4 GNOME Infrastructure Team 2018-05-22 12:13:49 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/libpeas/issues/13.