Bug 118354 - ccm load --interactive hangs
Summary: ccm load --interactive hangs
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Web Application Framework
Classification: Retired
Component: dev environment
Version: nightly
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Dennis Gregorovic
QA Contact: Jon Orris
URL:
Whiteboard:
Depends On:
Blocks: 113496
TreeView+ depends on / blocked
 
Reported: 2004-03-15 21:37 UTC by Jon Orris
Modified: 2005-10-31 22:00 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-03-17 18:58:50 UTC
Embargoed:


Attachments (Terms of Use)

Description Jon Orris 2004-03-15 21:37:38 UTC
Description of problem:
ccm load --interactive ccm-core (or any group of packages) hangs after
displaying a menu, but before giving a prompt:

RPMS Installed:
[jorris@goodeats jorris]$ rpm -qa |grep ccm
ccm-config-libs-1.2.1-1
ccm-scripts-2.0.0.AUTO.41360-5
ccm-tools-servlet-tomcat-0.9.0.AUTO.41360-5
ccm-devel-perforce-2.0.0.AUTO.41360-5
ccm-tools-0.9.0.AUTO.41360-5
ccm-tools-servlet-resin-0.9.0.AUTO.41360-5
ccm-devel-2.0.0.AUTO.41360-5


Hitting CTRL-C to get back to a command prompt will give:

[jorris@goodeats rickshaw]$
com.arsdigita.util.UncheckedWrapperException (root cause:
java.io.IOException: Input/output error)
        at com.arsdigita.packaging.Menu.choose(Menu.java:122)
        at
com.arsdigita.packaging.ParameterEditor.edit(ParameterEditor.java:312)
        at com.arsdigita.packaging.Load.run(Load.java:243)
        at com.arsdigita.packaging.MasterTool.main(MasterTool.java:91)
Root cause:
java.io.IOException: Input/output error
        at java.io.FileInputStream.readBytes(Native Method)
        at java.io.FileInputStream.read(FileInputStream.java:194)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:220)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:277)
        at
sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:408)
        at
sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:450)
        at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:182)
        at java.io.InputStreamReader.read(InputStreamReader.java:167)
        at java.io.BufferedReader.fill(BufferedReader.java:136)
        at java.io.BufferedReader.readLine(BufferedReader.java:299)
        at java.io.BufferedReader.readLine(BufferedReader.java:362)
        at com.arsdigita.packaging.Menu.choose(Menu.java:120)
        at
com.arsdigita.packaging.ParameterEditor.edit(ParameterEditor.java:312)
        at com.arsdigita.packaging.Load.run(Load.java:243)
        at com.arsdigita.packaging.MasterTool.main(MasterTool.java:91)

Comment 1 Dennis Gregorovic 2004-03-15 22:15:54 UTC
@41374

<dgregor> the problem was that before I was forking a child process
which ran ccm load --config.  The parent read in the STDOUT of the
child and printed it to the screen.  The change I made was to just
fork the child and use the waitpid() function to pause the parent
until the child has exited


Note You need to log in before you can comment on or make changes to this bug.