[Xapian-tickets] [Xapian] #538: Python Bindings Segault

Xapian nobody at xapian.org
Mon Mar 14 02:07:04 GMT 2011


#538: Python Bindings Segault
---------------------+------------------------------------------------------
 Reporter:  dcolish  |       Owner:  olly
     Type:  defect   |      Status:  new 
 Priority:  normal   |   Milestone:      
Component:  Other    |     Version:      
 Severity:  normal   |   Blockedby:      
 Platform:  All      |    Blocking:      
---------------------+------------------------------------------------------
 When importing _xapian, the Python bindings segfault. Here's the output
 from valgrind. It's a little more useful than gdb's backtrace, but I'm
 still unsure why its happening there. All other tests in core indicate
 that this should work.
 {{{
 ==2484== Invalid free() / delete / delete[]
 ==2484==    at 0x10022D541: operator delete(void*)
 (vg_replace_malloc.c:387)
 ==2484==    by 0x100AC01E7: std::string::reserve(unsigned long) (in
 /usr/lib/libstdc++.6.0.9.dylib)
 ==2484==    by 0x1010D60D1: Xapian::Query::~Query() (in
 /Users/dcolish/local/xapian/lib/libxapian.22.dylib)
 ==2484==    by 0x1002538D3: __cxa_finalize (in /usr/lib/libSystem.B.dylib)
 ==2484==    by 0x1002537EB: exit (in /usr/lib/libSystem.B.dylib)
 ==2484==    by 0x1000014B8: _start (in
 /Users/dcolish/local/py27/bin/python)
 ==2484==    by 0x1000013D0: (below main) (in
 /Users/dcolish/local/py27/bin/python)
 ==2484==  Address 0x100ea27b0 is 0 bytes inside a block of size 26 free'd
 ==2484==    at 0x10022D541: operator delete(void*)
 (vg_replace_malloc.c:387)
 ==2484==    by 0x10128114F: DebugLogger::~DebugLogger() (in
 /Users/dcolish/local/xapian/lib/libxapian.22.dylib)
 ==2484==    by 0x1002538D3: __cxa_finalize (in /usr/lib/libSystem.B.dylib)
 ==2484==    by 0x1002537EB: exit (in /usr/lib/libSystem.B.dylib)
 ==2484==    by 0x1000014B8: _start (in
 /Users/dcolish/local/py27/bin/python)
 ==2484==    by 0x1000013D0: (below main) (in
 /Users/dcolish/local/py27/bin/python)
 ==2484==
 }}}

 In this process I also worked on bumping the swig bindings to 2.0.2.
 Python needed the attached patch to get it building.

-- 
Ticket URL: <http://trac.xapian.org/ticket/538>
Xapian <http://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list