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 198396 - StackOverflowError in the case a link refers to itself
Summary: StackOverflowError in the case a link refers to itself
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-06 15:42 UTC by Vladimir Kvashin
Modified: 2011-05-11 19:40 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 Vladimir Kvashin 2011-05-06 15:42:41 UTC
By mistake a created a symlink that referred to itself.
Remote file system gets a stack overflow with such link


java.lang.StackOverflowError
	at java.lang.ref.Reference.<init>(Reference.java:216)
	at java.lang.ref.FinalReference.<init>(FinalReference.java:16)
	at java.lang.ref.Finalizer.<init>(Finalizer.java:66)
	at java.lang.ref.Finalizer.register(Finalizer.java:72)
	at java.lang.Object.<init>(Object.java:20)
	at org.openide.filesystems.FileLock.<init>(FileLock.java:82)
	at org.netbeans.modules.remote.impl.fs.RemoteFileObjectBase.<init>(RemoteFileObjectBase.java:80)
	at org.netbeans.modules.remote.impl.fs.RemoteLinkBase.<init>(RemoteLinkBase.java:66)
	at org.netbeans.modules.remote.impl.fs.RemoteLink.<init>(RemoteLink.java:58)
	at org.netbeans.modules.remote.impl.fs.RemoteFileObjectFactory.createRemoteLink(RemoteFileObjectFactory.java:184)
	at org.netbeans.modules.remote.impl.fs.RemoteDirectory.createFileObject(RemoteDirectory.java:324)
	at org.netbeans.modules.remote.impl.fs.RemoteDirectory.getFileObject(RemoteDirectory.java:273)
	at org.netbeans.modules.remote.impl.fs.RemoteDirectory.getFileObject(RemoteDirectory.java:261)
	at org.netbeans.modules.remote.impl.fs.RemoteFileSystem.findResource(RemoteFileSystem.java:246)
	at org.netbeans.modules.remote.impl.fs.RemoteLink.getDelegate(RemoteLink.java:80)
	at org.netbeans.modules.remote.impl.fs.RemoteLinkBase.refreshImpl(RemoteLinkBase.java:212)
	at org.netbeans.modules.remote.impl.fs.RemoteLinkBase.refreshImpl(RemoteLinkBase.java:214)
	at org.netbeans.modules.remote.impl.fs.RemoteLinkBase.refreshImpl(RemoteLinkBase.java:214)
	at org.netbeans.modules.remote.impl.fs.RemoteLinkBase.refreshImpl(RemoteLinkBase.java:214)
	at org.netbeans.modules.remote.impl.fs.RemoteLinkBase.refreshImpl(RemoteLinkBase.java:214)
Comment 2 Quality Engineering 2011-05-11 19:40:55 UTC
Integrated into 'main-golden', will be available in build *201105111436* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/b7a8df73a7a3
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: test for #198396 - StackOverflowError in the case a link refers to itself