Page MenuHomeeNTiDi

adg_table_cell_new_full() crash on duplicate names
Open, Needs TriagePublic

Description

While using LGI based bindings (Lua), creating cells with duplicate names will trigger a crash during destruction. Test case follows:

local lgi =     require 'lgi'
local Adg = lgi.require 'Adg'

local t = Adg.Table()
local r = Adg.TableRow(t)

Adg.TableCell.new_full(r, 1, 'duplicate name')
Adg.TableCell.new_full(r, 1, 'duplicate name')

This will give a Segmentation fault (core dumped) at the end of its execution (or, better, it is what I get on a couple of systems).

Event Timeline

ntd created this task.Sep 21 2017, 9:43 AM
ntd added a comment.Sep 21 2017, 9:48 AM

In a more complex application I get a similar crash without duplicated names. When reducing it to a MCVE I'm unable to replicate it though.

ntd shifted this object from the S1 Public space to the Restricted Space space.Tue, Oct 2, 7:57 AM
ntd shifted this object from the Restricted Space space to the S1 Public space.Wed, Oct 3, 10:06 AM
ntd changed the visibility from "All Users" to "Public (No Login Required)".