Issue #1327 fixed (segfault in pymod finalization code)

This commit is contained in:
Matthias Koefferlein
2023-04-07 10:59:30 +02:00
parent c6bfb03a18
commit 63a4fe8d77
3 changed files with 40 additions and 6 deletions
Vendored Executable
+28
View File
@@ -0,0 +1,28 @@
# KLayout Layout Viewer
# Copyright (C) 2006-2023 Matthias Koefferlein
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
import klayout.db as kdb
ly = kdb.Layout()
cell = ly.create_cell("TOP")
parents = cell.each_parent_cell()
# makes the unit test happy
print("OK")
# was crashing now in finalization code ..