Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 1456620 Details for
Bug 1598250
libxml2-python segfault after doc.freeDoc()
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
backtrace
coredump.txt (text/plain), 9.84 KB, created by
Matěj Cepl
on 2018-07-04 22:15:06 UTC
(
hide
)
Description:
backtrace
Filename:
MIME Type:
Creator:
Matěj Cepl
Created:
2018-07-04 22:15:06 UTC
Size:
9.84 KB
patch
obsolete
>matej@mitmanek: ~$ gdb python >GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-110.el7 >Copyright (C) 2013 Free Software Foundation, Inc. >License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> >This is free software: you are free to change and redistribute it. >There is NO WARRANTY, to the extent permitted by law. Type "show copying" >and "show warranty" for details. >This GDB was configured as "x86_64-redhat-linux-gnu". >For bug reporting instructions, please see: ><http://www.gnu.org/software/gdb/bugs/>... >Reading symbols from /usr/bin/python2.7...Reading symbols from /usr/lib/debug/usr/bin/python2.7.debug...done. >done. >(gdb) run repro.py >Starting program: /usr/bin/python repro.py >[Thread debugging using libthread_db enabled] >Using host libthread_db library "/lib64/libthread_db.so.1". ><?xml version="1.0"?> ><doc><foo/></doc> > > >Program received signal SIGSEGV, Segmentation fault. >0x00007ffff03f970b in libxml_serializeNode (self=<optimized out>, args=<optimized out>) > at libxml.c:2974 >2974 if ((doc == NULL) || (doc->type == XML_DOCUMENT_NODE)) { >(gdb) t a a bt > >Thread 1 (Thread 0x7ffff7fc7740 (LWP 17359)): >#0 0x00007ffff03f970b in libxml_serializeNode (self=<optimized out>, > args=<optimized out>) at libxml.c:2974 >#1 0x00007ffff7af3cf0 in call_function (oparg=<optimized out>, pp_stack=0x7fffffffc300) > at /usr/src/debug/Python-2.7.5/Python/ceval.c:4408 >#2 PyEval_EvalFrameEx ( > f=f@entry=Frame 0x7ffff065c050, for file /usr/lib64/python2.7/site-packages/libxml2.py, line 408, in serialize (self=<xmlDoc(_o=<PyCapsule at remote 0x7ffff7e3c5a0>) at remote 0x7ffff7e33cb0>, encoding=None, format=0), throwflag=throwflag@entry=0) > at /usr/src/debug/Python-2.7.5/Python/ceval.c:3040 >#3 0x00007ffff7af603d in PyEval_EvalCodeEx (co=<optimized out>, globals=<optimized out>, > locals=locals@entry=0x0, args=<optimized out>, argcount=1, kws=0x7ffff07f0538, > kwcount=0, defs=0x7ffff0658f50, defcount=2, closure=closure@entry=0x0) > at /usr/src/debug/Python-2.7.5/Python/ceval.c:3640 >#4 0x00007ffff7af353c in fast_function (nk=<optimized out>, na=<optimized out>, > n=<optimized out>, pp_stack=0x7fffffffc510, func=<optimized out>) > at /usr/src/debug/Python-2.7.5/Python/ceval.c:4504 >#5 call_function (oparg=<optimized out>, pp_stack=0x7fffffffc510) > at /usr/src/debug/Python-2.7.5/Python/ceval.c:4429 >#6 PyEval_EvalFrameEx ( > f=f@entry=Frame 0x7ffff07f03b0, for file /usr/lib64/python2.7/site-packages/libxml2.py, line 291, in __str__ (self=<xmlDoc(_o=<PyCapsule at remote 0x7ffff7e3c5a0>) at remote 0x7ffff7e33cb0>), throwflag=throwflag@entry=0) > at /usr/src/debug/Python-2.7.5/Python/ceval.c:3040 >#7 0x00007ffff7af603d in PyEval_EvalCodeEx (co=<optimized out>, globals=<optimized out>, > locals=locals@entry=0x0, args=args@entry=0x7ffff7e29228, argcount=1, > kws=kws@entry=0x0, kwcount=kwcount@entry=0, defs=defs@entry=0x0, > defcount=defcount@entry=0, closure=0x0) > at /usr/src/debug/Python-2.7.5/Python/ceval.c:3640 >#8 0x00007ffff7a7f978 in function_call (func=<function at remote 0x7ffff0659938>, > arg=(<xmlDoc(_o=<PyCapsule at remote 0x7ffff7e3c5a0>) at remote 0x7ffff7e33cb0>,), > kw=0x0) at /usr/src/debug/Python-2.7.5/Objects/funcobject.c:526 >#9 0x00007ffff7a5aa63 in PyObject_Call ( > func=func@entry=<function at remote 0x7ffff0659938>, > arg=arg@entry=(<xmlDoc(_o=<PyCapsule at remote 0x7ffff7e3c5a0>) at remote 0x7ffff7e33cb0>,), kw=kw@entry=0x0) at /usr/src/debug/Python-2.7.5/Objects/abstract.c:2529 >#10 0x00007ffff7a69a55 in instancemethod_call (func=<function at remote 0x7ffff0659938>, > arg=(<xmlDoc(_o=<PyCapsule at remote 0x7ffff7e3c5a0>) at remote 0x7ffff7e33cb0>,), > kw=0x0) at /usr/src/debug/Python-2.7.5/Objects/classobject.c:2602 >#11 0x00007ffff7a5aa63 in PyObject_Call ( > func=func@entry=<instancemethod at remote 0x7ffff7f33b40>, arg=arg@entry=(), > kw=<optimized out>) at /usr/src/debug/Python-2.7.5/Objects/abstract.c:2529 >#12 0x00007ffff7aec8f7 in PyEval_CallObjectWithKeywords ( > func=func@entry=<instancemethod at remote 0x7ffff7f33b40>, arg=(), arg@entry=0x0, > kw=kw@entry=0x0) at /usr/src/debug/Python-2.7.5/Python/ceval.c:4277 >#13 0x00007ffff7a68cb1 in instance_str (inst=0x7ffff7e33cb0) > at /usr/src/debug/Python-2.7.5/Objects/classobject.c:955 >#14 0x00007ffff7a95efa in _PyObject_Str ( > v=<xmlDoc(_o=<PyCapsule at remote 0x7ffff7e3c5a0>) at remote 0x7ffff7e33cb0>) > at /usr/src/debug/Python-2.7.5/Objects/object.c:430 >---Type <return> to continue, or q <return> to quit--- >#15 0x00007ffff7a95fca in PyObject_Str (v=<optimized out>) > at /usr/src/debug/Python-2.7.5/Objects/object.c:451 >#16 0x00007ffff7a96165 in internal_print ( > op=op@entry=<xmlDoc(_o=<PyCapsule at remote 0x7ffff7e3c5a0>) at remote 0x7ffff7e33cb0>, fp=0x7ffff70e4400 <_IO_2_1_stdout_>, flags=flags@entry=1, nesting=nesting@entry=0) > at /usr/src/debug/Python-2.7.5/Objects/object.c:303 >#17 0x00007ffff7a961d7 in PyObject_Print ( > op=op@entry=<xmlDoc(_o=<PyCapsule at remote 0x7ffff7e3c5a0>) at remote 0x7ffff7e33cb0>, fp=<optimized out>, flags=flags@entry=1) > at /usr/src/debug/Python-2.7.5/Objects/object.c:330 >#18 0x00007ffff7a786eb in file_PyObject_Print (flags=1, f=0x7ffff7fa9150, > op=<xmlDoc(_o=<PyCapsule at remote 0x7ffff7e3c5a0>) at remote 0x7ffff7e33cb0>) > at /usr/src/debug/Python-2.7.5/Objects/fileobject.c:110 >#19 PyFile_WriteObject ( > v=v@entry=<xmlDoc(_o=<PyCapsule at remote 0x7ffff7e3c5a0>) at remote 0x7ffff7e33cb0>, > f=f@entry=<file at remote 0x7ffff7fa9150>, flags=flags@entry=1) > at /usr/src/debug/Python-2.7.5/Objects/fileobject.c:2588 >#20 0x00007ffff7af1c80 in PyEval_EvalFrameEx ( > f=f@entry=Frame 0x7ffff7fb0dd0, for file repro.py, line 5, in <module> (), > throwflag=throwflag@entry=0) at /usr/src/debug/Python-2.7.5/Python/ceval.c:2050 >#21 0x00007ffff7af603d in PyEval_EvalCodeEx (co=co@entry=0x7ffff7eaf1b0, > globals=globals@entry={'__builtins__': <module at remote 0x7ffff7f87b08>, 'libxml2': <module at remote 0x7ffff06461a0>, '__file__': 'repro.py', '__package__': None, 'doc': <xmlDoc(_o=<PyCapsule at remote 0x7ffff7e3c5a0>) at remote 0x7ffff7e33cb0>, '__name__': '__main__', '__doc__': None}, > locals=locals@entry={'__builtins__': <module at remote 0x7ffff7f87b08>, 'libxml2': <module at remote 0x7ffff06461a0>, '__file__': 'repro.py', '__package__': None, 'doc': <xmlDoc(_o=<PyCapsule at remote 0x7ffff7e3c5a0>) at remote 0x7ffff7e33cb0>, '__name__': '__main__', '__doc__': None}, args=args@entry=0x0, argcount=argcount@entry=0, kws=kws@entry=0x0, > kwcount=kwcount@entry=0, defs=defs@entry=0x0, defcount=defcount@entry=0, > closure=closure@entry=0x0) at /usr/src/debug/Python-2.7.5/Python/ceval.c:3640 >#22 0x00007ffff7af6142 in PyEval_EvalCode (co=co@entry=0x7ffff7eaf1b0, > globals=globals@entry={'__builtins__': <module at remote 0x7ffff7f87b08>, 'libxml2': <module at remote 0x7ffff06461a0>, '__file__': 'repro.py', '__package__': None, 'doc': <xmlDoc(_o=<PyCapsule at remote 0x7ffff7e3c5a0>) at remote 0x7ffff7e33cb0>, '__name__': '__main__', '__doc__': None}, > locals=locals@entry={'__builtins__': <module at remote 0x7ffff7f87b08>, 'libxml2': <module at remote 0x7ffff06461a0>, '__file__': 'repro.py', '__package__': None, 'doc': <xmlDoc(_o=<PyCapsule at remote 0x7ffff7e3c5a0>) at remote 0x7ffff7e33cb0>, '__name__': '__main__', '__doc__': None}) at /usr/src/debug/Python-2.7.5/Python/ceval.c:689 >#23 0x00007ffff7b0f57f in run_mod (mod=<optimized out>, > filename=filename@entry=0x7fffffffd56a "repro.py", > globals=globals@entry={'__builtins__': <module at remote 0x7ffff7f87b08>, 'libxml2': <module at remote 0x7ffff06461a0>, '__file__': 'repro.py', '__package__': None, 'doc': <xmlDoc(_o=<PyCapsule at remote 0x7ffff7e3c5a0>) at remote 0x7ffff7e33cb0>, '__name__': '__main__', '__doc__': None}, > locals=locals@entry={'__builtins__': <module at remote 0x7ffff7f87b08>, 'libxml2': <module at remote 0x7ffff06461a0>, '__file__': 'repro.py', '__package__': None, 'doc': <xmlDoc(_o=<PyCapsule at remote 0x7ffff7e3c5a0>) at remote 0x7ffff7e33cb0>, '__name__': '__main__', '__doc__': None}, flags=flags@entry=0x7fffffffce20, arena=arena@entry=0x6baa80) > at /usr/src/debug/Python-2.7.5/Python/pythonrun.c:1374 >---Type <return> to continue, or q <return> to quit--- >#24 0x00007ffff7b1073e in PyRun_FileExFlags (fp=fp@entry=0x6cff30, > filename=filename@entry=0x7fffffffd56a "repro.py", start=start@entry=257, > globals=globals@entry={'__builtins__': <module at remote 0x7ffff7f87b08>, 'libxml2': <module at remote 0x7ffff06461a0>, '__file__': 'repro.py', '__package__': None, 'doc': <xmlDoc(_o=<PyCapsule at remote 0x7ffff7e3c5a0>) at remote 0x7ffff7e33cb0>, '__name__': '__main__', '__doc__': None}, > locals=locals@entry={'__builtins__': <module at remote 0x7ffff7f87b08>, 'libxml2': <module at remote 0x7ffff06461a0>, '__file__': 'repro.py', '__package__': None, 'doc': <xmlDoc(_o=<PyCapsule at remote 0x7ffff7e3c5a0>) at remote 0x7ffff7e33cb0>, '__name__': '__main__', '__doc__': None}, closeit=closeit@entry=1, flags=flags@entry=0x7fffffffce20) > at /usr/src/debug/Python-2.7.5/Python/pythonrun.c:1360 >#25 0x00007ffff7b119c9 in PyRun_SimpleFileExFlags (fp=fp@entry=0x6cff30, > filename=filename@entry=0x7fffffffd56a "repro.py", closeit=closeit@entry=1, > flags=flags@entry=0x7fffffffce20) > at /usr/src/debug/Python-2.7.5/Python/pythonrun.c:952 >#26 0x00007ffff7b11ee3 in PyRun_AnyFileExFlags (fp=fp@entry=0x6cff30, > filename=filename@entry=0x7fffffffd56a "repro.py", closeit=closeit@entry=1, > flags=flags@entry=0x7fffffffce20) > at /usr/src/debug/Python-2.7.5/Python/pythonrun.c:756 >#27 0x00007ffff7b22b7f in Py_Main (argc=<optimized out>, argv=<optimized out>) > at /usr/src/debug/Python-2.7.5/Modules/main.c:640 >#28 0x00007ffff6d3f3d5 in __libc_start_main (main=0x400640 <main>, argc=2, > ubp_av=0x7fffffffcfe8, init=<optimized out>, fini=<optimized out>, > rtld_fini=<optimized out>, stack_end=0x7fffffffcfd8) at ../csu/libc-start.c:274 >#29 0x000000000040066e in _start () >(gdb)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1598250
: 1456620