Title: Static stderr and stdout variables not initialized in
Type: crash Severity: urgent
Components: Core Versions: Jython 2.7
Status: closed Resolution: invalid
Dependencies: Superseder:
Assigned To: Nosy List: klondenberg, santa4nt, zyasoft
Priority: Keywords:

Created on 2013-05-03.13:41:59 by klondenberg, last changed 2014-05-21.22:33:16 by zyasoft.

msg8006 (view) Author: Kai Londenberg (klondenberg) Date: 2013-05-03.13:41:59
In, there are the following two static variables which don't seem to get initialized anywhere:

public static StdoutWrapper stderr;
static StdoutWrapper stdout;

This can lead to NullPointerExceptions in PyException.printStackTrace and possibly elsewhere.
msg8036 (view) Author: Santoso Wijaya (santa4nt) Date: 2013-05-31.16:38:35
These seem to be initialized in PySystemState#initStaticFields():

        // Setup standard wrappers for stdout and stderr...
        Py.stderr = new StderrWrapper();
        Py.stdout = new StdoutWrapper();

(lines 959-61 in
msg8491 (view) Author: Jim Baker (zyasoft) Date: 2014-05-21.22:33:16
These are initialized, per msg8036
Date User Action Args
2014-05-21 22:33:16zyasoftsetstatus: open -> closed
resolution: invalid
messages: + msg8491
nosy: + zyasoft
2013-05-31 16:38:36santa4ntsetnosy: + santa4nt
messages: + msg8036
2013-05-03 13:41:59klondenbergcreate