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 113858 - StackOverflowError in litesql parsing
Summary: StackOverflowError in litesql parsing
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-27 15:18 UTC by Alexander Simon
Modified: 2007-11-08 11:20 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 Alexander Simon 2007-08-27 15:18:01 UTC
1. download litesql 0.3.2 (search in google "litesql download" or go to
http://downloads.sourceforge.net/litesql/litesql-0.3.2.tar.gz?modtime=1138212680&big_mirror=0)
2. extract sources
3. go to litesql-0.3.2 folder
4. configure:
./configure CFLAGS="-g3 -gdwarf-2" CXXFLAGS="-g3 -gdwarf-2"
5. make:
make CFLAGS="-g3 -gdwarf-2" CXXFLAGS="-g3 -gdwarf-2"
6. start IDE
7. create new makefile based project (at step "Code Assistance Configuration" select "Manual configuration")
8. wait parsing
9. start "Configure Code Assistance" (select "Advanced Mode")
10. see StackOverflowError
This is last items from stack:
java.lang.StackOverflowError
        at org.netbeans.modules.cnd.repository.impl.HybridRepository.get(HybridRepository.java:80)
        at org.netbeans.modules.cnd.repository.impl.DelegateRepository.get(DelegateRepository.java:59)
        at org.netbeans.modules.cnd.modelimpl.repository.RepositoryUtils.get(RepositoryUtils.java:84)
        at org.netbeans.modules.cnd.modelimpl.repository.RepositoryUtils.get(RepositoryUtils.java:61)
        at org.netbeans.modules.cnd.modelimpl.uid.KeyBasedUID.getObject(KeyBasedUID.java:46)
        at org.netbeans.modules.cnd.modelimpl.uid.KeyBasedUID.getObject(KeyBasedUID.java:37)
        at org.netbeans.modules.cnd.modelimpl.uid.UIDUtilities$UnresolvedUIDBase.getProject(UIDUtilities.java:320)
        at org.netbeans.modules.cnd.modelimpl.uid.UIDUtilities$UnresolvedNamespaceUID.getObject(UIDUtilities.java:375)
        at org.netbeans.modules.cnd.modelimpl.uid.UIDUtilities$UnresolvedNamespaceUID.getObject(UIDUtilities.java:364)
        at org.netbeans.modules.cnd.modelimpl.uid.UIDCsmConverter.UIDtoScope(UIDCsmConverter.java:93)
        at org.netbeans.modules.cnd.modelimpl.csm.ClassEnumBase.getScope(ClassEnumBase.java:137)
        at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.canRegisterDeclaration(ProjectBase.java:293)
        at org.netbeans.modules.cnd.modelimpl.csm.NamespaceImpl.addDeclaration(NamespaceImpl.java:285)
        at org.netbeans.modules.cnd.modelimpl.csm.core.Unresolved$UnresolvedClass.<init>(Unresolved.java:62)
        at org.netbeans.modules.cnd.modelimpl.csm.core.Unresolved.getDummyForUnresolved(Unresolved.java:274)
        at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.getDummyForUnresolved(ProjectBase.java:1074)
        at org.netbeans.modules.cnd.modelimpl.uid.UIDUtilities$UnresolvedClassUID.getObject(UIDUtilities.java:348)
        at org.netbeans.modules.cnd.modelimpl.uid.UIDUtilities$UnresolvedClassUID.getObject(UIDUtilities.java:338)
        at org.netbeans.modules.cnd.modelimpl.uid.UIDCsmConverter.UIDtoDeclaration(UIDCsmConverter.java:89)
        at org.netbeans.modules.cnd.modelimpl.csm.NamespaceImpl.addDeclaration(NamespaceImpl.java:304)
        at org.netbeans.modules.cnd.modelimpl.csm.core.Unresolved$UnresolvedClass.<init>(Unresolved.java:62)
        at org.netbeans.modules.cnd.modelimpl.csm.core.Unresolved.getDummyForUnresolved(Unresolved.java:274)
        at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.getDummyForUnresolved(ProjectBase.java:1074)
        at org.netbeans.modules.cnd.modelimpl.uid.UIDUtilities$UnresolvedClassUID.getObject(UIDUtilities.java:348)
        at org.netbeans.modules.cnd.modelimpl.uid.UIDUtilities$UnresolvedClassUID.getObject(UIDUtilities.java:338)
        at org.netbeans.modules.cnd.modelimpl.uid.UIDCsmConverter.UIDtoDeclaration(UIDCsmConverter.java:89)
        at org.netbeans.modules.cnd.modelimpl.csm.NamespaceImpl.addDeclaration(NamespaceImpl.java:304)
        at org.netbeans.modules.cnd.modelimpl.csm.core.Unresolved$UnresolvedClass.<init>(Unresolved.java:62)
        at org.netbeans.modules.cnd.modelimpl.csm.core.Unresolved.getDummyForUnresolved(Unresolved.java:274)
        at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.getDummyForUnresolved(ProjectBase.java:1074)
        at org.netbeans.modules.cnd.modelimpl.uid.UIDUtilities$UnresolvedClassUID.getObject(UIDUtilities.java:348)
        at org.netbeans.modules.cnd.modelimpl.uid.UIDUtilities$UnresolvedClassUID.getObject(UIDUtilities.java:338)
        at org.netbeans.modules.cnd.modelimpl.uid.UIDCsmConverter.UIDtoDeclaration(UIDCsmConverter.java:89)
        at org.netbeans.modules.cnd.modelimpl.csm.NamespaceImpl.addDeclaration(NamespaceImpl.java:304)
        at org.netbeans.modules.cnd.modelimpl.csm.core.Unresolved$UnresolvedClass.<init>(Unresolved.java:62)
        at org.netbeans.modules.cnd.modelimpl.csm.core.Unresolved.getDummyForUnresolved(Unresolved.java:274)
        at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.getDummyForUnresolved(ProjectBase.java:1074)
        at org.netbeans.modules.cnd.modelimpl.uid.UIDUtilities$UnresolvedClassUID.getObject(UIDUtilities.java:348)
        at org.netbeans.modules.cnd.modelimpl.uid.UIDUtilities$UnresolvedClassUID.getObject(UIDUtilities.java:338)
        at org.netbeans.modules.cnd.modelimpl.uid.UIDCsmConverter.UIDtoDeclaration(UIDCsmConverter.java:89)
        at org.netbeans.modules.cnd.modelimpl.csm.NamespaceImpl.addDeclaration(NamespaceImpl.java:304)
Comment 1 Vladimir Kvashin 2007-08-27 22:15:00 UTC
Fixed.

Checking in Unresolved.java;
/shared/data/ccvs/repository/cnd/modelimpl/src/org/netbeans/modules/cnd/modelimpl/csm/core/Unresolved.java,v  <-- 
Unresolved.java
new revision: 1.17; previous revision: 1.16
done
Comment 2 soldatov 2007-11-08 11:20:35 UTC
verified in trunk (200711071200 build, Linux and Solaris)