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 247539 - inaccuracy tests: OutOfMemoryError in Boost
Summary: inaccuracy tests: OutOfMemoryError in Boost
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.0.1
Hardware: PC Solaris
: P2 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on: 235612
Blocks:
  Show dependency tree
 
Reported: 2014-09-29 07:20 UTC by soldatov
Modified: 2014-11-11 12:14 UTC (History)
1 user (show)

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-09-29 07:20:26 UTC
We upgraded sparc machine. Now Boost test fails with OutOfMemoryError for a 3 latest days.

    [junit] SEVERE [global]
    [junit] java.lang.OutOfMemoryError: GC overhead limit exceeded
    [junit] SEVERE [global]
    [junit] java.lang.OutOfMemoryError: GC overhead limit exceeded
    [junit] SEVERE [global]
    [junit] java.lang.OutOfMemoryError: GC overhead limit exceeded
    [junit] WARNING [sun.awt.X11.XToolkit]: Exception on Toolkit thread
    [junit] java.lang.OutOfMemoryError: GC overhead limit exceeded
    [junit] SEVERE [org.openide.util.RequestProcessor]
    [junit] java.lang.OutOfMemoryError: GC overhead limit exceeded
Comment 1 Alexander Simon 2014-09-29 10:21:51 UTC
The bug is reproduced on header:
boost_1_54_0/boost/function/function_template.hpp

OOM in ArrayList<UsingDeclarationImpl> that contains 25M the same UsingDeclarationImpl.

List is a value of a entry of MapsCollection.usingDeclarations
Comment 2 Alexander Simon 2014-09-29 10:24:50 UTC
Probably the bug is a result of the fix of the bug #235612
Comment 3 Vladimir Voskresensky 2014-09-29 17:50:01 UTC
there were two problems:
- repetition of gathering using decls in maps

+ disabled cache in issue #235612 in commit http://hg.netbeans.org/cnd-main/rev/bc1384664e04
had to revert disabled cache, because resolving became ~250times slower (0.6 sec => 170sec)
Comment 4 Vladimir Voskresensky 2014-09-29 17:52:36 UTC
(In reply to Vladimir Voskresensky from comment #3)
> there were two problems:
> - repetition of gathering using decls in maps
http://hg.netbeans.org/cnd-main/rev/95500a375bbc
> 
> + disabled cache in issue #235612 in commit
> http://hg.netbeans.org/cnd-main/rev/bc1384664e04
> had to revert disabled cache, because resolving became ~250times slower (0.6
> sec => 170sec)
http://hg.netbeans.org/cnd-main/rev/8cacb94e3834
Comment 5 Vladimir Voskresensky 2014-09-29 17:53:11 UTC
test case is hyperlink on 
typedef detail::function::BOOST_FUNCTION_GET_INVOKER<tag> get_invoker;
in file 
boost_1_54_0/boost/function/function_template.hpp
Comment 6 Vladimir Voskresensky 2014-09-30 13:38:48 UTC
This is fixed. I would reopen issue #235612
Comment 7 soldatov 2014-09-30 13:53:23 UTC
Verified.
    [junit] Testcase: testErrorHighlightingBoost(ide.inaccuracy.ErrorHighlightingBoostTest_1):	FAILED
    [junit] Test failed. Expected: 1408 identifiers, Real: 1540:
    [junit] org.netbeans.junit.AssertionFailedErrorException: Test failed. Expected: 1408 identifiers, Real: 1540:
    [junit] 
    [junit] Nested Exception is:
    [junit] java.lang.Exception: Test failed. Expected: 1408 identifiers, Real: 1540
    [junit] 	at com.sun.ifdefqe.IfdefTestCase.addFailureReason(IfdefTestCase.java:697)
Comment 8 Quality Engineering 2014-10-01 02:51:11 UTC
Integrated into 'main-silver', will be available in build *201410010001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/95500a375bbc
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixing #247539 - inaccuracy tests: OutOfMemoryError in Boost
// do not add using several times
// it could be the case when outer container has several copies
// with same offsets but different names (i.e. macro-based name)
// we don't want to have infinite loop
Comment 9 Quality Engineering 2014-10-07 14:44:29 UTC
Integrated into 'releases/release801', will be available in build *201410071419* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/682d524b932b
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixing #247539 - inaccuracy tests: OutOfMemoryError in Boost
// do not add using several times
// it could be the case when outer container has several copies
// with same offsets but different names (i.e. macro-based name)
// we don't want to have infinite loop
(transplanted from 95500a375bbc1364da8d4ca8499f871a728bab06)