Strings still in the pool from StaticContext

Bug #870347 reported by Rodolfo Ochoa
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Invalid
Undecided
Matthias Brantner

Bug Description

I'm having the following error:
i = 15 String http://www.foo.com is still in the pool
i = 137 String http://www.w3.org/2005/xquery-local-functions is still in the pool
Zorba Internal Fatal Error in C:\zorba\repo\xqj\src\store\naive\string_pool.cpp:42:"count == 0": condition failed: 2 strings remain in the string pool

the basic steps to reproduce are the following:

  void* aStore = zorba::StoreManager::getStore();
  Zorba* aZorba = Zorba::getInstance(lStore);
  StaticContext_t lContext = aZorba->createStaticContext();
  lContext->addNamespace("foo", "http://www.foo.com");
  XQuery_t aQuery = aZorba->compileQuery("<foo:e/>", lContext);
  aQuery->execute();
  lZorba->shutdown();
  zorba::StoreManager::shutdownStore(lStore);

Zorba crashes and report the error.

Revision history for this message
Rodolfo Ochoa (rodolfo-ochoa) wrote :
Revision history for this message
Rodolfo Ochoa (rodolfo-ochoa) wrote :

new code to reproduce

Changed in zorba:
assignee: nobody → Matthias Brantner (matthias-brantner)
Changed in zorba:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.