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 246643

Summary: Exception: SUID: STRUCT CFieldCallback[ 3388:7/123851 - 3405:8/124571 ][ParseDecl.cpp 3388:7-3405:8], STRUCT CFieldCallback[ 3388:7/123851 - 3405:8/124571 ][ParseDecl.cpp 3388:7-3405:8]
Product: cnd Reporter: Alexander Simon <alexvsimon>
Component: Code ModelAssignee: petrk
Status: RESOLVED FIXED    
Severity: normal CC: alexvsimon, soldatov
Priority: P2    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 211388
Attachments: stacktrace
stacktrace
stacktrace
stacktrace

Description Alexander Simon 2014-08-22 13:50:09 UTC
Build: NetBeans IDE Dev (Build 20140822-b2c5edcd2a67)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.20-b23, Java(TM) SE Runtime Environment, 1.8.0_20-b26
OS: SunOS

User Comments:
alexvsimon: xref on LLVM34




Stacktrace: 
java.lang.Exception: SUID: STRUCT CFieldCallback[ 3388:7/123851 - 3405:8/124571 ][ParseDecl.cpp 3388:7-3405:8], STRUCT CFieldCallback[ 3388:7/123851 - 3405:8/124571 ][ParseDecl.cpp 3388:7-3405:8]
   at org.netbeans.modules.cnd.utils.CndUtils.severe(CndUtils.java:200)
   at org.netbeans.modules.cnd.utils.CndUtils.assertTrue(CndUtils.java:185)
   at org.netbeans.modules.cnd.modelimpl.uid.UIDObjectFactory.writeUID(UIDObjectFactory.java:128)
   at org.netbeans.modules.cnd.modelimpl.csm.TypeBasedSpecializationParameterImpl.write(TypeBasedSpecializationParameterImpl.java:252)
   at org.netbeans.modules.cnd.modelimpl.repository.PersistentUtils.writeSpecializationParameter(PersistentUtils.java:598)
   at org.netbeans.modules.cnd.modelimpl.repository.PersistentUtils.writeSpecializationParameters(PersistentUtils.java:587)
Comment 1 Alexander Simon 2014-08-22 13:50:10 UTC
Created attachment 148843 [details]
stacktrace
Comment 2 Alexander Simon 2014-08-22 13:55:53 UTC
Created attachment 148844 [details]
stacktrace

open file ParseObjc.cpp from LLVM33
Comment 3 Alexander Simon 2014-08-22 13:58:53 UTC
Created attachment 148845 [details]
stacktrace

open file StackAddrEscapeChecker.cpp from LLVM34
Comment 4 Alexander Simon 2014-08-25 08:35:13 UTC
The simplest test case:

template <typename T, unsigned N> class SmallVector {
};

void foo() const {

    class CallBack {
    public:
        SmallVector<std::pair<int, int>, 10> V;
    };
    CallBack cb;
    cb.V[1].second;
}
Comment 5 Exceptions Reporter 2014-11-21 23:19:01 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=211388
Comment 6 soldatov 2015-03-03 21:28:24 UTC
Created attachment 152381 [details]
stacktrace

I can't edit such simple code because generates exceptions

#include <iostream>
#include <map>
#include <algorithm>
using namespace std;

int main() {
    map<int, int> m = { {1, 1}, {2, 2} };
    for_each(m.begin(), m.end(), [](pair<int, int> p) { cout << p.first << endl; });
    return 0;
}
Comment 7 petrk 2015-03-04 14:33:21 UTC
Fixed in http://hg.netbeans.org/cnd-main/rev/d05d80288c52
Comment 8 Quality Engineering 2015-03-05 04:09:09 UTC
Integrated into 'main-silver', will be available in build *201503050001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/d05d80288c52
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixed #246643 -  Exception: SUID: STRUCT CFieldCallback[ 3388:7/123851 - 3405:8/124571 ][ParseDecl.cpp 3388:7-3405:8], STRUCT CFieldCallback[ 3388:7/123851 - 3405:8/124571 ][ParseDecl.cpp 3388:7-3405:8] (edit)