Odd CTRL-C behaviors with 2.5.x

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Odd CTRL-C behaviors with 2.5.x

Chris Clark-2
I've an odd issue where:

    * Using the standalone jar file with 2.5.1 and then using CTRL-C to
      interrupt a running script (small cherrypy app) works.
    * Using the standalone jar file with 2.5.2 and then using CTRL-C to
      interrupt a running script doesn't work.

NOTE I get similar behavior with a "normal" jython installation too
(with the jython wrapper script)

I'm happy with the 2.5.1 behavior :-)

Any ideas? I've seen http://bugs.jython.org/issue1313 but this doesn't
seem quite the same. Using Java 1.6 under Windows (not tried anything
else yet, if I was to see this under Unix I'd just ctrl-\, under Windows
I'm resorting to the task manager and performing a kill that way).

I'll probably stick with 2.5.1 for deployments for now (and dev with 2.5.2).

Chris


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Jython-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jython-users
Reply | Threaded
Open this post in threaded view
|

Re: Odd CTRL-C behaviors with 2.5.x

Pierre Thibault-3
2011/6/27 Chris Clark <[hidden email]>
I've an odd issue where:

   * Using the standalone jar file with 2.5.1 and then using CTRL-C to
     interrupt a running script (small cherrypy app) works.
   * Using the standalone jar file with 2.5.2 and then using CTRL-C to
     interrupt a running script doesn't work.

NOTE I get similar behavior with a "normal" jython installation too
(with the jython wrapper script)

I'm happy with the 2.5.1 behavior :-)

Any ideas? I've seen http://bugs.jython.org/issue1313 but this doesn't
seem quite the same. Using Java 1.6 under Windows (not tried anything
else yet, if I was to see this under Unix I'd just ctrl-\, under Windows
I'm resorting to the task manager and performing a kill that way).

I'll probably stick with 2.5.1 for deployments for now (and dev with 2.5.2).

Chris


Hello,

I have on OpenSuse 11.4 with Java  1.6.0_26 from Oracle and I don't have this problem with Jython 2.5.2. Ctrl-C works well for me.
--


A+

-------------
Pierre
My blog and profile (http://pierrethibault.posterous.com)
YouTube page (http://www.youtube.com/user/tubetib)
Twitter (http://twitter.com/pierreth2)


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Jython-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jython-users
Reply | Threaded
Open this post in threaded view
|

Re: Odd CTRL-C behaviors with 2.5.x

Chris Clark-2
Pierre Thibault wrote:

> 2011/6/27 Chris Clark <[hidden email]
> <mailto:[hidden email]>>
>
>     I've an odd issue where:
>
>        * Using the standalone jar file with 2.5.1 and then using CTRL-C to
>          interrupt a running script (small cherrypy app) works.
>        * Using the standalone jar file with 2.5.2 and then using CTRL-C to
>          interrupt a running script doesn't work.
>
>     NOTE I get similar behavior with a "normal" jython installation too
>     (with the jython wrapper script)
>
>
>
> I have on OpenSuse 11.4 with Java  1.6.0_26 from Oracle and I don't
> have this problem with Jython 2.5.2. Ctrl-C works well for me.

Thanks for testing that out Pierre, you inspired me to test under
Ubuntu  (with Open JDK 1.6) and that also works correctly too.

Working:

    java version "1.6.0_0"
    OpenJDK  Runtime Environment (build 1.6.0_0-b11)
    OpenJDK Client VM (build 1.6.0_0-b11, mixed mode, sharing)

I also tested all 3 java versions that I happen to have installed.
CTRL-C ignored (with Jython 2.5.2 but not 2.5.1):

    java version "1.6.0_02"
    Java(TM) SE Runtime Environment (build 1.6.0_02-b06)
    Java HotSpot(TM) Client VM (build 1.6.0_02-b06, mixed mode, sharing)

    java version "1.6.0"
    Java(TM) SE Runtime Environment (build 1.6.0-b105)
    Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)

    java version "1.5.0_06"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
    Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode)


It is looking Windows/Jython specific at this point.

Chris


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Jython-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jython-users
Reply | Threaded
Open this post in threaded view
|

Re: Odd CTRL-C behaviors with 2.5.x

Chris Clark
On Monday 2012-04-16 14:57 (-0700), Chris Clark
<[hidden email]> wrote:

> Pierre Thibault wrote:
>> 2011/6/27 Chris Clark<[hidden email]
>> <mailto:[hidden email]>>
>>
>>      I've an odd issue where:
>>
>>         * Using the standalone jar file with 2.5.1 and then using CTRL-C to
>>           interrupt a running script (small cherrypy app) works.
>>         * Using the standalone jar file with 2.5.2 and then using CTRL-C to
>>           interrupt a running script doesn't work.
>>
>>      NOTE I get similar behavior with a "normal" jython installation too
>>      (with the jython wrapper script)
>>
>>
>>
>> I have on OpenSuse 11.4 with Java  1.6.0_26 from Oracle and I don't
>> have this problem with Jython 2.5.2. Ctrl-C works well for me.
> Thanks for testing that out Pierre, you inspired me to test under
> Ubuntu  (with Open JDK 1.6) and that also works correctly too.
>
> Working:
>
>      java version "1.6.0_0"
>      OpenJDK  Runtime Environment (build 1.6.0_0-b11)
>      OpenJDK Client VM (build 1.6.0_0-b11, mixed mode, sharing)
>
> I also tested all 3 java versions that I happen to have installed.
> CTRL-C ignored (with Jython 2.5.2 but not 2.5.1):
>
>      java version "1.6.0_02"
>      Java(TM) SE Runtime Environment (build 1.6.0_02-b06)
>      Java HotSpot(TM) Client VM (build 1.6.0_02-b06, mixed mode, sharing)
>
>      java version "1.6.0"
>      Java(TM) SE Runtime Environment (build 1.6.0-b105)
>      Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)
>
>      java version "1.5.0_06"
>      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
>      Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode)
>
>
> It is looking Windows/Jython specific at this point.
>

As a follow up to this thread. I just re-tested the 2.5.x releases under
Windows 7 and 2.5.3b1 has the same problem, i.e. CTRL-C does not work
under Windows. Jython 2.5.1 is the "oldest" release where CTRL-C works.

Example:

    cd C:\jython2.5.3b1
    java -jar jython.jar -c "import
    SimpleHTTPServer;SimpleHTTPServer.test()"
    ... wait for it to serve then issue CTRL-C, nothing happens I have
    to kill java.exe in the tast listk


I've since found there may be a patch for this:

http://bugs.jython.org/issue1313
  (also related issue http://bugs.jython.org/issue1270 )

Chris


------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Jython-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jython-users
Reply | Threaded
Open this post in threaded view
|

Re: Odd CTRL-C behaviors with 2.5.x

Daniel Baktiar
I also have the same problem on Windows 7, Jython 2.5.2, JDK 1.6.0_31 when I run Django on Jython. 

On Tue, Apr 17, 2012 at 6:03 AM, Chris Clark <[hidden email]> wrote:
On Monday 2012-04-16 14:57 (-0700), Chris Clark
<[hidden email]> wrote:
> Pierre Thibault wrote:
>> 2011/6/27 Chris Clark<[hidden email]
>> <mailto:[hidden email]>>
>>
>>      I've an odd issue where:
>>
>>         * Using the standalone jar file with 2.5.1 and then using CTRL-C to
>>           interrupt a running script (small cherrypy app) works.
>>         * Using the standalone jar file with 2.5.2 and then using CTRL-C to
>>           interrupt a running script doesn't work.
>>
>>      NOTE I get similar behavior with a "normal" jython installation too
>>      (with the jython wrapper script)
>>
>>
>>
>> I have on OpenSuse 11.4 with Java  1.6.0_26 from Oracle and I don't
>> have this problem with Jython 2.5.2. Ctrl-C works well for me.
> Thanks for testing that out Pierre, you inspired me to test under
> Ubuntu  (with Open JDK 1.6) and that also works correctly too.
>
> Working:
>
>      java version "1.6.0_0"
>      OpenJDK  Runtime Environment (build 1.6.0_0-b11)
>      OpenJDK Client VM (build 1.6.0_0-b11, mixed mode, sharing)
>
> I also tested all 3 java versions that I happen to have installed.
> CTRL-C ignored (with Jython 2.5.2 but not 2.5.1):
>
>      java version "1.6.0_02"
>      Java(TM) SE Runtime Environment (build 1.6.0_02-b06)
>      Java HotSpot(TM) Client VM (build 1.6.0_02-b06, mixed mode, sharing)
>
>      java version "1.6.0"
>      Java(TM) SE Runtime Environment (build 1.6.0-b105)
>      Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)
>
>      java version "1.5.0_06"
>      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
>      Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode)
>
>
> It is looking Windows/Jython specific at this point.
>

As a follow up to this thread. I just re-tested the 2.5.x releases under
Windows 7 and 2.5.3b1 has the same problem, i.e. CTRL-C does not work
under Windows. Jython 2.5.1 is the "oldest" release where CTRL-C works.

Example:

   cd C:\jython2.5.3b1
   java -jar jython.jar -c "import
   SimpleHTTPServer;SimpleHTTPServer.test()"
   ... wait for it to serve then issue CTRL-C, nothing happens I have
   to kill java.exe in the tast listk


I've since found there may be a patch for this:

http://bugs.jython.org/issue1313
 (also related issue http://bugs.jython.org/issue1270 )

Chris


------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Jython-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jython-users


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Jython-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jython-users