Bug #18836 fulltext parser plugin is called recursively
Submitted: 6 Apr 2006 8:49 Modified: 10 Apr 2006 20:02
Reporter: Sergei Golubchik Email Updates:
Status: Closed Impact on me:
Category:MySQL Server: User-defined functions ( UDF ) Severity:S3 (Non-critical)
Version:5.1 OS:
Assigned to: Sergei Golubchik CPU Architecture:Any

[6 Apr 2006 8:49] Sergei Golubchik
Fulltext parser plugin is called recursively: ftb_find_relevance* calls ftb_check_phrase*.
But the ftb_check_phrase* uses the same param as ftb_find_relevance*.
It means that when the latter wants to continue, the former has garbled the state of the parser plugin.

How to repeat:

Suggested fix:
Use different param's structures for ftb_find_relevance* and ftb_check_phrase*.
[6 Apr 2006 14:01] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

[10 Apr 2006 18:45] Paul Dubois
Need the three-part version number that the fix was
pushed to.  Thanks.
[10 Apr 2006 19:57] Sergei Golubchik

Let's say "for fulltext search in a boolean mode, and when fulltext parser plugin was used, a MYSQL_FTPARSER_PARAM::ftparser_state could've been corrupted by recursive calls to the plugin"
[10 Apr 2006 20:02] Paul Dubois
Noted in 5.1.9 changelog, using Serg's comment. :-)