[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #25612] NSMatrix Segmentation Fault when clicking a cell
From: |
Doug Simons |
Subject: |
[bug #25612] NSMatrix Segmentation Fault when clicking a cell |
Date: |
Tue, 17 Feb 2009 19:18:18 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_4_11; en) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1 |
URL:
<http://savannah.gnu.org/bugs/?25612>
Summary: NSMatrix Segmentation Fault when clicking a cell
Project: GNUstep
Submitted by: theeggcamefirst
Submitted on: Tue 17 Feb 2009 07:18:17 PM GMT
Category: Gui/AppKit
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
I'm consistently getting a Segmentation fault when I click a field in a
matrix. Here's the backtrace:
#0 0xb7cef6ee in -[NSMatrix _selectCell:atRow:column:] (self=0x92d88c8,
_cmd=0xb7ec6b60,
aCell=0x92e17d8, row=0, column=0) at NSMatrix.m:1190
#1 0xb7cf3d09 in -[NSMatrix mouseDown:] (self=0x92d88c8, _cmd=0xb7f184d0,
theEvent=0x84f8a68)
at NSMatrix.m:2518
#2 0xb7dc8533 in -[NSWindow sendEvent:] (self=0x92f3728, _cmd=0xb7e7e400,
theEvent=0x84f8a68)
at NSWindow.m:3586
#3 0xb7c3278e in -[NSApplication sendEvent:] (self=0x842e428,
_cmd=0xb7e7e340, theEvent=0x84f8a68)
at NSApplication.m:1951
#4 0xb7c3128a in -[NSApplication run] (self=0x842e428, _cmd=0xb7e73980) at
NSApplication.m:1455
#5 0xb7c12ec1 in NSApplicationMain (argc=1, argv=0xbfd5ae04) at
Functions.m:74
#6 0x0804fd32 in main (argc=1474660693, argv=0xec835356) at main.m:13
Line 1190 in NSMatrix.m looks like this:
_selectedCells[_selectedRow][_selectedColumn] = NO;
Since both _selectedRow and _selectedColumn have a value of -1, I'm guessing
this is the cause of the crash. ;-)
I'm not sure what the correct change to the logic should be, but if I'm not
mistaken, it's pretty normal to have -1 for selected values when nothing is
selected. This interface was freshly loaded from a nib file with nothing
selected. Let me know if you need any more information. I'm running the latest
from svn (rev 27904).
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?25612>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #25612] NSMatrix Segmentation Fault when clicking a cell,
Doug Simons <=