[CWB] Segmentation fault

Stefan Evert stefanML at collocations.de
Thu Apr 23 10:49:56 CEST 2020



> On 22 Apr 2020, at 19:14, Maarten Janssen <maartenpt at gmail.com> wrote:
> 
> I am trying to create a TEITOK installer that installs all the required dependencies automatically, but when testing system, I ran into this weird issue with issue with CWB: on Debian, when I run the standard install script of CWB, it gives me a segmentation fault; and when trying to pinpoint the problem, running it with valgrind avoids the problem altogether, and it happily starts cqp -e - but it somehow does give a very strange type of output on a simple [word=".*"]:
> 
> 0:                           <(null)This(null)> is my first little TEITO
> 1:                      This <(null)is(null)> my first little TEITOK c
> 
> Did anybody see that problem before, and/or have any clue how to solve it

Wild guess after a quick look at the source code: the (null) values are probably where CQP tries to emit terminal escapes for highlighting. 

If this is the case, then something must be wrong with your termcap library, especially if it also segfaults during compilation.  CQP does check for NULL values and changes them to empty strings, so it's a bit mysterious how this would lead to a segfault.

Quick test: in CQP enter

	set h off;

before carrying out the search and see if you still get a segfault / NULL values.  You can also run CQP in child mode (cqp -c), but keep in mind that autoshow is off then and you need to "cat;" after the query do display results.

Best,
Stefan



More information about the CWB mailing list