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 268903

Summary: Stack overflow in remote file system
Product: cnd Reporter: Vladimir Kvashin <vkvashin>
Component: RemoteAssignee: Vladimir Kvashin <vkvashin>
Status: VERIFIED FIXED    
Severity: normal    
Priority: P2    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Stack

Description Vladimir Kvashin 2016-11-09 09:01:10 UTC
Created attachment 162840 [details]
Stack

This happend with Ilia when playing subversion. We were not able to repeat. However the stack shows that there is a flaw in RemoteDirectory.updateChildren() - RemoteDirectory.isPendingDelivery() that leads to this possible stack overflow.

 at org.netbeans.modules.remote.impl.fs.RemoteDirectory.updateChildren(RemoteDirectory.java:1190)
 at org.netbeans.modules.remote.impl.fs.RemoteDirectory.getDirectoryStorageImpl(RemoteDirectory.java:1151)
 at org.netbeans.modules.remote.impl.fs.RemoteDirectory.getDirectoryStorage(RemoteDirectory.java:533)
 at org.netbeans.modules.remote.impl.fs.RemoteDirectory.getFileObject(RemoteDirectory.java:410)
 at org.netbeans.modules.remote.impl.fs.RemoteDirectory.isPendingDelivery(RemoteDirectory.java:1162)
 at org.netbeans.modules.remote.impl.fs.RemoteDirectory.updateChildren(RemoteDirectory.java:1190)
 at org.netbeans.modules.remote.impl.fs.RemoteDirectory.getDirectoryStorageImpl(RemoteDirectory.java:1151)
 at org.netbeans.modules.remote.impl.fs.RemoteDirectory.getDirectoryStorage(RemoteDirectory.java:533)
 at org.netbeans.modules.remote.impl.fs.RemoteDirectory.getFileObject(RemoteDirectory.java:410)
 at org.netbeans.modules.remote.impl.fs.RemoteDirectory.isPendingDelivery(RemoteDirectory.java:1162)
...
Comment 1 Vladimir Kvashin 2016-11-10 11:52:14 UTC
fixed on enum/r82, change sets: 61c4aa33186a and b43e12b2f858
Comment 2 Quality Engineering 2016-11-16 02:51:25 UTC
Integrated into 'main-silver', will be available in build *201611160001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/470738ab7be9
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: fixed #268903 - Stack overflow in remote file system
(transplanted from 61c4aa33186aa7368813089973c87a2fcc980b2e)