Ticket #1196 (new bug)

Opened 23 months ago

Data table segfault

Reported by: lanz Owned by: janez
Milestone: Component: library
Severity: major Keywords:
Cc: Blocking:
Blocked By:

Description

While the following code is not OK, it still should not result in a segmentation fault.

import Orange

data = Orange.data.Table('iris')
dom = Orange.data.Domain(data.domain.features, False)
data2 = Orange.data.Table(dom, data)
cls2 = Orange.feature.Discrete(values=['0', '1'], name='class')
cls2.get_value_from = lambda ins, rt: 0
dom.class_var = cls2
Orange.data.Table(dom, data2)
Note: See TracTickets for help on using tickets.