mwiede/jsch

sftp server die thread blocking during sftp ls execution

Opened this issue · 4 comments

_20240416215853 this is jstack blocking thread

version 0.1.54

Hi @txran,

0.1.54 is a very old version that was released by the original JSch maintainer prior to this fork's existence.
Can you please confirm whether or not this is still an issue with our current release (0.2.17)?

Thanks,
Jeremy

I also met this issue with

com.jcraft
jsch
0.1.55

"eaf.sync-data1" #1464 prio=5 os_prio=0 tid=0x0000fffa708de800 nid=0xa3ea0 in Object.wait() [0x0000fff8eedfd000]
java.lang.Thread.State: BLOCKED (on object monitor)
at java.lang.Object.wait(Native Method)
at java.io.PipedInputStream.read(PipedInputStream.java:326)
- eliminated <0x000000068c804b88> (a com.jcraft.jsch.Channel$MyPipedInputStream)
at java.io.PipedInputStream.read(PipedInputStream.java:377)
- locked <0x000000068c804b88> (a com.jcraft.jsch.Channel$MyPipedInputStream)
at java.io.InputStream.skip(InputStream.java:224)
at com.jcraft.jsch.ChannelSftp.skip(ChannelSftp.java:2921)
at com.jcraft.jsch.ChannelSftp.access$600(ChannelSftp.java:36)
at com.jcraft.jsch.ChannelSftp$RequestQueue.cancel(ChannelSftp.java:1270)
at com.jcraft.jsch.ChannelSftp$2.read(ChannelSftp.java:1501)
at com.jcraft.jsch.ChannelSftp$2.read(ChannelSftp.java:1364)
at org.springframework.util.StreamUtils.copy(StreamUtils.java:166)
at org.springframework.util.FileCopyUtils.copy(FileCopyUtils.java:112)
at org.springframework.util.FileCopyUtils.copyToByteArray(FileCopyUtils.java:152)

Hi @emp-java,

0.1.55 is a very old version that was released by the original JSch maintainer prior to this fork's existence.
Can you please confirm whether or not this is still an issue with our current release (0.2.17)?

Thanks,
Jeremy