#254 Boa Segment fault

open
nobody
None
5
2005-07-17
2005-07-17
Albatros
No

I had this problem with: linux fedora 3, boa 4.0<=>4.4,
wxPython 2.5.5<=>2.6.1, python 2.4.1 (not with python
2.3.5, it works fine).

I start boa, but It fails showing:
"""
[......]
importing Models.XMLSupport
importing ZopeLib.ZopeEditorModels
executing plug-ins...
importing ZopeLib.ZopeViews
Segmentation fault
"""

In particular with Boa 4.4: last line of Boa.trace is:"""
/usr/lib/python2.4/xml/parsers/expat.py|1|154726844|call|
"""

Discussion

  • Albatros
    Albatros
    2005-07-17

    Logged In: YES
    user_id=1314056

    I changed some lines in ExternalLib/xmlrpclib.py (around
    line 500) in order to avoid the importing of "expat"
    """
    try:
    raise ImportError ## here my line
    from xml.parsers import expat
    if not hasattr(expat, "ParserCreate"):
    raise ImportError
    except ImportError:
    """

    I restarted Boa, but it show """
    [....]
    importing Explorers.ZipExplorer
    importing Explorers.FTPExplorer
    importing Explorers.DAVExplorer
    Segmentation fault
    """
    And last line of Boa.trace is """
    /usr/lib/python2.4/xml/parsers/expat.py|1|171787420|call|
    """
    (strange, it is very similar to the previous one! Note I had
    removed Boa.trace before restarting.)

    So I removed Explorers/DAVExplorer.* and magically Boa
    starts!!!!!!

    During the booting, Boa says that "DAVExplorer not
    installed... " and "One or more transports could not be
    loaded..." but it doesnt seem to be a problem

    I use Boa with zope2.7: after started a connection, it says
    """
    /usr/lib/python2.4/xmllib.py:9: DeprecationWarning: The
    xmllib module is obsolete. Use xml.sax instead.
    warnings.warn("The xmllib module is obsolete. Use xml.sax
    instead.", DeprecationWarning)"""
    [It is a warnig message stored in xmllib.py]

    Always an xml problems... but it fuctions!

    I home this post can help you

     
  • Albatros
    Albatros
    2005-07-17

    Logged In: YES
    user_id=1314056

    I have forgotten the follow details of last "experiment":
    boa4.4 from cvs
    wxpython 2.6.1
    /usr/bin/python is linked to python2.4
    python2.3 installed too

     
  • Logged In: NO

    This helps, thanks!

     
  • Logged In: NO

    If the pop-up error about DAVExplorer annoys you, go into
    plug-ins (in preferences) and remove it as the window says.
    By doing this, it will not appear again.