[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: debug question
From: |
Daniel Boyd |
Subject: |
RE: debug question |
Date: |
Wed, 16 Sep 2020 09:40:09 -0500 |
Nevermind -- I was able to get the full stacktrace:
#0 0x76aeac77 in wcstok_s () from C:\WINDOWS\SysWOW64\msvcrt.dll
#1 0x76aeabb3 in wcstok_s () from C:\WINDOWS\SysWOW64\msvcrt.dll
#2 0x6cc4bd72 in SparseArrayCopy (sarray=0x1001568) at sarray2.c:169
#3 0x6cc455e4 in create_dtable_for_class (class=0x6700cb60,
root_dtable=0xfc1e50) at dtable.c:526
#4 0x6cc45e1f in objc_send_initialize (object=0x6700cb60) at dtable.c:684
#5 0x6cc50142 in objc_msg_lookup_internal (sender=0x0, selector=0x67062900,
receiver=0x68f33c) at sendmsg2.c:67
#6 objc_msg_lookup (receiver=0x6700cb60, selector=0x67062900) at
sendmsg2.c:365
#7 0x66f7e800 in default_malloc (zone=<optimized out>, size=<optimized
out>) at NSZone.m:128
#8 default_malloc (zone=0x670628c0, size=28) at NSZone.m:118
#9 0x66ed567e in NSAllocateObject (aClass=0x66fde000, extraBytes=0,
zone=0x670628c0) at NSObject.m:800
#10 0x66ed3713 in +[NSObject alloc] (self=0x66ff34c0, _cmd=0x6f272580) at
NSObject.m:1158
#11 0x6f0914f7 in -[NSCell attributedStringValue] (self=0x2df1408,
_cmd=0x6f255190) at NSCell.m:1045
#12 0x6f04504a in -[NSActionCell attributedStringValue] (self=0x2df1408,
_cmd=0x6f2727c0) at NSActionCell.m:165
#13 0x6f190733 in -[NSTextFieldCell _drawAttributedString] (self=0x2df1408,
_cmd=0x6f2f6f10) at NSTextFieldCell.m:252
#14 0x6f190690 in -[NSTextFieldCell drawInteriorWithFrame:inView:]
(self=0x2df1408, _cmd=0x6f272830, cellFrame=..., controlView=0x2df10d0)
at NSTextFieldCell.m:241
#15 0x6f08fdd9 in -[NSCell drawWithFrame:inView:] (self=0x2df1408,
_cmd=0x6f2551e8, cellFrame=..., controlView=0x2df10d0) at NSCell.m:2136
#16 0x6f044af4 in -[NSActionCell drawWithFrame:inView:] (self=0x2df1408,
_cmd=0x6f285138, cellFrame=..., controlView=0x2df10d0)
at NSActionCell.m:365
#17 0x6f0b4f1b in -[NSControl drawCell:] (self=0x2df10d0, _cmd=0x6f285130,
aCell=0x2df1408) at NSControl.m:686
#18 0x6f1c6bf9 in -[NSView displayRectIgnoringOpacity:inContext:]
(self=0x2df10d0, _cmd=0x6f30a950, aRect=..., context=<optimized out>)
at NSView.m:2600
#19 0x6f1c6e04 in -[NSView displayRectIgnoringOpacity:inContext:]
(self=0x2def7a8, _cmd=0x6f30a950, aRect=..., context=<optimized out>)
at NSView.m:2634
#20 0x6f1b9d07 in -[NSView displayRectIgnoringOpacity:] (self=0x2def7a8,
_cmd=0x6f30a940, aRect=...) at NSView.m:2549
#21 0x6f1c53ed in -[NSView displayIfNeededInRectIgnoringOpacity:]
(self=0x2def7a8, _cmd=0x6f30a930, aRect=...) at NSView.m:2480
#22 0x6f1c55f9 in -[NSView displayIfNeededInRectIgnoringOpacity:]
(self=0x2def530, _cmd=0x6f30a930, aRect=...) at NSView.m:2506
#23 0x6f1c55f9 in -[NSView displayIfNeededInRectIgnoringOpacity:]
(self=0x2c17318, _cmd=0x6f30a930, aRect=...) at NSView.m:2506
#24 0x6f1c55f9 in -[NSView displayIfNeededInRectIgnoringOpacity:]
(self=0x2cd8530, _cmd=0x6f30a930, aRect=...) at NSView.m:2506
#25 0x6f1b9a5a in -[NSView displayIfNeeded] (self=0x2cd8530,
_cmd=0x6f310698) at NSView.m:2440
#26 0x6f1cc11c in -[NSWindow displayIfNeeded] (self=0x2d09338,
_cmd=0x6f310088) at NSWindow.m:2483
#27 0x6f1caa76 in -[NSWindow(GNUstepPrivate) _handleAutodisplay]
(self=0x2d09338, _cmd=0x6f3100a0) at NSWindow.m:189
#28 0x6f1d644a in +[NSWindow(GNUstepPrivate) _handleAutodisplay:]
(self=0x6f25c8a0, _cmd=0x6f3100b0, bogus=0x0) at NSWindow.m:218
#29 0x66f0d9ba in -[GSRunLoopPerformer fire] (self=0x73ec3ac8,
_cmd=0x670384c0) at NSRunLoop.m:110
#30 0x66f10213 in -[NSRunLoop(Private) _checkPerformers:] (self=0x2c15288,
_cmd=0x670385f8, context=0x2c1a030) at NSRunLoop.m:497
#31 0x66f0ebcf in -[NSRunLoop acceptInputForMode:beforeDate:]
(self=0x2c15288, _cmd=0x67038638, mode=0x67038714, limit_date=0x2c152c8)
at NSRunLoop.m:1225
#32 0x66f0f141 in -[NSRunLoop runMode:beforeDate:] (self=0x2c15288,
_cmd=0x6f31c5c0, mode=0x67038714, date=0x2c19f50) at NSRunLoop.m:1292
#33 0x6f1e944a in -[GSDisplayServer(EventOps)
getEventMatchingMask:beforeDate:inMode:dequeue:] (self=0x2b45908,
_cmd=0x625e9638, mask=4294967295,
limit=0x2c19f50, mode=0x67038714, flag=1 '\001') at
GSDisplayServer.m:1040
#34 0x625cfe71 in -[WIN32Server
getEventMatchingMask:beforeDate:inMode:dequeue:] (self=0x2b45908,
_cmd=0x6f25bc78, mask=4294967295,
limit=0x2c19f50, mode=0x67038714, flag=1 '\001') at WIN32Server.m:254
#35 0x6f05e36f in DPSPeekEvent (mode=<optimized out>, limit=<optimized out>,
mask=<optimized out>, ctxt=<optimized out>)
at ../Headers/Additions/GNUstepGUI/GSDisplayServer.h:207
#36 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
(self=0xfc56e8, _cmd=0x6f25bee8, mask=4294967295, expiration=0x2c19f50,
mode=0x67038714, flag=1 '\001') at NSApplication.m:2180
#37 0x6f05ea04 in -[NSApplication run] (self=0xfc56e8, _cmd=0x6f2544c8) at
NSApplication.m:1553
#38 0x6f0413f6 in NSApplicationMain (argc=1, argv=0x10ae880) at
Functions.m:91
#39 0x0040daae in main (argc=1, argv=0x10ae880) at Sections_main.m:28
-----Original Message-----
From: Daniel Boyd <danieljboyd@icloud.com>
Sent: Wednesday, September 16, 2020 9:38 AM
To: 'Niels Grewe' <niels.grewe@halbordnung.de>; 'Discuss-gnustep Discuss'
<discuss-gnustep@gnu.org>
Subject: RE: debug question
Thank you. I will give that a try. I'm having a different issue now. I've
written a program that is doing a long series of calculations. It
occasionally writes log entries to an NSTextView and there is an
indeterminate progress bar going at the bottom. It seems to crash pretty
regularly at the same point, like 10 minutes after starting. Here is part of
the stack trace. Not sure why I don't have Nos 1-5, but they're not in my
terminal window for whatever reason.
Here's my question, this stack seems all GUI and Foundation-related. What
are the odds that this is a bug in my code or a bug in the GNUstep code? I'm
running in Windows, so my impression is that everything is a little more
stable on the Linux side of the fence.
#5 0x6cc50142 in objc_msg_lookup_internal (sender=0x0, selector=0x67062900,
receiver=0x68f33c) at sendmsg2.c:67
#6 objc_msg_lookup (receiver=0x6700cb60, selector=0x67062900) at
sendmsg2.c:365
#7 0x66f7e800 in default_malloc (zone=<optimized out>, size=<optimized
out>) at NSZone.m:128
#8 default_malloc (zone=0x670628c0, size=28) at NSZone.m:118
#9 0x66ed567e in NSAllocateObject (aClass=0x66fde000, extraBytes=0,
zone=0x670628c0) at NSObject.m:800
#10 0x66ed3713 in +[NSObject alloc] (self=0x66ff34c0, _cmd=0x6f272580) at
NSObject.m:1158
#11 0x6f0914f7 in -[NSCell attributedStringValue] (self=0x2df1408,
_cmd=0x6f255190) at NSCell.m:1045
#12 0x6f04504a in -[NSActionCell attributedStringValue] (self=0x2df1408,
_cmd=0x6f2727c0) at NSActionCell.m:165
#13 0x6f190733 in -[NSTextFieldCell _drawAttributedString] (self=0x2df1408,
_cmd=0x6f2f6f10) at NSTextFieldCell.m:252
#14 0x6f190690 in -[NSTextFieldCell drawInteriorWithFrame:inView:]
(self=0x2df1408, _cmd=0x6f272830, cellFrame=..., controlView=0x2df10d0)
at NSTextFieldCell.m:241
#15 0x6f08fdd9 in -[NSCell drawWithFrame:inView:] (self=0x2df1408,
_cmd=0x6f2551e8, cellFrame=..., controlView=0x2df10d0) at NSCell.m:2136
#16 0x6f044af4 in -[NSActionCell drawWithFrame:inView:] (self=0x2df1408,
_cmd=0x6f285138, cellFrame=..., controlView=0x2df10d0)
at NSActionCell.m:365
#17 0x6f0b4f1b in -[NSControl drawCell:] (self=0x2df10d0, _cmd=0x6f285130,
aCell=0x2df1408) at NSControl.m:686
#18 0x6f1c6bf9 in -[NSView displayRectIgnoringOpacity:inContext:]
(self=0x2df10d0, _cmd=0x6f30a950, aRect=..., context=<optimized out>)
at NSView.m:2600
#19 0x6f1c6e04 in -[NSView displayRectIgnoringOpacity:inContext:]
(self=0x2def7a8, _cmd=0x6f30a950, aRect=..., context=<optimized out>)
at NSView.m:2634
#20 0x6f1b9d07 in -[NSView displayRectIgnoringOpacity:] (self=0x2def7a8,
_cmd=0x6f30a940, aRect=...) at NSView.m:2549
#21 0x6f1c53ed in -[NSView displayIfNeededInRectIgnoringOpacity:]
(self=0x2def7a8, _cmd=0x6f30a930, aRect=...) at NSView.m:2480
#22 0x6f1c55f9 in -[NSView displayIfNeededInRectIgnoringOpacity:]
(self=0x2def530, _cmd=0x6f30a930, aRect=...) at NSView.m:2506
#23 0x6f1c55f9 in -[NSView displayIfNeededInRectIgnoringOpacity:]
(self=0x2c17318, _cmd=0x6f30a930, aRect=...) at NSView.m:2506
#24 0x6f1c55f9 in -[NSView displayIfNeededInRectIgnoringOpacity:]
(self=0x2cd8530, _cmd=0x6f30a930, aRect=...) at NSView.m:2506
#25 0x6f1b9a5a in -[NSView displayIfNeeded] (self=0x2cd8530,
_cmd=0x6f310698) at NSView.m:2440
#26 0x6f1cc11c in -[NSWindow displayIfNeeded] (self=0x2d09338,
_cmd=0x6f310088) at NSWindow.m:2483
#27 0x6f1caa76 in -[NSWindow(GNUstepPrivate) _handleAutodisplay]
(self=0x2d09338, _cmd=0x6f3100a0) at NSWindow.m:189
#28 0x6f1d644a in +[NSWindow(GNUstepPrivate) _handleAutodisplay:]
(self=0x6f25c8a0, _cmd=0x6f3100b0, bogus=0x0) at NSWindow.m:218
#29 0x66f0d9ba in -[GSRunLoopPerformer fire] (self=0x73ec3ac8,
_cmd=0x670384c0) at NSRunLoop.m:110
#30 0x66f10213 in -[NSRunLoop(Private) _checkPerformers:] (self=0x2c15288,
_cmd=0x670385f8, context=0x2c1a030) at NSRunLoop.m:497
#31 0x66f0ebcf in -[NSRunLoop acceptInputForMode:beforeDate:]
(self=0x2c15288, _cmd=0x67038638, mode=0x67038714, limit_date=0x2c152c8)
at NSRunLoop.m:1225
#32 0x66f0f141 in -[NSRunLoop runMode:beforeDate:] (self=0x2c15288,
_cmd=0x6f31c5c0, mode=0x67038714, date=0x2c19f50) at NSRunLoop.m:1292
#33 0x6f1e944a in -[GSDisplayServer(EventOps)
getEventMatchingMask:beforeDate:inMode:dequeue:] (self=0x2b45908,
_cmd=0x625e9638, mask=4294967295,
limit=0x2c19f50, mode=0x67038714, flag=1 '\001') at
GSDisplayServer.m:1040
#34 0x625cfe71 in -[WIN32Server
getEventMatchingMask:beforeDate:inMode:dequeue:] (self=0x2b45908,
_cmd=0x6f25bc78, mask=4294967295,
limit=0x2c19f50, mode=0x67038714, flag=1 '\001') at WIN32Server.m:254
#35 0x6f05e36f in DPSPeekEvent (mode=<optimized out>, limit=<optimized out>,
mask=<optimized out>, ctxt=<optimized out>)
at ../Headers/Additions/GNUstepGUI/GSDisplayServer.h:207
#36 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
(self=0xfc56e8, _cmd=0x6f25bee8, mask=4294967295, expiration=0x2c19f50,
mode=0x67038714, flag=1 '\001') at NSApplication.m:2180
#37 0x6f05ea04 in -[NSApplication run] (self=0xfc56e8, _cmd=0x6f2544c8) at
NSApplication.m:1553
#38 0x6f0413f6 in NSApplicationMain (argc=1, argv=0x10ae880) at
Functions.m:91
#39 0x0040daae in main (argc=1, argv=0x10ae880) at Sections_main.m:28
-----Original Message-----
From: Discuss-gnustep
<discuss-gnustep-bounces+danieljboyd=icloud.com@gnu.org> On Behalf Of Niels
Grewe
Sent: Wednesday, September 16, 2020 12:44 AM
To: discuss-gnustep@gnu.org
Subject: Re: debug question
Hi Daniel,
On 15.09.20 22:45, Daniel Boyd wrote:
>
> [Inferior 1 (process 29596) exited with code 03]
>
> (gdb) bt
>
> No stack.
What's happening here is that the process you are debugging is spawning a
different process and gdb stays in the parent process you can change this by
calling
> set follow-fork-mode child
prior to running the program in gdb. Hope that helps.
Cheers,
Niels