This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 243626 - inaccuracy tests: regression in LLVM
Summary: inaccuracy tests: regression in LLVM
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.0.1
Hardware: PC Solaris
: P2 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-07 10:51 UTC by soldatov
Modified: 2014-06-02 13:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2014-04-07 10:51:42 UTC
1) we haven't LLVM test results after 25 April 2014
2) I see OutOfMemoryError in log:
    [junit] INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: /export/hudson/home/projects/LLVM34 took: 135,763 ms (New or modified files: 26,160, Deleted files: 0) [Adding listeners took: 12,979 ms]
    [junit] INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete indexing of 1 source roots took: 135,763 ms (New or modified files: 26,160, Deleted files: 0) [Adding listeners took: 12,979 ms]
    [junit] INFO [org.netbeans.ui.indexing]: Indexing finished, indexing took 135,922 ms.
    [junit] java.lang.OutOfMemoryError: Java heap space
    [junit] Dumping heap to /export/hudson/workspace/inaccuracy-Sparc/tests/build/test/qa-functional/work/memorydump.hprof ...
    [junit] Heap dump file created [1883685364 bytes in 57.106 secs]
    [junit] SEVERE [org.openide.util.RequestProcessor]
    [junit] java.lang.OutOfMemoryError: Java heap space
    [junit] 	at org.netbeans.modules.cnd.modelimpl.csm.core.FileBufferFile.doGetChar(FileBufferFile.java:165)
    [junit] 	at org.netbeans.modules.cnd.modelimpl.csm.core.FileBufferFile.getText(FileBufferFile.java:88)
    [junit] 	at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.getText(FileImpl.java:1602)
    [junit] 	at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.getText(FileImpl.java:157)
    [junit] 	at org.netbeans.modules.cnd.modelimpl.csm.core.OffsetableBase.getText(OffsetableBase.java:156)
    [junit] 	at org.netbeans.modules.cnd.modelimpl.csm.deep.ExpressionBase.getExpandedText(ExpressionBase.java:117)
    [junit] 	at org.netbeans.modules.cnd.completion.csm.CsmContextUtilities.getClass(CsmContextUtilities.java:592)
    [junit] 	at org.netbeans.modules.cnd.completion.csm.CompletionUtilities.findFunDefinitionOrClassOnPosition(CompletionUtilities.java:130)
    [junit] 	at org.netbeans.modules.cnd.completion.cplusplus.ext.CompletionSupport.getDefinition(CompletionSupport.java:325)
    [junit] 	at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery.getResolvedContext(CsmCompletionQuery.java:795)
    [junit] 	at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery.getResult(CsmCompletionQuery.java:761)
    [junit] 	at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery.queryImpl(CsmCompletionQuery.java:559)
    [junit] 	at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery.query(CsmCompletionQuery.java:504)
    [junit] 	at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery.query(CsmCompletionQuery.java:497)
    [junit] 	at org.netbeans.modules.cnd.completion.csm.CompletionUtilities.findItemsReferencedAtCaretPos(CompletionUtilities.java:161)
    [junit] 	at org.netbeans.modules.cnd.completion.impl.xref.ReferencesSupport.findDeclaration(ReferencesSupport.java:478)
    [junit] 	at org.netbeans.modules.cnd.completion.impl.xref.ReferencesSupport.findDeclaration(ReferencesSupport.java:429)
    [junit] 	at org.netbeans.modules.cnd.completion.impl.xref.ReferencesSupport.findReferencedObject(ReferencesSupport.java:248)
    [junit] 	at org.netbeans.modules.cnd.completion.impl.xref.ReferenceImpl.getReferencedObject(ReferenceImpl.java:105)
    [junit] 	at org.netbeans.modules.cnd.completion.impl.xref.ReferenceImpl.initKind(ReferenceImpl.java:227)
    [junit] 	at org.netbeans.modules.cnd.completion.impl.xref.ReferenceImpl.getKind(ReferenceImpl.java:213)
    [junit] 	at org.netbeans.modules.cnd.completion.impl.xref.ReferenceResolverImpl.isKindOf(ReferenceResolverImpl.java:76)
    [junit] 	at org.netbeans.modules.cnd.api.model.xref.CsmReferenceResolver$Default.isKindOf(CsmReferenceResolver.java:196)
    [junit] 	at org.netbeans.modules.cnd.highlight.hints.MethodDeclarationMissed$ReferenceVisitor.visit(MethodDeclarationMissed.java:106)
    [junit] 	at org.netbeans.modules.cnd.completion.impl.xref.FileReferencesImpl._accept(FileReferencesImpl.java:150)
    [junit] 	at org.netbeans.modules.cnd.completion.impl.xref.FileReferencesImpl.accept(FileReferencesImpl.java:106)
    [junit] 	at org.netbeans.modules.cnd.highlight.hints.MethodDeclarationMissed.doGetErrors(MethodDeclarationMissed.java:85)
    [junit] 	at org.netbeans.modules.cnd.highlight.hints.CsmHintProvider.doGetErrors(CsmHintProvider.java:169)
    [junit] 	at org.netbeans.modules.cnd.api.model.syntaxerr.CsmErrorProvider.getErrors(CsmErrorProvider.java:131)
    [junit] 	at org.netbeans.modules.cnd.highlight.error.HighlightProvider$RunnableImpl.run(HighlightProvider.java:355)
    [junit] 	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
    [junit] [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
Comment 1 soldatov 2014-04-07 11:27:32 UTC
These files can't be parsed for 1000 seconds in "valid" buid
-bash-4.1$ cat 140325_023256/i.i.E/ehl/testErrorHighlightingLlvm.1.log | grep "^Name =" | egrep "Time = [0-9][0-9][0-9][0-9]"
Name = LLVM34/build/lib/Target/ARM/ARMGenInstrInfo.inc, Errors = 0, Warnings = 0, Invalid identifiers = 4, Expected failures = 0, Invalid identifiers (Warnings) = 0, Other Annotations = 3, Errors (Internal API) = 4, Time = 1020.941, Lines = 9746
Name = LLVM34/build/lib/Target/X86/X86GenInstrInfo.inc, Errors = 0, Warnings = 0, Invalid identifiers = 4, Expected failures = 0, Invalid identifiers (Warnings) = 0, Other Annotations = 3, Errors (Internal API) = 4, Time = 1102.38, Lines = 17079
Name = LLVM34/llvm/include/llvm/Support/YAMLTraits.h, Errors = 0, Warnings = 0, Invalid identifiers = 0, Expected failures = 0, Invalid identifiers (Warnings) = 0, Other Annotations = 90, Errors (Internal API) = 0, Time = 1202.323, Lines = 1108
Name = LLVM34/llvm/include/llvm/Support/circular_raw_ostream.h, Errors = 0, Warnings = 0, Invalid identifiers = 0, Expected failures = 0, Invalid identifiers (Warnings) = 0, Other Annotations = 3, Errors (Internal API) = 0, Time = 1202.27, Lines = 171

These files can't be parsed for 1000 seconds in "bad" buid
-bash-4.1$ cat 14040/i.i.E/ehl/testErrorHighlightingLlvm.1.log | grep "^Name =" | egrep "Time = [0-9][0-9][0-9][0-9]"
140404_013129/ 140405_013130/ 
-bash-4.1$ cat 140404_013129/i.i.E/ehl/testErrorHighlightingLlvm.1.log | grep "^Name =" | egrep "Time = [0-9][0-9][0-9][0-9]"
Name = LLVM34/build/lib/Target/ARM/ARMGenInstrInfo.inc, Errors = 0, Warnings = 0, Invalid identifiers = 0, Expected failures = 0, Invalid identifiers (Warnings) = 0, Other Annotations = 3, Errors (Internal API) = 0, Time = 1200.547, Lines = 9746
Name = LLVM34/build/lib/Target/X86/X86GenInstrInfo.inc, Errors = 0, Warnings = 0, Invalid identifiers = 4, Expected failures = 0, Invalid identifiers (Warnings) = 0, Other Annotations = 3, Errors (Internal API) = 4, Time = 1064.982, Lines = 17079
Name = LLVM34/build/tools/clang/include/clang/Basic/DiagnosticIndexName.inc, Errors = 0, Warnings = 0, Invalid identifiers = 0, Expected failures = 0, Invalid identifiers (Warnings) = 0, Other Annotations = 0, Errors (Internal API) = 0, Time = 1200.427, Lines = 3420
Name = LLVM34/build/tools/clang/include/clang/Basic/DiagnosticSemaKinds.inc, Errors = 0, Warnings = 0, Invalid identifiers = 0, Expected failures = 0, Invalid identifiers (Warnings) = 0, Other Annotations = 0, Errors (Internal API) = 0, Time = 1200.478, Lines = 2446
Name = LLVM34/build/tools/clang/include/clang/Basic/DiagnosticSerializationKinds.inc, Errors = 0, Warnings = 0, Invalid identifiers = 0, Expected failures = 0, Invalid identifiers (Warnings) = 0, Other Annotations = 0, Errors (Internal API) = 0, Time = 1200.502, Lines = 29
Name = LLVM34/build/tools/clang/include/clang/Driver/Options.inc, Errors = 0, Warnings = 0, Invalid identifiers = 0, Expected failures = 0, Invalid identifiers (Warnings) = 0, Other Annotations = 0, Errors (Internal API) = 0, Time = 1200.415, Lines = 2045
Comment 2 soldatov 2014-04-09 22:16:50 UTC
In latest build LLVM project has been investigated for 11 h 30 min.
Comment 4 Quality Engineering 2014-04-23 02:06:57 UTC
Integrated into 'main-silver', will be available in build *201404230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/7d53878d7c10
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixing Bug 243626 - inaccuracy tests: regression in LLVM:
- keep last separator in macros
Comment 5 Quality Engineering 2014-04-24 02:08:44 UTC
Integrated into 'releases/release80', will be available in build *201404240045* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/9c6a5dec68ef
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixing Bug 243626 - inaccuracy tests: regression in LLVM:
- keep last separator in macros
(transplanted from 7d53878d7c10ffb1695a3bb1a946a03718e91e29)
Comment 6 soldatov 2014-04-28 10:50:11 UTC
verified in latest build

no OutOfMemoryError and good performance in latest 3 builds:
inaccuracy-Sparc #361 		8 hr 29 min
inaccuracy-Sparc #360 		8 hr 30 min
inaccuracy-Sparc #359 		9 hr 13 min
inaccuracy-Sparc #358 		11 hr
inaccuracy-Sparc #357 		12 hr