Public bug reported:

Binary package hint: python-subversion

I have python-subversion 1.4.2dfsg1-2ubuntu5 installed on an AMD64
feisty box with all updates applied as of today.

Importing "libsvn.wc" in python 2.4 causes a segfault:

$ gdb python2.4
GNU gdb 6.6-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run -c 'import libsvn.wc'
Starting program: /usr/bin/python2.4 -c 'import libsvn.wc'
[Thread debugging using libthread_db enabled]
[New Thread 47166611236592 (LWP 19396)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 47166611236592 (LWP 19396)]
0x0000000000000000 in ?? ()
(gdb) bt
#0  0x0000000000000000 in ?? ()
#1  0x0000000000439463 in dict_dealloc (mp=0x92e3b0)
    at ../Objects/dictobject.c:766
#2  0x000000000041eca3 in instance_dealloc (inst=0x2ae5dd8bb5f0)
    at ../Objects/classobject.c:678
#3  0x00002ae5d7e6bfdc in _wrap_svn_wc_swig_init_asp_dot_net_hack (
    self=<value optimized out>, args=0x2ae5d43c7050)
    at 
/build/buildd/subversion-1.4.2dfsg1/subversion/bindings/swig/python/svn_wc.c:28065
#4  0x0000000000415690 in PyObject_Call (func=0x2ae5dd8b18d0, arg=0x0, 
    kw=0x2ae5dd8b18d0) at ../Objects/abstract.c:1795
#5  0x00000000004715a1 in PyEval_CallObjectWithKeywords (func=0x2ae5d7e3f2d8, 
    arg=0x2ae5d43c7050, kw=0x0) at ../Python/ceval.c:3435
#6  0x000000000046d684 in builtin_apply (self=<value optimized out>, 
    args=<value optimized out>) at ../Python/bltinmodule.c:100
#7  0x0000000000476dc9 in PyEval_EvalFrame (f=0x766f00)
    at ../Python/ceval.c:3568
#8  0x0000000000478286 in PyEval_EvalCodeEx (co=0x2ae5d7e32f80, 
    globals=<value optimized out>, locals=<value optimized out>, 
    args=0x758d00, argcount=0, kws=0x758d00, kwcount=0, defs=0x0, defcount=0, 
    closure=0x0) at ../Python/ceval.c:2741
#9  0x000000000047650a in PyEval_EvalFrame (f=0x758b70)
    at ../Python/ceval.c:3661
#10 0x0000000000478286 in PyEval_EvalCodeEx (co=0x2ae5d7e38030, 
    globals=<value optimized out>, locals=<value optimized out>, args=0x0, 
    argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0)
    at ../Python/ceval.c:2741
#11 0x0000000000478332 in PyEval_EvalCode (co=0x2ae5dd8b18d0, globals=0x0, 
    locals=0x2ae5dd8b18d0) at ../Python/ceval.c:484
#12 0x0000000000492a38 in PyImport_ExecCodeModuleEx (
    name=0x7fffd66fe880 "libsvn.wc", co=0x2ae5d7e38030, 
    pathname=0x7fffd66fc760 "/var/lib/python-support/python2.4/libsvn/wc.pyc")
    at ../Python/import.c:636
#13 0x0000000000493080 in load_source_module (name=0x7fffd66fe880 "libsvn.wc", 
    pathname=0x7fffd66fc760 "/var/lib/python-support/python2.4/libsvn/wc.pyc", 
    fp=<value optimized out>) at ../Python/import.c:915
#14 0x0000000000493bac in import_submodule (mod=0x2ae5d44b8558, 
    subname=0x7fffd66fe887 "wc", fullname=0x7fffd66fe880 "libsvn.wc")
    at ../Python/import.c:2276
#15 0x000000000049401c in load_next (mod=0x2ae5d44b8558, 
    altmod=0x2ae5d44b8558, p_name=<value optimized out>, 
    buf=0x7fffd66fe880 "libsvn.wc", p_buflen=0x7fffd66fe87c)
    at ../Python/import.c:2096
#16 0x000000000049427e in PyImport_ImportModuleEx (name=<value optimized out>, 
    globals=0x2ae5d43e7324, locals=<value optimized out>, fromlist=0x6fd580)
    at ../Python/import.c:1938
#17 0x000000000046d7b1 in builtin___import__ (self=<value optimized out>, 
    args=<value optimized out>) at ../Python/bltinmodule.c:45
#18 0x0000000000415690 in PyObject_Call (func=0x2ae5dd8b18d0, arg=0x0, 
    kw=0x2ae5dd8b18d0) at ../Objects/abstract.c:1795
#19 0x00000000004715a1 in PyEval_CallObjectWithKeywords (func=0x2ae5d43d3440, 
    arg=0x2ae5d43ccdb8, kw=0x0) at ../Python/ceval.c:3435
#20 0x00000000004752b7 in PyEval_EvalFrame (f=0x77f2d0)
    at ../Python/ceval.c:2020
#21 0x0000000000478286 in PyEval_EvalCodeEx (co=0x2ae5d4425880, 
    globals=<value optimized out>, locals=<value optimized out>, args=0x0, 
    argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0)
    at ../Python/ceval.c:2741
#22 0x0000000000478332 in PyEval_EvalCode (co=0x2ae5dd8b18d0, globals=0x0, 
    locals=0x2ae5dd8b18d0) at ../Python/ceval.c:484
#23 0x000000000049cad7 in PyRun_SimpleStringFlags (
    command=<value optimized out>, flags=<value optimized out>)
    at ../Python/pythonrun.c:1285
#24 0x00000000004122c7 in Py_Main (argc=1, argv=0x7fffd66ffe58)
    at ../Modules/main.c:481
#25 0x00002ae5d4e868e4 in __libc_start_main () from /lib/libc.so.6
#26 0x0000000000411b19 in _start ()
(gdb) frame 2
#2  0x000000000041eca3 in instance_dealloc (inst=0x2ae5dd8bb5f0)
    at ../Objects/classobject.c:678
678     ../Objects/classobject.c: No such file or directory.
        in ../Objects/classobject.c
(gdb) pyo inst
object  : <refcnt 0 at 0x2ae5dd8bb5f0>
type    : instance
refcount: 0
address : 0x2ae5dd8bb5f0
$1 = void
(gdb) pyo inst->in_class
object  : <class libsvn.core.apr_pool_t at 0x2ae5dd886b90>
type    : classobj
refcount: 4
address : 0x2ae5dd886b90
$2 = void

The module works correctly with python 2.5.

** Affects: subversion (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

-- 
segfault when importing libsvn.wc in python 2.4 on feisty/amd64
https://launchpad.net/bugs/91848

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to