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 166982 - PHPIndexer ends up in endless recursion while indexing
Summary: PHPIndexer ends up in endless recursion while indexing
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker with 1 vote (vote)
Assignee: rmatous
URL: http://statistics.netbeans.org/except...
Keywords:
: 167038 167201 167349 167434 167468 168833 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-06-12 13:07 UTC by charlie_smith
Modified: 2009-11-19 08:47 UTC (History)
35 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 148238


Attachments
stacktrace (105.64 KB, text/plain)
2009-06-12 13:07 UTC, charlie_smith
Details
stacktrace (105.64 KB, text/plain)
2009-06-12 13:58 UTC, menic
Details
stacktrace (105.00 KB, text/plain)
2009-06-17 12:25 UTC, Filip Zamboj
Details
stacktrace (105.14 KB, text/plain)
2009-06-17 14:10 UTC, Filip Zamboj
Details
stacktrace (105.36 KB, text/plain)
2009-06-17 14:58 UTC, Filip Zamboj
Details
stacktrace (105.69 KB, text/plain)
2009-06-30 17:53 UTC, abajja
Details
stacktrace (1.28 MB, text/plain)
2009-07-01 09:44 UTC, sayusiando
Details
stacktrace (112.46 KB, text/plain)
2009-10-23 18:48 UTC, neilg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description charlie_smith 2009-06-12 13:07:38 UTC
Build: NetBeans IDE Dev (Build 2009-06-12_15-03-49 )
VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_04-b12
OS: Windows XP, 5.1, x86

User Comments:
GUEST: starting websphere 6.1

charlie_smith: Add code comments in a php file.
(non php-doc, just a standard // comment)

GUEST: restarting websphere app server



Stacktrace: 
java.lang.StackOverflowError
        at java.io.FileOutputStream.writeBytes(FileOutputStream.java:0)
        at java.io.FileOutputStream.write(FileOutputStream.java:0)
        at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:0)
        at java.io.BufferedOutputStream.write(BufferedOutputStream.java:0)
        at java.io.PrintStream.write(PrintStream.java:0)
        at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:0)
Comment 1 charlie_smith 2009-06-12 13:07:50 UTC
Created attachment 83494 [details]
stacktrace
Comment 2 Exceptions Reporter 2009-06-12 13:08:05 UTC
This issue already has 6 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=148238
Comment 3 menic 2009-06-12 13:57:52 UTC
Build: NetBeans IDE Dev (Build 2009-06-12_12-04-27 )
VM: Java HotSpot(TM) Client VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03
OS: Windows Vista, 6.0, x86

User Comments: 
cc

Stacktrace: 
java.lang.StackOverflowError
        at java.io.FileOutputStream.writeBytes(FileOutputStream.java:0)
        at java.io.FileOutputStream.write(FileOutputStream.java:0)
        at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:0)
        at java.io.BufferedOutputStream.write(BufferedOutputStream.java:0)
        at java.io.PrintStream.write(PrintStream.java:0)
        at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:0)
Comment 4 menic 2009-06-12 13:58:02 UTC
Created attachment 83500 [details]
stacktrace
Comment 5 Exceptions Reporter 2009-06-12 13:58:13 UTC
This issue already has 7 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=148238
Comment 6 Exceptions Reporter 2009-06-15 21:12:22 UTC
This issue already has 9 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=148238
Comment 7 Tomasz Slota 2009-06-16 16:29:03 UTC
Upgrading to P1 and reassigning to Parsing API
Comment 8 Jan Jancura 2009-06-17 09:59:06 UTC
fixed in trunk: e37095dc4b8b
Comment 9 Marian Mirilovic 2009-06-17 11:45:03 UTC
Filip/Jirka ... please look at this issue, we need to find steps to reproduce. This is stopper for NB 6.7. 

Comment 10 Filip Zamboj 2009-06-17 12:01:13 UTC
as far as I go through exceptions reports and I didn't reproduce this issue in any RC it looks like this issue is only
in dev version at the moment. Anyway, I'll investigate a bit more. 
Comment 11 Filip Zamboj 2009-06-17 12:24:53 UTC
Build: NetBeans IDE 6.7 RC3 (Build 200906142201)
VM: Java HotSpot(TM) 64-Bit Server VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Linux, 2.6.28-11-generic, amd64

User Comments: 
I was writing php code when this occured. PHP project is set to upload on save

Stacktrace: 
java.lang.StackOverflowError
        at java.lang.ClassLoader.defineClass1(ClassLoader.java:0)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
        at org.netbeans.JarClassLoader.doLoadClass(JarClassLoader.java:240)
        at org.netbeans.ProxyClassLoader.selfLoadClass(ProxyClassLoader.java:294)
        at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:224)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
Comment 12 Filip Zamboj 2009-06-17 12:25:03 UTC
Created attachment 83690 [details]
stacktrace
Comment 13 Filip Zamboj 2009-06-17 12:26:42 UTC
ok, well, I reproduced in 67RC3 but it was thrown while typing code and I don't see exact steps

@developer: do you want me to turn on more logging in netbeans or some kind of information I can get you so you can
figure out the source of the issue? thanks  
Comment 14 Filip Zamboj 2009-06-17 14:10:01 UTC
Build: NetBeans IDE 6.7 RC3 (Build 200906142201)
VM: Java HotSpot(TM) 64-Bit Server VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Linux, 2.6.28-11-generic, amd64

User Comments: 
happened while copy and paste from one file to antoher in php project 

Stacktrace: 
java.lang.StackOverflowError
        at java.lang.ClassLoader.defineClass1(ClassLoader.java:0)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
        at org.netbeans.JarClassLoader.doLoadClass(JarClassLoader.java:240)
        at org.netbeans.ProxyClassLoader.selfLoadClass(ProxyClassLoader.java:294)
        at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:224)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
Comment 15 Filip Zamboj 2009-06-17 14:10:12 UTC
Created attachment 83697 [details]
stacktrace
Comment 16 Filip Zamboj 2009-06-17 14:58:02 UTC
Build: NetBeans IDE Dev (Build 2009-06-17_09-04-45 )
VM: Java HotSpot(TM) 64-Bit Server VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Linux, 2.6.28-11-generic, amd64

User Comments: 
copy and paste from one file to another according to internal discussion with jirka. 

Stacktrace: 
java.lang.StackOverflowError
        at java.security.AccessController.doPrivileged(AccessController.java:0)
        at java.lang.ClassLoader.checkPackageAccess(ClassLoader.java:329)
        at org.netbeans.core.NbErrorManager.createExc(NbErrorManager.java:71)
        at org.netbeans.core.NbErrorManager.publish(NbErrorManager.java:85)
        at org.netbeans.core.startup.TopLogging$LookupDel.publish(TopLogging.java:823)
        at java.util.logging.Logger.log(Logger.java:458)
Comment 17 Filip Zamboj 2009-06-17 14:58:08 UTC
Created attachment 83701 [details]
stacktrace
Comment 18 Quality Engineering 2009-06-18 06:57:42 UTC
Integrated into 'main-golden', will be available in build *200906180201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/e37095dc4b8b
User: Jan Jancura <jjancura@netbeans.org>
Log: #166982: StackOverflowError at java.io.FileOutputStream.writeBytes
Comment 19 Vitezslav Stejskal 2009-06-18 11:39:26 UTC
There have been three changesets from jjancura so far:
http://hg.netbeans.org/jet-main/rev/e37095dc4b8b
http://hg.netbeans.org/jet-main/rev/9a5cdba916df
http://hg.netbeans.org/jet-main/rev/3f671e60429e

I think they look good, the main fix is in 9a5cdba916df.
Comment 20 Filip Zamboj 2009-06-18 13:44:20 UTC
verified in 
Product Version: NetBeans IDE Dev (Build 200906180201)
Java: 1.6.0_13; Java HotSpot(TM) 64-Bit Server VM 11.3-b02

could you please push to 67? I'll close this as verified once it's verified in 67. thanks. 
Comment 21 Vitezslav Stejskal 2009-06-18 17:31:15 UTC
The changesets have been transplanted to release67 as:

e37095dc4b8b - http://hg.netbeans.org/release67/rev/e3a5f8003c22
9a5cdba916df - http://hg.netbeans.org/release67/rev/aeab2c72d90b
3f671e60429e - http://hg.netbeans.org/release67/rev/ffd37654a58d
Comment 22 Jiri Prox 2009-06-19 15:20:36 UTC
verified in 6.7fcs
Comment 23 Vitezslav Stejskal 2009-06-20 16:00:45 UTC
*** Issue 167349 has been marked as a duplicate of this issue. ***
Comment 24 Marian Mirilovic 2009-06-22 10:53:11 UTC
*** Issue 167201 has been marked as a duplicate of this issue. ***
Comment 25 Filip Zamboj 2009-06-22 16:55:51 UTC
*** Issue 167038 has been marked as a duplicate of this issue. ***
Comment 26 Tomasz Slota 2009-06-29 13:08:35 UTC
*** Issue 167434 has been marked as a duplicate of this issue. ***
Comment 27 abajja 2009-06-30 17:53:06 UTC
Build: NetBeans IDE 6.7 RC3 (Build 200906150201)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.lang.StackOverflowError
        at org.netbeans.TopSecurityManager.checkSetSecurityManager(TopSecurityManager.java:411)
        at org.netbeans.TopSecurityManager.checkPermission(TopSecurityManager.java:365)
        at java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1512)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:298)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.util.ResourceBundle$RBClassLoader.loadClass(ResourceBundle.java:445)
Comment 28 abajja 2009-06-30 17:53:15 UTC
Created attachment 84200 [details]
stacktrace
Comment 29 sayusiando 2009-07-01 09:41:19 UTC
I can reproducate this problem.
Comment 30 sayusiando 2009-07-01 09:44:25 UTC
Created attachment 84226 [details]
stacktrace
Comment 31 Filip Zamboj 2009-07-01 13:37:10 UTC
it's 100% reproducible in 
Product Version: NetBeans IDE Dev (Build 2009-06-30_09-04-36 )
Java: 1.5.0_17-ea; Java HotSpot(TM) 64-Bit Server VM 1.5.0_17-ea-b01

from bertram.netbeans.org
Comment 32 Jiri Prox 2009-07-07 14:23:32 UTC
yes, I can reproduce it as well
Comment 33 Marian Mirilovic 2009-07-09 09:30:36 UTC
looks like new reports are coming just from trunk builds, none so far from NB 6.7 FCS ...
Comment 34 David Strupl 2009-07-09 12:27:43 UTC
If it happens only in the trunk and not in 6.7 it should remain P1 but the trunk fix (after we have one) will not be
backported to 6.7 branch.
Comment 35 Jan Jancura 2009-07-10 15:19:37 UTC
indexing issue
Comment 36 Vitezslav Stejskal 2009-07-16 09:32:46 UTC
Well, the stacktraces from trunk indicate a problem different from the original one. This new problem is solely in
PhpIndex, which while creating the index is trying to access its data, hence the endless recursion. Strictly speaking I
should close this issue as fixed and file another one, but there seems to be heaps of people CCed and huge number of
stacktraces. So, I'll probably keep it open and just change the summary, version and target milestone.

I'm passing this to PHP folks, but please let me know if you thing that there is something unexpected on the
infrastructure side. Thanks
Comment 37 Tomasz Slota 2009-07-16 15:27:46 UTC
reassigning to radek
Comment 38 rmatous 2009-07-21 13:37:48 UTC
*** Issue 168833 has been marked as a duplicate of this issue. ***
Comment 39 rmatous 2009-07-21 13:39:26 UTC
#168833 marked as duplicate: contains php code that makes the issue to be reproducible
Comment 40 Exceptions Reporter 2009-07-21 20:36:34 UTC
This issue already has 250 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=148238
Comment 41 Marian Mirilovic 2009-07-22 08:00:44 UTC
Radek/Tomas : I see exceptions from versions : [Dev, 6.5 Beta, 6.7 RC3] but none from 6.7 FCS ... does it mean it's
fixed there ? If not we can reconsider to put this into next 6.7 patch ...
Comment 42 rmatous 2009-07-22 08:59:27 UTC
Marian, this is a little bit confusion (new issue should have been reported) because current #166982 isn't the same as
original 6.7 #166982 issue. The original one was fixed for 6.7 FCS in csl but this current one is issue in php indexing
code and will be fixed by myself (already fixed locally and will be pushed very soon)
Comment 43 Exceptions Reporter 2009-07-22 14:37:01 UTC
This issue already has 251 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=148238
Comment 44 Quality Engineering 2009-07-23 17:47:58 UTC
Integrated into 'main-golden', will be available in build *200907231401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/924c4b0dc78b
User: Radek Matous <rmatous@netbeans.org>
Log: #166982 PHPIndexer ends up in endless recursion while indexing
Comment 45 rmatous 2009-07-27 16:31:09 UTC
fixed
Comment 46 Vitezslav Stejskal 2009-07-29 13:29:40 UTC
*** Issue 167468 has been marked as a duplicate of this issue. ***
Comment 47 neilg 2009-10-23 18:48:14 UTC
Build: NetBeans IDE 6.8 Beta (Build 200910212001)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01
OS: Linux, 2.6.28-15-generic, amd64

User Comments: 


Stacktrace: 
java.lang.StackOverflowError
        at sun.nio.cs.UTF_8$Encoder.encodeLoop(UTF_8.java:447)
        at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:544)
        at java.lang.StringCoding$StringEncoder.encode(StringCoding.java:240)
        at java.lang.StringCoding.encode(StringCoding.java:272)
        at java.lang.String.getBytes(String.java:946)
        at java.io.UnixFileSystem.getBooleanAttributes0(UnixFileSystem.java:0)
Comment 48 neilg 2009-10-23 18:48:23 UTC
Created attachment 90005 [details]
stacktrace
Comment 49 Filip Zamboj 2009-11-19 08:47:34 UTC
Product Version: NetBeans IDE Dev (Build 091119-e4763f6f87e3)
Java: 1.5.0_17-ea; Java HotSpot(TM) 64-Bit Server VM 1.5.0_17-ea-b01

verified