Issue2258

classification
Title: StackOverflowError stacktrace is eaten up by Jython
Type: behaviour Severity: minor
Components: Core, Documentation Versions: Jython 2.7.2
Milestone:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: doublep, jeff.allen, zyasoft
Priority: low Keywords:

Created on 2015-01-19.10:50:27 by doublep, last changed 2020-06-02.17:41:33 by doublep.

Messages
msg9424 (view) Author: (doublep) Date: 2015-01-19.10:50:26
I had a bug in Java code that resulted in a stack overflow. However, this code was called from Jython, so the only message I received was "maximum recursion depth exceeded", with all further information silently removed. To understand what was going on, I had to catch StackOverflowError in Java code and print it.

Request: Jython should print the stacktrace in StackOverflowError, at least when it comes from Java code.
msg9427 (view) Author: Jim Baker (zyasoft) Date: 2015-01-19.16:43:03
It's a good idea. For now, maybe try in your Python code:

org.python.core.Options.showJavaExceptions = True
msg11752 (view) Author: Jeff Allen (jeff.allen) Date: 2018-03-06.20:02:38
Isn't that a better approach in any case, whatever the error, once you suspect faulty Java code? It should perhaps be better known.
msg13092 (view) Author: (doublep) Date: 2020-06-02.17:41:33
Bitten by it yet again. Setting 'showJavaException' does nothing here, perhaps because Jython is deeply built into a Java application and doesn't have direct access to stdout.
History
Date User Action Args
2020-06-02 17:41:33doublepsetmessages: + msg13092
versions: + Jython 2.7.2, - Jython 2.7
2018-03-06 20:02:38jeff.allensetpriority: low
nosy: + jeff.allen
messages: + msg11752
components: + Documentation
milestone: Jython 2.7.2 ->
2015-12-29 23:43:35zyasoftsetmilestone: Jython 2.7.1 -> Jython 2.7.2
2015-04-20 21:12:26zyasoftsetmilestone: Jython 2.7.1
versions: + Jython 2.7, - Jython 2.5
2015-01-19 16:43:03zyasoftsetnosy: + zyasoft
messages: + msg9427
2015-01-19 10:50:27doublepcreate