wx.Display crashes python on Solaris

Hi,

I've just recompiled wxPython 2.6.3.3 on Solaris 10, with python
2.4.3, GTK+2.6.10, after having installed a patch that gave me the
Xinerama libraries. I haven't done too much yet with wx.Display, but
have found a curiosity that worries me.

If I open PyCrust or PyShell, the following seems to work fine.

import wx
d = wx.Display()
d.GetGeometry()

wx.Rect(0, 0, 1280, 1024)

So far, so good.

If instead I open a command line python session and repeat the
commands, python crashes:
% python
python 2.4.3 ...
...
...

import wx
d = wx.Display()

segmentation fault
%

I then put the above code into a .py file and executed it inside the
Sun Studio debugger. The point of the crash is inside _misc_wrap.cpp,
static function _wrap_new_Display, where wxDisplay is instantiated:

result = (wxDisplay *)new wxDisplay(arg1);

arg1 is 0.

Could anyone help or explain?

Regards,
Chris Botos