Hi John, Thank you for your update. I will try to check the impact of this changes as soon as I will find some spare time for it - hopefully during next week.
Thanks Jan -----Original Message----- From: K. John Wu [mailto:[email protected]] Sent: Wednesday, June 23, 2010 7:09 AM To: FastBit Users Cc: Krivanek, Jan Subject: Re: [FastBit-users] Memory leak when selecting data and exception is thrown Hi, Jan, We have wrapped the raw pointers in ibis::table::select with auto_ptr and arrays of raw pointers in a set of scope guards (ibis::util::guard in src/util.h). Please let us know if they addresses the problem you've observed. Thanks for the report. John On 6/14/2010 10:53 AM, Krivanek, Jan wrote: > When I called FastBit queries form code that was running in infinite > loop (and executing requested queries), I eventually end up (bad_alloc) > exceptions in FileManager and huge amount of consumed memory. I tried to > track the problem down and found that exceptions from fileManager are > not caught on some places in code and so memory remains consumed. I > tried to fix the problem in > > ibis::table::select(const std::vector<const ibis::part*>& mylist, const > char *sel, const ibis::qExpr *cond) > > function that was being called by wrapping calls to > ibis::util::addIncoreData and final groupby() in try-catch and releasing > local buffers when exception throw. Fixing of this partially resolved > the issue, but I am still resolving this as some significant amount of > memory still remains unreleased and program still eventually fails. > > Thank you > > Jan Krivanek > > > > _______________________________________________ > FastBit-users mailing list > [email protected] > https://hpcrdm.lbl.gov/cgi-bin/mailman/listinfo/fastbit-users _______________________________________________ FastBit-users mailing list [email protected] https://hpcrdm.lbl.gov/cgi-bin/mailman/listinfo/fastbit-users
