Bugs item #1649059, was opened at 2007-01-31 18:35 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1649059&group_id=56967
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: PF/compiler Group: Pathfinder CVS Head Status: Open Resolution: None Priority: 5 Private: No Submitted By: Jan Rittinger (tsheyar) Assigned to: Nobody/Anonymous (nobody) Summary: XQ: global variables in embedded pf not resetted Initial Comment: I now file a bug report based on Jan Flokstra report on problems with memory allocation (see: http://sourceforge.net/mailarchive/forum.php?thread_id=31561760&forum_id=39803) His problem (and also mine) is that mem_realloc is called with a NULL pointer. (The wrong handling of this NULL pointer should be another bug report.) This realloc is called by PFarray_at() and PFarray_at() itself is called with a PFarray that contains only garbage. The reason for this PFarray to contain only garbage is that it is initialized only if the variable that stores the reference is set to NULL. This is however not the case when pf is called a second time without stopping (e.g. using MapiClient) as the variable itself is initialized globally to NULL. While a fix seems rather easy I opened a bug report instead as this might be not the only place where global variables are initialized globally. Perhaps Peters suggestion to run pf in a separate thread might be a good alternative to avoid such problems and to keep Mserver alive even if pf crashes. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1649059&group_id=56967 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Monetdb-bugs mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/monetdb-bugs
