[CWB] CQP crashes on group query

Stephanie Evert stefanML at collocations.de
Fri Sep 2 20:46:58 CEST 2022


Hi Josep,

which version of CQP are you running? (i.e., what does "cqp -v" say?)  Can you reproduce it on a different corpus or with a slightly different query?

This is a very basic use of the "group" command, so it shoudn't trigger any unnoticed bugs.  However, your indexed corpus might be damaged and thus causing the crash.

("group" and "count" use very different algorithms, so it's not surprising that only one of them crashes)

Best,
Stephanie



> On 2 Sep 2022, at 12:33, Josep M. Fontana <josepm.fontana at upf.edu> wrote:
> 
> Hi there,
> 
> I'm experiencing crashes when I try to do a group query. 
> 
> So, this query:
> 
> > search1 = [(xpos="A.*") & (word!="[Ss][ae]n[ty].*")][xpos="N.*"]; 
> > group search1 match lemma cut 100; 
> 
> Produces the error message.
> 
> "Segmentation fault (core dumped)" 
> 
> If I do, this, however:
> 
> > count search1 by lemma;
> 
> everything seems to work perfectly. 
> 
> Here are the last lines in the debug output before crashing:
> 
> 
> Reducing via rule 112 (line 723),  -> OptExpansion
> state stack now 0 2 8 35 112 198 282 351
> Entering state 410
> Next token is 59 (';')
> Reducing via rule 51 (line 451),  -> OptionalRedir
> state stack now 0 2 8 35 112 198 282 351 410
> Entering state 445
> Reducing via rule 110 (line 713), GROUP_SYM CID Anchor ID CutStatement OptExpansion OptionalRedir  -> GroupCmd
> Segmentation fault (core dumped)
> 
> Any idea what the problem might be? Any help will be greatly appreciated.
> 
> Josep M.
> 
> 
> _______________________________________________
> CWB mailing list
> CWB at sslmit.unibo.it
> http://liste.sslmit.unibo.it/mailman/listinfo/cwb



More information about the CWB mailing list