Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes on all attempts to use #483

Closed
snowflake opened this issue Oct 1, 2014 · 6 comments
Closed

Crashes on all attempts to use #483

snowflake opened this issue Oct 1, 2014 · 6 comments

Comments

@snowflake
Copy link

commit ef2ea71

Built with Xcode Version 5.1.1 (5B1008) on OS X 10.8.5

Trying to build documentation for appledoc itself.

Here's the run from gdb

Script started on Wed Oct  1 08:39:10 2014
GNU gdb 6.3.50-20050815 (Apple version gdb-1824) (Wed Feb  6 22:51:23 UTC 2013)
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 ........... done

(gdb) r -o ~/temp/appledoc -h� �� �.
Starting program: /Users/davidevans/appledoc/appledoc/build/Debug/appledoc -o ~/temp/appledoc .
Reading symbols for shared libraries ++++++++++..................................................................................................................................... done
appledoc version: 2.2 (build 963)

Running for files in locations:
- .

Settings used for this run:
--project-name = appledoc
--project-version = 1.0
--project-company = Gentle Bytes
--company-id = com.gentlebytes

--templates = /Users/davidevans/appledoc/appledoc/Templates
--output = /Users/davidevans/temp/appledoc
--index-desc = (null)
--ignore = ThirdParty
--ignore = Libraries
--ignore = Frameworks
--ignore = Testing
--docset-install-path = /Users/davidevans/Library/Developer/Shared/Documentation/DocSets
--xcrun-path = /usr/bin/xcrun

--docset-bundle-id = com.gentlebytes.appledoc
--docset-bundle-name = appledoc Documentation
--docset-desc = 
--docset-copyright = Copyright © 2014 Gentle Bytes. All rights reserved.
--docset-feed-name = appledoc Documentation
--docset-feed-url = 
--docset-feed-formats = atom
--docset-package-url = 
--docset-fallback-url = 
--docset-publisher-id = com.gentlebytes.documentation
--docset-publisher-name = Gentle Bytes
--docset-min-xcode-version = 3.0
--docset-platform-family = 
--docset-cert-issuer = 
--docset-cert-signer = 
--docset-bundle-filename = com.gentlebytes.appledoc.docset
--docset-atom-filename = com.gentlebytes.appledoc.atom
--docset-xml-filename = com.gentlebytes.appledoc.xml
--docset-package-filename = com.gentlebytes.appledoc-1.0

--clean-output = NO
--create-html = YES
--create-docset = YES
--install-docset = YES
--publish-docset = NO
--html-anchors = appledoc
--keep-intermediate-files = NO
--keep-undocumented-objects = NO
--keep-undocumented-members = NO
--search-undocumented-doc = YES
--repeat-first-par = NO
--preprocess-headerdoc = NO
--print-information-block-titles = YES
--use-single-star = NO
--merge-categories = YES
--merge-category-comment = YES
--keep-merged-sections = NO
--prefix-merged-sections = NO
--crossref-format = <?%@>?
--use-code-order = (null)
--exit-threshold = 0

--warn-missing-output-path = YES
--warn-missing-company-id = YES
--warn-undocumented-object = YES
--warn-undocumented-member = YES
--warn-empty-description = YES
--warn-unknown-directive = YES
--warn-invalid-crossref = YES
--warn-missing-arg = YES

--logformat = 1
--verbose = 3

NORMAL | Initializing...
NORMAL | Parsing source files...
WARN | unsupported typedef enum at GBApplicationSettingsProvider.h@16!
WARN | unsupported typedef enum at GBApplicationSettingsProvider.h@25!
NORMAL | Ignoring path './Common/ThirdParty'...
NORMAL | Ignoring path './Libraries'...
NORMAL | Ignoring path './Testing'...
NORMAL | Processing parsed data...
WARN | GBCommentsProcessor.h@47: Description for parameter 'object' missing for -[GBCommentsProcessor processCommentForObject:withContext:store:]!
WARN | GBCommentsProcessor.h@47: 1 unknown parameter descriptions (comment) found for -[GBCommentsProcessor processCommentForObject:withContext:store:]
WARN | GBTokenizer.h@95: Description for parameter 'block' missing for -[GBTokenizer lookaheadTo:usingBlock:]!
WARN | GBTokenizer.m@362: Description for parameter 'lines' missing for -[GBTokenizer linesByReorderingHeaderDocDirectives:]!
WARN | Invalid [PKTokenizer tokenizerWithString:input] reference found near GBTokenizer.h@15, unknown object : PKTokenizer !
WARN | Invalid [[GBTokenizer allow] reference found near GBTokenizer.h@15, unknown object : [GBTokenizer !
WARN | Invalid [tokenizer eof] reference found near GBTokenizer.h@15, unknown object : tokenizer !
WARN | Invalid [tokenizer currentToken] reference found near GBTokenizer.h@15, unknown object : tokenizer !
WARN | Invalid [tokenizer consume:1] reference found near GBTokenizer.h@15, unknown object : tokenizer !
WARN | Unknown cross reference typedefEnumWithName found at GBStore.h@220!
WARN | Unknown cross reference registerTypedefEnum found at GBStore.h@221!
WARN | Unknown cross reference typedefBlockWithName found at GBStore.h@227!
WARN | Unknown cross reference registerTypedefBlock found at GBStore.h@228!
WARN | Invalid [object.sections count] reference found near GBMethodsProvider.h@196, unknown object : object.sections !
WARN | Invalid [object.sections count] reference found near GBMethodsProvider.h@205, unknown object : object.sections !
WARN | Invalid [object.classMethods count] reference found near GBMethodsProvider.h@214, unknown object : object.classMethods !
WARN | Invalid [object.instanceMethods count] reference found near GBMethodsProvider.h@224, unknown object : object.instanceMethods !
WARN | Invalid [object.properties count] reference found near GBMethodsProvider.h@234, unknown object : object.properties !
WARN | GBTypedefBlockData is not documented!
WARN | Unknown cross reference parseCustomDocumentFromPath:toStore: found at GBParser.h@55!
WARN | Unknown cross reference parseDocumentsFromPath:toStore: found at GBParser.h@82!
WARN | GBParser.h@73: Description for parameter 'subpath' missing for -[GBParser parseCustomDocumentFromPath:outputSubpath:key:toStore:]!
WARN | GBParser.h@73: Description for parameter 'key' missing for -[GBParser parseCustomDocumentFromPath:outputSubpath:key:toStore:]!
WARN | GBParser.h@73: 1 unknown parameter descriptions (outputPath) found for -[GBParser parseCustomDocumentFromPath:outputSubpath:key:toStore:]
WARN | Invalid [super mergeDataFromObject:source] reference found near GBModelBase.h@72, unknown object : super !
WARN | Invalid [NSObject description] reference found near NSObject+GBObject.h@19, unknown object : NSObject !
WARN | GBDocSetNavigationTreeIconKind is not documented!
WARN | FolderIcon is not documented!
WARN | FileIcon is not documented!
WARN | ReferenceIcon is not documented!
WARN | BundleIcon is not documented!
WARN | GBTaskReportBlock is not documented!
NORMAL | Generating output...
Reading symbols for shared libraries . done

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
0x00007fff866bf3d8 in objc_msgSend_vtable0 ()
(gdb) bt
#0  0x00007fff866bf3d8 in objc_msgSend_vtable0 ()
#1  0x00000001000c8bd2 in +[GRMustacheImplicitIteratorExpression initialize] (self=0x100147160, _cmd=<value temporarily unavailable, due to optimizations>) at /Users/groue/Documents/git/groue/GRMustache/src/classes/GRMustacheImplicitIteratorExpression.m:32
#2  0x00007fff866c0236 in _class_initialize ()
#3  0x00007fff866c00f3 in prepareForMethodLookup ()
#4  0x00007fff866bfeef in lookUpMethod ()
#5  0x00007fff866be2fc in objc_msgSend ()
#6  0x00000001000cd1b8 in -[GRMustacheExpressionParser parseExpression:empty:error:] (self=<value temporarily unavailable, due to optimizations>, _cmd=<value temporarily unavailable, due to optimizations>, string=0x7fff7244dc80, empty=0x0, error=0x7fff5fbfd970) at /Users/groue/Documents/git/groue/GRMustache/src/classes/GRMustacheExpressionParser.m:98
#7  0x00000001000c0633 in -[GRMustacheCompiler parser:shouldContinueAfterParsingToken:] (self=0x11343d8d0, _cmd=<value temporarily unavailable, due to optimizations>, parser=<value temporarily unavailable, due to optimizations>, token=0x11343ed30) at /Users/groue/Documents/git/groue/GRMustache/src/classes/GRMustacheCompiler.m:247
#8  0x00000001000c5228 in -[GRMustacheParser parseTemplateString:templateID:] (self=0x113440380, _cmd=<value temporarily unavailable, due to optimizations>, templateString=0x112d7ba00, templateID=0x11343e880) at /Users/groue/Documents/git/groue/GRMustache/src/classes/GRMustacheParser.m:319
#9  0x00000001000c1dca in -[GRMustacheTemplateRepository ASTFromString:contentType:templateID:error:] (self=<value temporarily unavailable, due to optimizations>, _cmd=<value temporarily unavailable, due to optimizations>, templateString=0x0, contentType=<value temporarily unavailable, due to optimizations>, templateID=0x11343e880, error=0x7fff5fbfdd40) at /Users/groue/Documents/git/groue/GRMustache/src/classes/GRMustacheTemplateRepository.m:260
#10 0x00000001000c1f9a in -[GRMustacheTemplateRepository partialNamed:relativeToTemplateID:error:] (self=0x11343b4f0, _cmd=0x7fff8b692de5, name=<value temporarily unavailable, due to optimizations>, baseTemplateID=<value temporarily unavailable, due to optimizations>, error=<value temporarily unavailable, due to optimizations>) at /Users/groue/Documents/git/groue/GRMustache/src/classes/GRMustacheTemplateRepository.m:325
#11 0x00000001000c0b13 in -[GRMustacheCompiler parser:shouldContinueAfterParsingToken:] (self=0x11343b610, _cmd=<value temporarily unavailable, due to optimizations>, parser=<value temporarily unavailable, due to optimizations>, token=<value temporarily unavailable, due to optimizations>) at /Users/groue/Documents/git/groue/GRMustache/src/classes/GRMustacheCompiler.m:596
#12 0x00000001000c5228 in -[GRMustacheParser parseTemplateString:templateID:] (self=0x11343b9b0, _cmd=<value temporarily unavailable, due to optimizations>, templateString=0x112d05200, templateID=0x0) at /Users/groue/Documents/git/groue/GRMustache/src/classes/GRMustacheParser.m:319
#13 0x00000001000c1dca in -[GRMustacheTemplateRepository ASTFromString:contentType:templateID:error:] (self=<value temporarily unavailable, due to optimizations>, _cmd=<value temporarily unavailable, due to optimizations>, templateString=0x112d7ba00, contentType=<value temporarily unavailable, due to optimizations>, templateID=0x0, error=0x7fff5fbfeaa8) at /Users/groue/Documents/git/groue/GRMustache/src/classes/GRMustacheTemplateRepository.m:260
#14 0x00000001000c21cb in -[GRMustacheTemplateRepository partialFromString:contentType:error:] (self=0x11343b4f0, _cmd=<value temporarily unavailable, due to optimizations>, templateString=0x112d05200, contentType=GRMustacheContentTypeHTML, error=0x7fff5fbfeaa8) at /Users/groue/Documents/git/groue/GRMustache/src/classes/GRMustacheTemplateRepository.m:350
#15 0x00000001000c1b37 in -[GRMustacheTemplateRepository templateFromString:contentType:error:] (self=0x11343b4f0, _cmd=<value temporarily unavailable, due to optimizations>, templateString=0x112d05200, contentType=GRMustacheContentTypeHTML, error=0x7fff5fbfdd40) at /Users/groue/Documents/git/groue/GRMustache/src/classes/GRMustacheTemplateRepository.m:207
#16 0x0000000100090035 in -[GBTemplateHandler parseTemplate:error:] (self=0x1120d9c60, _cmd=0x1000ec52d, template=0x1120da250, error=0x7fff5fbfeaa8) at /Users/davidevans/appledoc/appledoc/Generating/GBTemplateHandler.m:101
#17 0x000000010008f630 in -[GBTemplateHandler parseTemplateFromPath:error:] (self=0x1120d9c60, _cmd=0x1000ec624, path=0x1120d9060, error=0x7fff5fbfeaa8) at /Users/davidevans/appledoc/appledoc/Generating/GBTemplateHandler.m:59
#18 0x00000001000af9e2 in -[GBTemplateFilesHandler templateHandlerFromTemplateFile:error:] (self=0x1133e67c0, _cmd=0x1000ed82f, filename=0x1120c4000, error=0x7fff5fbfeaa8) at /Users/davidevans/appledoc/appledoc/Generating/GBTemplateFilesHandler.m:129
#19 0x00000001000aeedf in -[GBTemplateFilesHandler copyTemplateFilesToOutputPath:] (self=0x1133e67c0, _cmd=0x1000eb8fc, error=0x7fff5fbfeaa8) at /Users/davidevans/appledoc/appledoc/Generating/GBTemplateFilesHandler.m:89
#20 0x0000000100079695 in __42-[GBGenerator runGeneratorStepsWithStore:]_block_invoke (.block_descriptor=<value temporarily unavailable, due to optimizations>, generator=0x1133e67c0, idx=0, stop=0x7fff5fbfecdf "") at /Users/davidevans/appledoc/appledoc/Generating/GBGenerator.m:86
#21 0x00007fff858034a6 in __NSArrayEnumerate ()
#22 0x0000000100079329 in -[GBGenerator runGeneratorStepsWithStore:] (self=0x1120bf580, _cmd=0x1000eb8b9, aStore=0x10100f070) at /Users/davidevans/appledoc/appledoc/Generating/GBGenerator.m:81
#23 0x00000001000789f3 in -[GBGenerator generateOutputFromStore:] (self=0x1120bf580, _cmd=0x1000e64bd, aStore=0x10100f070) at /Users/davidevans/appledoc/appledoc/Generating/GBGenerator.m:54
#24 0x0000000100005c86 in -[GBAppledocApplication application:runWithArguments:] (self=0x1003114a0, _cmd=0x1000e5ccc, app=0x1003103f0, arguments=0x100331f90) at /Users/davidevans/appledoc/appledoc/Application/GBAppledocApplication.m:213
#25 0x0000000100002eab in -[DDCliApplication runWithDelegate:arguments:] (self=0x1003103f0, _cmd=0x1000e5d11, delegate=0x1003114a0, arguments=0x100331f90) at /Users/davidevans/appledoc/appledoc/Common/ThirdParty/DDCli/DDCliApplication.m:100
#26 0x000000010000317b in -[DDCliApplication runWithClass:] (self=0x1003103f0, _cmd=0x1000e5d3e, delegateClass=0x1001456a8) at /Users/davidevans/appledoc/appledoc/Common/ThirdParty/DDCli/DDCliApplication.m:130
#27 0x00000001000033f3 in DDCliAppRunWithClass (delegateClass=0x1001456a8) at /Users/davidevans/appledoc/appledoc/Common/ThirdParty/DDCli/DDCliApplication.m:172
#28 0x0000000100001bc7 in main (argc=4, argv=0x7fff5fbff5c8) at /Users/davidevans/appledoc/appledoc/appledoc.m:14
(gdb) quit
The program is running.  Exit anyway? (y or n) y

Script done on Wed Oct  1 08:40:34 2014

Trying to run the Xcode integration script from within Xcode also results in a crash.

@tomaz
Copy link
Owner

tomaz commented Oct 1, 2014

Hmm, I can see it crashes in GRMustache while generating output. But don't have explanation for it. Did you try with Xcode 6 (a far shot, but then you never know)?

@snowflake
Copy link
Author

I'm still on Mountain Lion so don't have Xcode 6

@groue
Copy link
Contributor

groue commented Oct 2, 2014

#1  0x00000001000c8bd2 in +[GRMustacheImplicitIteratorExpression initialize] (self=0x100147160, _cmd=<value temporarily unavailable, due to optimizations>) at /Users/groue/Documents/git/groue/GRMustache/src/classes/GRMustacheImplicitIteratorExpression.m:32


@implementation GRMustacheImplicitIteratorExpression

+ (void)initialize
{
    instance = [[self alloc] init];   // <- this is line 32
}

That's quite weird.

@groue
Copy link
Contributor

groue commented Oct 2, 2014

@snowflake It's useless to cross-post issues. I've closed the mirror GRMustache issue you have opened. This one is the one: in the repo where the problem occurs.

I'll help you and @tomaz if I can. So far the crashing line looks so innocent that I won't investigate: I need more hints that GRMustache is involved.

@tomaz
Copy link
Owner

tomaz commented Oct 3, 2014

@snowflake Did you update appledoc recently? If so make sure you also copy latest templates to --templates path.

@snowflake
Copy link
Author

I'm pleased to report that the bug has now resolved itself.

I installed Mavericks 10.9.5 and Xcode 6.0.1. I did a "git reset --hard' and rebuilt appledoc.
It now works building its own documentation.

As I said over in GRMustache issues, I suspect there was a subtle OS X bug
in Mountain Lion which Apple have quietly fixed in Mavericks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants