[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Instance variables overwritten by other assignments
From: |
David Chisnall |
Subject: |
Re: Instance variables overwritten by other assignments |
Date: |
Wed, 25 Dec 2019 09:19:38 +0000 |
Hi,
This sounds like the issue with the Linux run-time linker and the 1.x
non-fragile ABI. This can be fixed by either:
1. Using pretty much any non-Linux OS, or
2. Using the 2.0 ABI and clang 8.0 or later.
David
> On 25 Dec 2019, at 04:02, Patryk Laurent <plaurent@me.com> wrote:
>
> Hi,
>
> At Gorm startup I am seeing a problem where Boolean assignments in
> -initDefaults are somehow overwriting memory for NSTableView.m’s
> _numberOfColumns instance variable. See the output of debug print statements
> below.
>
> Does anyone know why this might be happening — and how to fix it?
>
> This is under clang-6.0 on Aarch64.
>
> Thank you,
> Patryk
>
> GNUstep-build/apps-gorm/Gorm.app$ ./Gorm
> 2019-12-25 03:51:47.959 Gorm[4257:4257] Bad palette selection - -1
> 2019-12-25 03:51:48.002 Gorm[4257:4257] Bad palette selection - -1
> 2019-12-25 03:51:48.267 Gorm[4257:4257] Bad palette selection - -1
> 2019-12-25 03:51:48.314 Gorm[4257:4257] NSTableview.m:2012: _isValidating
> = NO; // _numberOfColumns is 0
> 2019-12-25 03:51:48.315 Gorm[4257:4257] NSTableview.m:2013: _drawsGrid
> = YES; // _numberOfColumns is 0
> 2019-12-25 03:51:48.315 Gorm[4257:4257] NSTableview.m:2014: _rowHeight
> = 16.0; // _numberOfColumns is 0
> 2019-12-25 03:51:48.315 Gorm[4257:4257] NSTableview.m:2015: _intercellSpacing
> = NSMakeSize (5.0, 2.0); // _numberOfColumns is 0
> 2019-12-25 03:51:48.316 Gorm[4257:4257] NSTableview.m:2016;
> ASSIGN(_selectedColumns, [NSMutableIndexSet indexSet]); // _numberOfColumns
> is 0
> 2019-12-25 03:51:48.316 Gorm[4257:4257] NSTableview.m:2018:
> _allowsEmptySelection = YES; // _numberOfColumns is 256
> 2019-12-25 03:51:48.317 Gorm[4257:4257] NSTableview.m:2019:
> _allowsMultipleSelection = NO; // _numberOfColumns is 256
> 2019-12-25 03:51:48.317 Gorm[4257:4257] NSTableview.m:2020:
> _allowsColumnSelection = YES; // _numberOfColumns is 65792
> 2019-12-25 03:51:48.317 Gorm[4257:4257] NSTableview.m:2021:
> _allowsColumnResizing = YES; // _numberOfColumns is 16843008
> 2019-12-25 03:51:48.317 Gorm[4257:4257] NSTableview.m:2022:
> _allowsColumnReordering = YES; // _numberOfColumns is 4311810304
> 2019-12-25 03:51:48.317 Gorm[4257:4257] NSTableview.m:2023: //
> _numberOfColumns is 4311810304
> 2019-12-25 03:51:48.317 Gorm[4257:4257] NSTableview.m:2024; _selectingColumns
> = NO; // _numberOfColumns is 4311810304
> 2019-12-25 03:51:48.317 Gorm[4257:4257] NSTableview.m:2025:
> _verticalMotionDrag = NO; // _numberOfColumns is 4311810304
> 2019-12-25 03:51:48.318 Gorm[4257:4257] NSTableview.m:2026:_editedColumn =
> -1; _numberOfColumns is 4311810304
> 2019-12-25 03:51:48.318 Gorm[4257:4257] NSTableview.m:2027: _editedRow = -1;
> // _numberOfColumns is 4311810304
> 2019-12-25 03:51:48.318 Gorm[4257:4257] NSTableview.m:2028: _clickedRow = -1;
> // _numberOfColumns is 4311810304
> 2019-12-25 03:51:48.318 Gorm[4257:4257] NSTableview.m:2029: _clickedColumn =
> -1; // _numberOfColumns is 4311810304
> 2019-12-25 03:51:48.318 Gorm[4257:4257] NSTableview.m:2030: _selectedColumn =
> -1; // _numberOfColumns is 4311810304
> 2019-12-25 03:51:48.318 Gorm[4257:4257] NSTableview.m:2031: _selectedRow =
> -1; // _numberOfColumns is 4311810304
> 2019-12-25 03:51:48.319 Gorm[4257:4257] NSTableview.m:2032:
> _highlightedTableColumn = nil; // _numberOfColumns is 4311810304
> 2019-12-25 03:51:48.319 Gorm[4257:4257] NSTableview.m:2036:
> ASSIGN(_sortDescriptors, [NSArray array]); // _numberOfColumns is 4311810304
> Segmentation fault
>