Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
vala
vala
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 702
    • Issues 702
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 39
    • Merge Requests 39
  • Operations
    • Operations
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • External Wiki
    • External Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • GNOME
  • valavala
  • Issues
  • #891

Closed
Open
Opened Jan 07, 2020 by Elnee@Elnee

Interface property initialization in base class constructor leads to SIGSEGV

General description

Recently I was trying to share one interface with two classes (parent and child). When I did it I got segmentation fault after launch my project. I wrote minimal example to reproduce error. I don't have a good knowledge of Vala so maybe I don't understand something but for me it's very strange behavior.

Attached source code of minimal example: main.vala

Additional explanations

Exactly after I add property initialization in constructor of base class I got segfault (images clickable):

Example with commented constructor working as expected:

But if I remove iInterface from ClassB declaration it also compiles without errors and with strange behavior (executing method from ClassA but should execute from ClassB):

Edited Jan 07, 2020 by Elnee
To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
0.48
Milestone
0.48
Assign milestone
Time tracking
None
Due date
None
Reference: GNOME/vala#891