|Title|RCS process hangs
|Date|20-Jan-2005 03:08:12 EET
|Version|2.0.52
|Submitter|MikeFauzy
|[Bug criticality]|LightBug
|Browser version|Any
|[Bug status]|NewBug
|[PageProvider] used|RCSFileProvider
|Servlet Container|Apache 1.3.29 and Tomcat 4.1.30
|Operating System|Debian Sid
|URL|
|Java version|1.4.1_05

Tomcat hangs irregularly after a spawned process (rcs) will not exit. Both Tomcat's process and the sub-process must be 'kill -9'ed. A thread dump reveals the following situation: 

"process reaper" daemon prio=1 tid=0x0x83c8828 nid=0x3362 runnable [babff000..babff8c8]
        at java.lang.UNIXProcess.waitForProcessExit(Native Method)
        at java.lang.UNIXProcess.access$1500(UNIXProcess.java:20)
        at java.lang.UNIXProcess$2.run(UNIXProcess.java:127)

"TP-Processor12" daemon prio=1 tid=0x0x843b540 nid=0x318c runnable [badfe000..badff8c8]
        at java.io.FileInputStream.readBytes(Native Method)
        at java.io.FileInputStream.read(FileInputStream.java:191)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:220)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:277)
        - locked <0x44da16b0> (a java.io.BufferedInputStream)
        at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:408)
        at sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:448)
        at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:182)
        - locked <0x44da1f70> (a java.io.InputStreamReader)
        at java.io.InputStreamReader.read(InputStreamReader.java:167)
        at java.io.BufferedReader.fill(BufferedReader.java:136)

        at java.io.BufferedReader.readLine(BufferedReader.java:299)
        - locked <0x44da1f70> (a java.io.InputStreamReader)
        at java.io.BufferedReader.readLine(BufferedReader.java:362)
        at com.ecyrd.jspwiki.providers.RCSFileProvider.getPageInfo(RCSFileProvider.java:136)
        at com.ecyrd.jspwiki.providers.FileSystemProvider.getAllPages(FileSystemProvider.java:243)
        at com.ecyrd.jspwiki.PageManager.getAllPages(PageManager.java:143)
        at com.ecyrd.jspwiki.WikiEngine.getRecentChanges(WikiEngine.java:1318)
        at com.ecyrd.jspwiki.xmlrpc.RPCHandler.getAllPages(RPCHandler.java:92)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        ...

Upgrade to Java 1.4.2. It is the first relatively stable version of the 1.4 branch... 

-- JanneJalkanen 


copied from http://www.jspwiki.org/Wiki.jsp?page=BugReports