veita commented on issue #721:
URL: https://github.com/apache/mina-sshd/issues/721#issuecomment-2789537723

   The above code snippet is sufficient to reproduce the behavior. Groovy 
compiler does effectively the same while discovering classes. See the following 
link and the stack trace below.
   
https://github.com/apache/groovy/blob/2c73607831676d9f9e1bc988f4acdab1ae4eaffa/src/main/java/org/codehaus/groovy/vmplugin/v9/ClassFinder.java#L177
   
   If you still need a project to reproduce, let me know.
   
   The thread is being created here:
   
https://github.com/apache/mina-sshd/blob/4a9bd22c46be367cd0f0e50028b661ba70c87b26/sshd-sftp/src/main/java/org/apache/sshd/sftp/client/fs/SftpFileSystemProvider.java#L189
   
   
   
   ```
   Thread [main] (Suspended (breakpoint at line 698 in Thread)) 
        owns: Object  (id=97)   
        Thread.<init>(ThreadGroup, String, int, Runnable, long, 
AccessControlContext) line: 698 
        Thread.<init>(ThreadGroup, Runnable, String, long) line: 1411   
        SshdThreadFactory.newThread(Runnable) line: 55  
        ThreadPoolExecutor$Worker.<init>(ThreadPoolExecutor, Runnable) line: 
637        
        ScheduledThreadPoolExecutor(ThreadPoolExecutor).addWorker(Runnable, 
boolean) line: 928  
        ScheduledThreadPoolExecutor(ThreadPoolExecutor).ensurePrestart() line: 
1609     
        ScheduledThreadPoolExecutor.delayedExecute(RunnableScheduledFuture<?>) 
line: 346        
        ScheduledThreadPoolExecutor.scheduleAtFixedRate(Runnable, long, long, 
TimeUnit) line: 632       
        
SshClient(AbstractFactoryManager).setupSessionTimeout(AbstractSessionFactory<?,?>)
 line: 480    
        SshClient.start() line: 460     
        SftpFileSystemProvider.<init>(SshClient, SftpClientFactory, 
SftpVersionSelector, SftpErrorDataHandler) line: 189        
        SftpFileSystemProvider.<init>(SshClient, SftpVersionSelector, 
SftpErrorDataHandler) line: 163   
        SftpFileSystemProvider.<init>(SshClient, SftpVersionSelector) line: 159 
        SftpFileSystemProvider.<init>(SshClient) line: 155      
        SftpFileSystemProvider.<init>() line: 147       
        DirectMethodHandle$Holder.newInvokeSpecial(Object) line: not available  
        Invokers$Holder.invokeExact_MT(Object, Object) line: not available      
        DirectConstructorHandleAccessor.invokeImpl(Object[]) line: 86   
        DirectConstructorHandleAccessor.newInstance(Object[]) line: 62  
        Constructor<T>.newInstanceWithCaller(Object[], boolean, Class<?>) line: 
502     
        Constructor<T>.newInstance(Object...) line: 486 
        ServiceLoader$ProviderImpl<S>.newInstance() line: 789   
        ServiceLoader$ProviderImpl<S>.get() line: 729   
        ServiceLoader$3.next() line: 1403       
        FileSystemProvider.loadInstalledProviders() line: 156   
        FileSystemProvider$1.run() line: 207    
        FileSystemProvider$1.run() line: 204    
        AccessController.executePrivileged(PrivilegedAction<T>, 
AccessControlContext, Class<?>) line: 778       
        AccessController.doPrivileged(PrivilegedAction<T>) line: 319    
        FileSystemProvider.installedProviders() line: 204       
        FileSystems.newFileSystem(URI, Map<String,?>, ClassLoader) line: 336    
        FileSystems.newFileSystem(URI, Map<String,?>) line: 288 
        ClassFinder.maybeNewFileSystem(URI) line: 177   
        ClassFinder.find(URI, String, String, boolean) line: 122        
        ClassFinder.find(URI, String, boolean) line: 109        
        Java9.doFindClasses(URI, String, List<String>) line: 120        
        Java16(Java9).getDefaultImportClasses(String[]) line: 98        
        ResolveVisitor.<clinit>() line: 563     
        CompilationUnit.<init>(CompilerConfiguration, CodeSource, 
GroovyClassLoader, GroovyClassLoader) line: 125       
        CompilationUnit.<init>(CompilerConfiguration, CodeSource, 
GroovyClassLoader) line: 158  
        GroovyClassLoader.createCompilationUnit(CompilerConfiguration, 
CodeSource) line: 638    
        GroovyClassLoader.doParseClass(GroovyCodeSource) line: 344      
        GroovyClassLoader.lambda$parseClass$2(GroovyCodeSource, String) line: 
314       
        0x00007fda8026e240.provide(Object) line: not available  
        StampedCommonCache<K,V>.compute(K, ValueProvider<? super K,? extends 
V>, boolean) line: 163     
        StampedCommonCache<K,V>.getAndPut(K, ValueProvider<? super K,? extends 
V>, boolean) line: 154   
        GroovyClassLoader.parseClass(GroovyCodeSource, boolean) line: 314       
        GroovyShell.parseClass(GroovyCodeSource) line: 572      
        GroovyShell.parse(GroovyCodeSource, Binding) line: 585  
        GroovyShell.parse(Reader, String, Binding) line: 564    
        GroovyShell.parse(Reader, String) line: 552     
        GroovyShell.evaluate(Reader, String) line: 534  
        GroovyShell.evaluate(Reader) line: 522
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org

Reply via email to