[ 
https://issues.apache.org/jira/browse/DAEMON-266?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

sam marshall updated DAEMON-266:
--------------------------------

    Attachment: jsvc-bug.tar.gz

This file demonstrates the bug including precompiled jsvc (from the version 
1.0.10 shipped in latest Tomcat 7, also see DAEMON-265 if you prefer to build 
your own).

To see the bug, unpack the archive, change in there, then run the shell script:

{code}
./tryit
{code}

It uses sudo, so you'll be prompted for password (look at script if you're 
concerned about security). Includes all the instructions on how to see the 
result. Basically the problem is that it doesn't exit.

If you want to see the same code running without using jsvc, when it completes 
successfully:

{code}
java -Djava.awt.headless=true Test
{code}

I'll post the stack trace of the frozen thread in next comment.

                
> OS X 10.8: jsvc appears to cause hang on Toolkit.createDefaultToolkit
> ---------------------------------------------------------------------
>
>                 Key: DAEMON-266
>                 URL: https://issues.apache.org/jira/browse/DAEMON-266
>             Project: Commons Daemon
>          Issue Type: Bug
>          Components: Jsvc
>    Affects Versions: 1.0.10
>         Environment: Max OS X 10.8.2
> (64-bit)
> $ java -version
> java version "1.7.0_09"
> Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)
>            Reporter: sam marshall
>         Attachments: jsvc-bug.tar.gz
>
>
> When using jsvc to launch a service (such as Tomcat) on this platform, any 
> use of the Toolkit.createDefaultToolkit causes the current thread to hang 
> indefinitely in native code.
> This does not happen when running the code directly using the normal 'java' 
> runtime.
> I have a gz file containing all files necessary to reproduce this on my 
> machine - will add a comment and attach this file if it lets me, or figure 
> out somewhere to put it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to