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 695821 - Vala generates invalid cleanup code for arrays of GLib.Value
Vala generates invalid cleanup code for arrays of GLib.Value
Status: RESOLVED OBSOLETE
Product: vala
Classification: Core
Component: Code Generator
0.18.x
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2013-03-14 07:40 UTC by James Henstridge
Modified: 2018-05-22 14:43 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description James Henstridge 2013-03-14 07:40:48 UTC
The following Vala program compiled with 0.18.1 will crash:

    public static int main (string[] args) {
        GLib.Value value_array[1];

        value_array[0].init(typeof(int));
        return 0;
    }

The array is represented as an array of GValue structs in C, but the _vala_array_destroy() call performed to release the array at the end of the function call treats it as an array of pointers to GValue structs.

I haven't tried the 0.19.0 release, but didn't see anything in the change log that sounded relevant.
Comment 1 GNOME Infrastructure Team 2018-05-22 14:43:56 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/vala/issues/365.