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 256629 - [newcodemodel] StringIndexOutOfBoundsException: String index out of range: -8
Summary: [newcodemodel] StringIndexOutOfBoundsException: String index out of range: -8
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
: 256542 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-11-16 15:15 UTC by Vladimir Voskresensky
Modified: 2016-01-29 15:04 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 221196


Attachments
stacktrace (4.03 KB, text/plain)
2015-11-16 15:15 UTC, Vladimir Voskresensky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Voskresensky 2015-11-16 15:15:07 UTC
Build: NetBeans IDE 8.1 (Build 20151116-3d5ad1f845f6)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.66-b17, Java(TM) SE Runtime Environment, 1.8.0_66-b17
OS: SunOS

User Comments:
vv159170: /net/volvo/export/devarea/osprojects/gcc-master/gcc/testsuite/gcc.dg/cpp/arith-3.c




Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: -8
   at java.lang.String.charAt(String.java:658)
   at org.clank.support.char$ptr$CharSequence.$at(char.java:116)
   at org.llvm.adt.APInt.__toString(APInt.java:4138)
   at org.llvm.adt.APInt.__toString(APInt.java:4264)
   at org.clang.lex.impl.PPExpressionsStatics.EvaluateDirectiveSubExpr(PPExpressionsStatics.java:156)
   at org.clang.lex.Preprocessor.EvaluateDirectiveExpression(Preprocessor.java:5784)
Comment 1 Vladimir Voskresensky 2015-11-16 15:15:08 UTC
Created attachment 157363 [details]
stacktrace
Comment 2 Vladimir Voskresensky 2015-11-16 16:45:59 UTC
*** Bug 256542 has been marked as a duplicate of this bug. ***
Comment 3 Vladimir Kvashin 2015-12-14 18:00:20 UTC
I was unable to reproduce this so far. I opened the same file - nothing happened. The content does not look platform specific
Comment 4 Vladimir Kvashin 2015-12-16 10:56:33 UTC
I was finally able to reproduce it with slight modifications in code. The error occurs when stringinizing APInt when calling diagnostics.
Comment 5 Vladimir Kvashin 2015-12-17 18:22:18 UTC
Fix in sputnik:
  0aadaa8f70b6
Comment 6 Vladimir Kvashin 2015-12-17 19:58:08 UTC
Binaries update:
  ecc4c9530fa7
Comment 7 Quality Engineering 2015-12-22 02:27:00 UTC
Integrated into 'main-silver', will be available in build *201512220002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/f71f4a88985a
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: updated binaries after fixing #256628, #257133 and  #256629 (Bug 256628 - [newcodemodel] AssertionError: Invalid token lexed. #57133 - [newcodemodel] AssertionError: Cannot modify const object! and #Bug 256629 - [newcodemodel] StringIndexOutOfBoundsException: String index out of range: -8)
(transplanted from ecc4c9530fa77a51bd0c0ac1c32ec8a993aaf4b1)