Page MenuHomeeNTiDi

adg_table_cell_new_full() crash on duplicate names
Closed, ResolvedPublic

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).

Revisions and Commits

Event Timeline

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.Oct 2 2018, 7:57 AM
ntd shifted this object from the Restricted Space space to the S1 Public space.Oct 3 2018, 10:06 AM
ntd changed the visibility from "All Users" to "Public (No Login Required)".
ntd claimed this task.

The issue seems to be gone.

The crash is still present, triggered when leaving the Lua interpreter.