[Xapian-discuss] Python bindings not freeing memory during indexing

Olly Betts olly at survex.com
Wed Sep 5 14:41:11 BST 2007


On Wed, Sep 05, 2007 at 10:28:35AM +0100, Bill Crawford wrote:
> On Tuesday 04 September 2007 01:10:19 Olly Betts wrote:
> > That's not a failed function call - it's the result of called e.what()
> > when e is of type std::bad_alloc (I'm not quite sure why it has an
> > "St9" prefix - it's not just C++ name mangling).
> 
> The St is std:: and the 9 is required to indicate the length of the bad_alloc.

Ah, it just needs a "_Z" prefix to be a C++ mangled name:

$ echo _ZSt9bad_alloc|c++filt
std::bad_alloc

Cheers,
    Olly



More information about the Xapian-discuss mailing list