Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault when importing expat from xml.parser #42225

Closed
jean-pierre24 mannequin opened this issue Jul 27, 2005 · 8 comments
Closed

Segmentation fault when importing expat from xml.parser #42225

jean-pierre24 mannequin opened this issue Jul 27, 2005 · 8 comments

Comments

@jean-pierre24
Copy link
Mannequin

jean-pierre24 mannequin commented Jul 27, 2005

BPO 1246405
Nosy @birkenfeld
Files
  • backtrace.txt: backtrace from gdb
  • valgrind.log: output of valgrind
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2006-08-13.02:20:47.000>
    created_at = <Date 2005-07-27.23:07:11.000>
    labels = ['expert-XML']
    title = 'Segmentation fault when importing expat from xml.parser'
    updated_at = <Date 2006-08-13.02:20:47.000>
    user = 'https://bugs.python.org/jean-pierre24'

    bugs.python.org fields:

    activity = <Date 2006-08-13.02:20:47.000>
    actor = 'sf-robot'
    assignee = 'none'
    closed = True
    closed_date = None
    closer = None
    components = ['XML']
    creation = <Date 2005-07-27.23:07:11.000>
    creator = 'jean-pierre24'
    dependencies = []
    files = ['1745', '1746']
    hgrepos = []
    issue_num = 1246405
    keywords = []
    message_count = 8.0
    messages = ['25878', '25879', '25880', '25881', '25882', '25883', '25884', '25885']
    nosy_count = 5.0
    nosy_names = ['nnorwitz', 'georg.brandl', 'sf-robot', 'bernhard', 'jean-pierre24']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue1246405'
    versions = ['Python 2.4']

    @jean-pierre24
    Copy link
    Mannequin Author

    jean-pierre24 mannequin commented Jul 27, 2005

    Hello,

    I have a strange segmentation fault when importing
    expat from xml.parsers in the following program (I
    removed all that is un-necessary to reproduce the bug,
    which is why the code may look odd).

    I've also posted this bug on wxPython bug lists because
    I'm not sure if it's related to Python or wxPython, but
    anyway the backtrace told me that the segmentation
    fault occurs when importing expat.

    import wx
    import wx.html
    
    class MainFrame(wx.Frame):
    def __init__(self, prnt):
    wx.Frame.__init__(self, parent=prnt)
    wx.html.HtmlWindow(wx.Window(self, -1), -1)
    print "debug 1"
    from xml.parsers import expat
    print "debug 2"
    
    class BoaApp(wx.App):
    def OnInit(self):
    wx.InitAllImageHandlers()
    MainFrame(None)
    return True
    
    app = BoaApp()

    The segmentation fault occurs between 'debug 1' and
    'debug 2'. If I try to remove anything else, it doesn't
    happen.
    I have confirmed the bug on SunOS 5.8, on linux Red Hat
    Enterprise Server 3 and linux Advanced Server 3.
    I'm working with Python 2.4.1 and wxPython 2.6.1.0
    Here is in attached file, the backtrace from gdb.

    Feel free to ask me any additional information...

    @jean-pierre24 jean-pierre24 mannequin closed this as completed Jul 27, 2005
    @jean-pierre24 jean-pierre24 mannequin added the topic-XML label Jul 27, 2005
    @jean-pierre24 jean-pierre24 mannequin closed this as completed Jul 27, 2005
    @jean-pierre24 jean-pierre24 mannequin added the topic-XML label Jul 27, 2005
    @nnorwitz
    Copy link
    Mannequin

    nnorwitz mannequin commented Oct 4, 2005

    Logged In: YES
    user_id=33168

    Can you provide a link to the wx bug report? Has anything
    happend with it?

    @jean-pierre24
    Copy link
    Mannequin Author

    jean-pierre24 mannequin commented Oct 4, 2005

    Logged In: YES
    user_id=1247525

    Link is :
    http://sourceforge.net/tracker/index.php?func=detail&aid=1246397&group_id=9863&atid=109863

    Unfortunately, absolutely nothing has happened since I
    reported the bug.

    @nnorwitz
    Copy link
    Mannequin

    nnorwitz mannequin commented Oct 5, 2005

    Logged In: YES
    user_id=33168

    I don't have the problem with Python 2.3.4 and wx 2.5.5.1.

    Are you able to try different versions of wxPython? I
    notice that wx 2.6.2 is available. Are you able to run
    under valgrind or purify?

    If you run under valgrind, be sure to specify
    --suppressions=Misc/valgrind-python.supp
    The file is in the Python distribution. You can download it
    through SourceForge ViewCVS.

    @jean-pierre24
    Copy link
    Mannequin Author

    jean-pierre24 mannequin commented Oct 6, 2005

    Logged In: YES
    user_id=1247525

    Yes I can try with different version of wx, but it will take
    time.
    Anyway for today here is in attachment the valgrind output
    on linux x86.

    @bernhard
    Copy link
    Mannequin

    bernhard mannequin commented Dec 1, 2005

    Logged In: YES
    user_id=2369

    Could this be the same problem as bug 1075984 ?
    URL:
    https://sourceforge.net/tracker/index.php?func=detail&aid=1075984&group_id=5470&atid=105470

    @birkenfeld
    Copy link
    Member

    Logged In: YES
    user_id=849994

    Patch 1295808 should have fixed this. Can you try it with
    Python 2.5b2?

    @sf-robot
    Copy link
    Mannequin

    sf-robot mannequin commented Aug 13, 2006

    Logged In: YES
    user_id=1312539

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant