It's not clear where you got "memory error" from since those words never appear in the output. However, it clearly says "assertion failed". Without line numbers in the output, it's virtually impossible to know where the assertion failed. It would be better if you disabled the auto dump and instead made it dump a proper core.
That said, the query works fine for me: bin/zorba -f --thesaurus http://wordnet.princeton.edu:=/path/to/wordnet- en.zth -q /tmp/x.xq where x.xq contains the query above. ** Changed in: zorba Status: New => Incomplete -- You received this bug notification because you are a member of Zorba Coders, which is the registrant for Zorba. https://bugs.launchpad.net/bugs/928340 Title: Full-Text Assertion failed Status in Zorba - The XQuery Processor: Incomplete Bug description: The following query: let $x := <msg>affluent man</msg> return $x contains text "wealthy" using thesaurus at "http://wordnet.princeton.edu" Returns <?xml version="1.0" encoding="UTF-8"?> 0 libzorba_simplestore.2.1.0.dylib 0x0000000107813f8c _ZN5zorba16assertion_failedEPKcS1_i + 60 1 libzorba_simplestore.2.1.0.dylib 0x0000000107ca37e4 _ZN5zorba18ftcontains_visitor16lookup_thesaurusERKNS_14ftthesaurus_idERKNS_7rstringINS_15rstring_classes3repINS_10atomic_intESt11char_traitsIcESaIcEEEEERKNS_7FTTokenERSt4listINS_8rchandleINS_15FTTokenIteratorEEESaISL_EE + 440 2 libzorba_simplestore.2.1.0.dylib 0x0000000107ca3d36 _ZN5zorba18ftcontains_visitor22apply_thesaurus_optionEPKNS_18ftthesaurus_optionERKNS_7rstringINS_15rstring_classes3repINS_10atomic_intESt11char_traitsIcESaIcEEEEERKNS_7FTTokenERSt4listINS_8rchandleINS_15FTTokenIteratorEEESaISL_EEb + 180 3 libzorba_simplestore.2.1.0.dylib 0x0000000107ca529a _ZN5zorba18ftcontains_visitor28apply_query_tokens_as_phraseERNS_15FTTokenIteratorEjPKNS_5store4ItemERKNS_15ftmatch_optionsERKNS_16ft_token_matcherERSt4listINS_8ft_matchESaISE_EE + 494 4 libzorba_simplestore.2.1.0.dylib 0x0000000107ca65f4 _ZN5zorba18ftcontains_visitor20apply_ftwords_phraseERSt4listINS_8rchandleINS_15FTTokenIteratorEEESaIS4_EEjPKNS_5store4ItemERKNS_15ftmatch_optionsERKNS_16ft_token_matcherERS1_INS_8ft_matchESaISI_EE + 90 5 libzorba_simplestore.2.1.0.dylib 0x0000000107ca5c0f _ZN5zorba18ftcontains_visitor17apply_ftwords_anyERSt4listINS_8rchandleINS_15FTTokenIteratorEEESaIS4_EEjPKNS_5store4ItemERKNS_15ftmatch_optionsERKNS_16ft_token_matcherERS1_INS_8ft_matchESaISI_EE + 189 6 libzorba_simplestore.2.1.0.dylib 0x0000000107ca6b6e _ZN5zorba18ftcontains_visitor13apply_ftwordsERSt4listINS_8rchandleINS_15FTTokenIteratorEEESaIS4_EEjPKNS_5store4ItemENS_14ft_anyall_mode4typeERKNS_15ftmatch_optionsERS1_INS_8ft_matchESaISH_EE + 336 7 libzorba_simplestore.2.1.0.dylib 0x0000000107ca9ccc _ZN5zorba18ftcontains_visitor9end_visitERNS_7ftwordsE + 532 8 libzorba_simplestore.2.1.0.dylib 0x00000001076dad30 _ZN5zorba7ftwords6acceptERNS_14ftnode_visitorE + 96 9 libzorba_simplestore.2.1.0.dylib 0x00000001076d9d4f _ZN5zorba13ftwords_times6acceptERNS_14ftnode_visitorE + 59 10 libzorba_simplestore.2.1.0.dylib 0x00000001076d9aea _ZN5zorba22ftprimary_with_options6acceptERNS_14ftnode_visitorE + 56 11 libzorba_simplestore.2.1.0.dylib 0x00000001076daf9c _ZN5zorba11ftselection6acceptERNS_14ftnode_visitorE + 60 12 libzorba_simplestore.2.1.0.dylib 0x0000000107caf347 _ZNK5zorba18FTContainsIterator8nextImplERNS_5store10ItemHandleINS1_4ItemEEERNS_9PlanStateE + 421 13 libzorba_simplestore.2.1.0.dylib 0x0000000107cadff9 _ZNK5zorba7BatcherINS_18FTContainsIteratorEE11produceNextERNS_5store10ItemHandleINS3_4ItemEEERNS_9PlanStateE + 9 14 libzorba_simplestore.2.1.0.dylib 0x0000000107b50450 _ZN5zorba11PlanWrapper4nextERNS_5store10ItemHandleINS1_4ItemEEE + 104 15 libzorba_simplestore.2.1.0.dylib 0x00000001075788a8 _ZN5zorba10serializer9serializeENS_8rchandleINS_5store8IteratorEEERSoPNS_19SAX2_ContentHandlerE + 728 16 libzorba_simplestore.2.1.0.dylib 0x0000000107578a28 _ZN5zorba10serializer9serializeENS_8rchandleINS_5store8IteratorEEERSo + 62 17 libzorba_simplestore.2.1.0.dylib 0x00000001075303aa _ZN5zorba10XQueryImpl9serializeERSoRNS_8rchandleINS_11PlanWrapperEEEPK23Zorba_SerializerOptions + 142 18 libzorba_simplestore.2.1.0.dylib 0x00000001075305f4 _ZN5zorba10XQueryImpl7executeERSoPK23Zorba_SerializerOptions + 428 19 zorba 0x000000010750fb66 _Z17compileAndExecutePN5zorba5ZorbaERK18ZorbaCMDPropertiesRNS_8SmartPtrINS_13StaticContextEEERKSsRSiRSoR10TimingInfo + 1318 20 zorba 0x0000000107511640 main + 3792 21 zorba 0x000000010750e794 start + 52 22 ??? 0x0000000000000004 0x0 + 4 Zorba error [zerr:ZXQP0002]: "thesaurus": assertion failed To manage notifications about this bug go to: https://bugs.launchpad.net/zorba/+bug/928340/+subscriptions -- Mailing list: https://launchpad.net/~zorba-coders Post to : zorba-coders@lists.launchpad.net Unsubscribe : https://launchpad.net/~zorba-coders More help : https://help.launchpad.net/ListHelp