Issue2626

classification
Title: Jython 2.5 interpreter is failing due to BufferOverflow Exception
Type: crash Severity: urgent
Components: Core Versions: Jython 2.5
Milestone: Jython 2.7.1
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: Megha, jeff.allen, stefan.richthofer, zyasoft
Priority: low Keywords:

Created on 2017-09-28.07:30:25 by Megha, last changed 2018-11-04.16:54:31 by jeff.allen.

Messages
msg11606 (view) Author: Megha (Megha) Date: 2017-09-28.07:30:24
Hi Team,


I'm facing BufferOverflow Exception when jython interpreter is trying to start.

Below is an excerpt of error.
-----------------------------------------------------------------
(2017-09-27 13:08:11,972) DEBUG [JMThread, Activity name:xakamahMSCmapping:activityId=60206,activityId=60206] (JythonInterpreter.java:227) - run() - JythonInterpreter.run()== Starting the Python Interpereter
(2017-09-27 13:08:11,996) DEBUG [JMThread, Activity name:xakamahMSCmapping:activityId=60206,activityId=60206] (JythonInterpreter.java:257) - Jython exception occured:Exception: <type 'java.nio.BufferOverflowException'>
java.nio.BufferOverflowException
Traceback (most recent call last):
  File "/opt/python/jpython/Lib/warnings.py", line 128, in warn_explicit
    showwarning(message, category, filename, lineno)

----------------------------------------------------------------


Please help on probable causes for the same.


Thanks
msg11607 (view) Author: Megha (Megha) Date: 2017-09-28.08:28:39
Your support is precious, thanks
msg11608 (view) Author: Stefan Richthofer (stefan.richthofer) Date: 2017-09-28.18:27:57
Megha, please provide more information:

- what version of Jython are you running?
- which system, which Java version?
- how did you launch Jython (paste command line please)?
- installed version or Jython-standalone?
- this doesn't look like the full stack trace. Can you provide it?
- ideally a script to reproduce the issue
msg11609 (view) Author: Megha (Megha) Date: 2017-09-29.12:41:05
Hi,

Thanks for your support in this case.

Please see the details, below.

Java version used: 

/opt/sun/jdk/java1.7.0/bin/java -version 
java version "1.7.0_51" 
Java(TM) SE Runtime Environment (build 1.7.0_51-b13) 
Java HotSpot(TM) Client VM (build 24.51-b03, mixed mode) 


OS details: 

uname -a 
SunOS atrcx2698 5.10 Generic_150401-31 i86pc i386 i86pc 


- what version of Jython are you running?
2.5.2
- how did you launch Jython (paste command line please)?
its getting called from a java class

- installed version or Jython-standalone?
NA
- this doesn't look like the full stack trace. Can you provide it?
I will upload as sson as I recieve

- ideally a script to reproduce the issue
NA

We would like to know the probable causes for the same, let me know if any details required.
msg11610 (view) Author: Stefan Richthofer (stefan.richthofer) Date: 2017-09-29.12:45:43
Please upgrade to recent Jython 2.7.1.
I'm afraid there won't be any fixes to older Jython versions.
msg11611 (view) Author: Stefan Richthofer (stefan.richthofer) Date: 2017-09-29.15:57:43
If the problem persists with Jython 2.7.1, we'll need more detailed steps to reproduce it. "its getting called from a java class" sounds like there is more to it than just "BufferOverflow Exception when jython interpreter is trying to start". A code sample that demonstrates what is actually going on will be crucial.
msg11612 (view) Author: Jeff Allen (jeff.allen) Date: 2017-09-29.17:52:39
Advancing to 2.5.3 is a possibility if the language changes in 2.7 are too much to take. I know this was used fairly widely.

Stefan is right that we don't have the team size to advance the 2.5 line with bugfixes. There was a 2.5.4rc but no official release.

Ideally you would be able to take advantage of all the amazing work that went into 2.7 (.0 or .1 according to the criticality of certain features).
History
Date User Action Args
2018-11-04 16:54:31jeff.allensetstatus: pending -> closed
2017-09-29 17:52:39jeff.allensetnosy: + zyasoft, jeff.allen
messages: + msg11612
2017-09-29 15:57:44stefan.richthofersetmessages: + msg11611
2017-09-29 13:26:35stefan.richthofersetpriority: low
status: open -> pending
title: Jython interpreter is failing due to BufferOverflow Exception -> Jython 2.5 interpreter is failing due to BufferOverflow Exception
milestone: Jython 2.7.1
2017-09-29 12:45:43stefan.richthofersetresolution: out of date
messages: + msg11610
2017-09-29 12:41:06Meghasetmessages: + msg11609
2017-09-28 18:27:58stefan.richthofersetnosy: + stefan.richthofer
messages: + msg11608
2017-09-28 08:28:39Meghasetmessages: + msg11607
2017-09-28 07:30:47Meghasetseverity: normal -> urgent
2017-09-28 07:30:25Meghacreate