Full-Text Assertion failed

Bug #928340 reported by William Candillon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Fix Released
Medium
Paul J. Lucas

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

Related branches

Changed in zorba:
milestone: none → 2.2
assignee: nobody → Paul J. Lucas (paul-lucas)
importance: Undecided → Critical
summary: - Full-Text Memory Error
+ Full-Text Assertion failed
Revision history for this message
Paul J. Lucas (paul-lucas) wrote :

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
Revision history for this message
William Candillon (wcandillon) wrote :

bin/zorba -f --thesaurus http://wordnet.princeton.edu:=/path/to/wordnet-en.zth -q /tmp/x.xq
Works fine for me too.

What about bin/zorba -q /tmp/x.xq -f?
You don't get the same error as I do?

Revision history for this message
Paul J. Lucas (paul-lucas) wrote :

When I execute that commend, yes, I get the same error. However, you never said how you executed the query in your original bug report.

Changed in zorba:
importance: Critical → Medium
Revision history for this message
Paul J. Lucas (paul-lucas) wrote :

Importance downgraded since, if you specify the necessary arguments, the query works just fine.

Changed in zorba:
importance: Medium → Critical
Revision history for this message
Paul J. Lucas (paul-lucas) wrote :

Are we going to keep changing the Importance back and forth all day?

Changed in zorba:
importance: Critical → Medium
status: Incomplete → In Progress
Revision history for this message
William Candillon (wcandillon) wrote :

It just that this is the first example in the full-text documentation and it fails in an epic manner so I have an hard time to understands how it's not critical but anyways...

Revision history for this message
Paul J. Lucas (paul-lucas) wrote :

It's position in the full-text documentation is irrelevant. It's not critical because: (1) there is no data loss, (2) if the user supplies the correct command-line arguments, it works correctly.

I submitted the fix (that you should review for approval), so the issue is moot.

Changed in zorba:
status: In Progress → Fix Committed
Changed in zorba:
status: Fix Committed → Fix Released
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.