Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • vala vala
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 769
    • Issues 769
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 75
    • Merge requests 75
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • valavala
  • Issues
  • #365
Closed
Open
Issue created Mar 14, 2013 by Bugzilla@bugzilla-migration💬Reporter

Vala generates invalid cleanup code for arrays of GLib.Value

Submitted by James Henstridge @jamesh

Link to original bug (#695821)

Description

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.

Version: 0.18.x

Edited Jul 27, 2020 by Rico Tzschichholz
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking