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 189419 - StackOverflowError at org.netbeans.modules.cnd.utils.cache.WeakSharedSet$SharedKeyWeakHashMap.getTable
Summary: StackOverflowError at org.netbeans.modules.cnd.utils.cache.WeakSharedSet$Shar...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-12 00:52 UTC by tbrunhoff
Modified: 2010-08-28 03:45 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 153312


Attachments
stacktrace (96.14 KB, text/plain)
2010-08-12 00:52 UTC, tbrunhoff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tbrunhoff 2010-08-12 00:52:33 UTC
This bug was originally marked as duplicate of bug 173203, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201008050001)
VM: Java HotSpot(TM) 64-Bit Server VM, 16.0-b13, Java(TM) SE Runtime Environment, 1.6.0_18-b07
OS: Linux

User Comments:
tbrunhoff: inserting new code in a method.




Stacktrace: 
java.lang.StackOverflowError
   at org.netbeans.modules.cnd.utils.cache.WeakSharedSet$SharedKeyWeakHashMap.getTable(WeakSharedSet.java:378)
   at org.netbeans.modules.cnd.utils.cache.WeakSharedSet$SharedKeyWeakHashMap.putIfAbsent(WeakSharedSet.java:1177)
   at org.netbeans.modules.cnd.utils.cache.WeakSharedSet$SharedKeyWeakHashMap.access$000(WeakSharedSet.java:188)
   at org.netbeans.modules.cnd.utils.cache.WeakSharedSet.putIfAbsent(WeakSharedSet.java:175)
   at org.netbeans.modules.cnd.utils.cache.APTStringManager$APTSingleStringManager.getString(APTStringManager.java:151)
   at org.netbeans.modules.cnd.utils.cache.APTStringManager$APTCompoundStringManager.getString(APTStringManager.java:224)
Comment 1 tbrunhoff 2010-08-12 00:52:37 UTC
Created attachment 101326 [details]
stacktrace
Comment 2 Peter Pis 2010-08-12 07:45:10 UTC
Reassigning.
Comment 3 Vladimir Voskresensky 2010-08-27 09:23:10 UTC
Todd, could you provide code sample which cause this issue?

Thanks!
Vladimir.
Comment 4 Vladimir Voskresensky 2010-08-27 10:13:42 UTC
hopefully fixed, but it would be nice to see construction on which it failed.
http://hg.netbeans.org/cnd-main/rev/2ff5f70cddce
Comment 5 tbrunhoff 2010-08-27 17:59:23 UTC
Vladimir, sorry, but I've written a few thousand lines of code in the last few weeks, and I have no idea where this would have been. The stack looks like a recursion, but there's no values in the method calls in the stack dump so I can't figure out where it might have been. I've looked for a core file, but I've either removed it or one was not generated.
Comment 6 Quality Engineering 2010-08-28 03:45:05 UTC
Integrated into 'main-golden', will be available in build *201008280001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/2ff5f70cddce
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixed #189419 -  StackOverflowError at org.netbeans.modules.cnd.utils.cache.WeakSharedSet$SharedKeyWeakHashMap.getTable