Skip to content

Instantly share code, notes, and snippets.

@jonvuri
Created July 30, 2012 12:46
Show Gist options
  • Save jonvuri/3206669 to your computer and use it in GitHub Desktop.
Save jonvuri/3206669 to your computer and use it in GitHub Desktop.
~/Development/ObjFW/objfw% make TEST_LAUNCHER=gdb tests
Entering directory src.
Entering directory exceptions.
Leaving directory exceptions.
Leaving directory src.
Entering directory tests.
Entering directory plugin.
Leaving directory plugin.
GNU gdb 6.3.50-20050815 (Apple version gdb-1705) (Fri Jul 1 10:50:06 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries .
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFAcceptFailedException.lib.o" - no debug information available for "OFAcceptFailedException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFAddressTranslationFailedException.lib.o" - no debug information available for "OFAddressTranslationFailedException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFAllocFailedException.lib.o" - no debug information available for "OFAllocFailedException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFAlreadyConnectedException.lib.o" - no debug information available for "OFAlreadyConnectedException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFBindFailedException.lib.o" - no debug information available for "OFBindFailedException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFChangeDirectoryFailedException.lib.o" - no debug information available for "OFChangeDirectoryFailedException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFChangeFileModeFailedException.lib.o" - no debug information available for "OFChangeFileModeFailedException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFChangeFileOwnerFailedException.lib.o" - no debug information available for "OFChangeFileOwnerFailedException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFConditionBroadcastFailedException.lib.o" - no debug information available for "OFConditionBroadcastFailedException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFConditionSignalFailedException.lib.o" - no debug information available for "OFConditionSignalFailedException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFConditionStillWaitingException.lib.o" - no debug information available for "OFConditionStillWaitingException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFConditionWaitFailedException.lib.o" - no debug information available for "OFConditionWaitFailedException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFConnectionFailedException.lib.o" - no debug information available for "OFConnectionFailedException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFCopyFileFailedException.lib.o" - no debug information available for "OFCopyFileFailedException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFCreateDirectoryFailedException.lib.o" - no debug information available for "OFCreateDirectoryFailedException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFDeleteDirectoryFailedException.lib.o" - no debug information available for "OFDeleteDirectoryFailedException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFDeleteFileFailedException.lib.o" - no debug information available for "OFDeleteFileFailedException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFEnumerationMutationException.lib.o" - no debug information available for "OFEnumerationMutationException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFException.lib.o" - no debug information available for "OFException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFHTTPRequestFailedException.lib.o" - no debug information available for "OFHTTPRequestFailedException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFHashAlreadyCalculatedException.lib.o" - no debug information available for "OFHashAlreadyCalculatedException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFInitializationFailedException.lib.o" - no debug information available for "OFInitializationFailedException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFInvalidArgumentException.lib.o" - no debug information available for "OFInvalidArgumentException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFInvalidEncodingException.lib.o" - no debug information available for "OFInvalidEncodingException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFInvalidFormatException.lib.o" - no debug information available for "OFInvalidFormatException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFInvalidJSONException.lib.o" - no debug information available for "OFInvalidJSONException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFInvalidServerReplyException.lib.o" - no debug information available for "OFInvalidServerReplyException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFLinkFailedException.lib.o" - no debug information available for "OFLinkFailedException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFListenFailedException.lib.o" - no debug information available for "OFListenFailedException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFMalformedXMLException.lib.o" - no debug information available for "OFMalformedXMLException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFMemoryNotPartOfObjectException.lib.o" - no debug information available for "OFMemoryNotPartOfObjectException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFMutexLockFailedException.lib.o" - no debug information available for "OFMutexLockFailedException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFMutexStillLockedException.lib.o" - no debug information available for "OFMutexStillLockedException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFMutexUnlockFailedException.lib.o" - no debug information available for "OFMutexUnlockFailedException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFNotConnectedException.lib.o" - no debug information available for "OFNotConnectedException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFNotImplementedException.lib.o" - no debug information available for "OFNotImplementedException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFOpenFileFailedException.lib.o" - no debug information available for "OFOpenFileFailedException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFOutOfMemoryException.lib.o" - no debug information available for "OFOutOfMemoryException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFOutOfRangeException.lib.o" - no debug information available for "OFOutOfRangeException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFReadFailedException.lib.o" - no debug information available for "OFReadFailedException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFReadOrWriteFailedException.lib.o" - no debug information available for "OFReadOrWriteFailedException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFRenameFileFailedException.lib.o" - no debug information available for "OFRenameFileFailedException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFSeekFailedException.lib.o" - no debug information available for "OFSeekFailedException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFSetOptionFailedException.lib.o" - no debug information available for "OFSetOptionFailedException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFSymlinkFailedException.lib.o" - no debug information available for "OFSymlinkFailedException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFThreadJoinFailedException.lib.o" - no debug information available for "OFThreadJoinFailedException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFThreadStartFailedException.lib.o" - no debug information available for "OFThreadStartFailedException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFThreadStillRunningException.lib.o" - no debug information available for "OFThreadStillRunningException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFTruncatedDataException.lib.o" - no debug information available for "OFTruncatedDataException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFUnboundNamespaceException.lib.o" - no debug information available for "OFUnboundNamespaceException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFUnsupportedProtocolException.lib.o" - no debug information available for "OFUnsupportedProtocolException.m".
warning: Could not find object file "/Users/jonathan/Development/ObjFW/objfw/src/.exceptions_exceptions.lib.a.objs/OFWriteFailedException.lib.o" - no debug information available for "OFWriteFailedException.m".
... done
(gdb) r
Starting program: /Users/jonathan/Development/ObjFW/objfw/tests/tests
Reading symbols for shared libraries +++............................ done
[OFObject] Allocating 4096 bytes: ok
[OFObject] Freeing memory: ok
[OFObject] Allocating and freeing 4096 bytes 3 times: ok
[OFObject] Detect freeing of memory not allocated by object: ok
[OFObject] Detect out of memory on alloc: ok
[OFObject] Detect out of memory on resize: ok
[OFObject] Allocate when trying to resize NULL: ok
[OFObject] Detect resizing of memory not allocated by object: ok
[OFObject] +[description]: ok
[OFObject] -[description]: ok
[OFBlock] Class of stack block: ok
[OFBlock] Class of global block: ok
[OFBlock] Class of a malloc block: ok
[OFBlock] Copying a stack block: ok
[OFBlock] Copying a global block: ok
[OFBlock] Copying a malloc block: ok
[OFBlock] Autorelease a stack block: ok
[OFBlock] Autorelease a global block: ok
[OFBlock] Autorelease a malloc block: ok
[OFMD5Hash] +[hash]: ok
[OFMD5Hash] -[digest]: ok
[OFMD5Hash] Detect invalid call of -[updateWithBuffer:length]: ok
[OFHash] +[hash]: ok
[OFHash] -[digest]: ok
[OFHash] Detect invalid call of -[updateWithBuffer:length:]: ok
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: 13 at address: 0x0000000000000000
0x00007fff866c4310 in objc_msgSend_vtable12 ()
(gdb) bt
#0 0x00007fff866c4310 in objc_msgSend_vtable12 ()
#1 0x000000010001063e in __46-[TestsAppDelegate(OFStringTests) stringTests]_block_invoke_0 (.block_descriptor=<value temporarily unavailable, due to optimizations>, str=<value temporarily unavailable, due to optimizations>, entity=<value temporarily unavailable, due to optimizations>) at OFStringTests.m:556
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment