<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.apple-tab-span
        {mso-style-name:apple-tab-span;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Verdana",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:377778326;
        mso-list-type:hybrid;
        mso-list-template-ids:33466512 134807553 134807555 134807557 134807553 134807555 134807557 134807553 134807555 134807557;}
@list l0:level1
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Symbol;}
@list l0:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level3
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
@list l0:level4
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Symbol;}
@list l0:level5
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level6
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
@list l0:level7
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Symbol;}
@list l0:level8
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level9
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US">I’ve reproduced this, minimal steps:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<ul style="margin-top:0cm" type="disc">
<li class="MsoListParagraph" style="color:#1F497D;margin-left:0cm;mso-list:l0 level1 lfo1">
<span style="font-size:10.0pt;font-family:"Verdana",sans-serif;mso-fareast-language:EN-US">download the 3.0.0 distribution tar.gz file for Linux x64<o:p></o:p></span></li><li class="MsoListParagraph" style="color:#1F497D;margin-left:0cm;mso-list:l0 level1 lfo1">
<span style="font-size:10.0pt;font-family:"Verdana",sans-serif;mso-fareast-language:EN-US">extract only the CQP binary and place into any folder<o:p></o:p></span></li><li class="MsoListParagraph" style="color:#1F497D;margin-left:0cm;mso-list:l0 level1 lfo1">
<span style="font-size:10.0pt;font-family:"Verdana",sans-serif;mso-fareast-language:EN-US">run cqp<o:p></o:p></span></li><li class="MsoListParagraph" style="color:#1F497D;margin-left:0cm;mso-list:l0 level1 lfo1">
<span style="font-size:10.0pt;font-family:"Verdana",sans-serif;mso-fareast-language:EN-US">see:<o:p></o:p></span></li></ul>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:#1F497D;mso-fareast-language:EN-US">andrew@ninja:~/Share/Transfer$ ./cqp<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:#1F497D;mso-fareast-language:EN-US">Segmentation fault<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:#1F497D;mso-fareast-language:EN-US">andrew@ninja:~/Share/Transfer$ ./cqp -c<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:#1F497D;mso-fareast-language:EN-US">Segmentation fault<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:#1F497D;mso-fareast-language:EN-US">andrew@ninja:~/Share/Transfer$ ./cqp -h<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:#1F497D;mso-fareast-language:EN-US">Segmentation fault<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:#1F497D;mso-fareast-language:EN-US">andrew@ninja:~/Share/Transfer$ ./cqp -v<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:#1F497D;mso-fareast-language:EN-US">Segmentation fault</span><span style="font-family:"Courier New"">
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US">HOWEVER, when I export the 3.0 branch and build it on my current desktop VM (which runs Debian buster), it starts without any segfault.
Albeit this is 3.0.3 not 3.0.0.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US">I suspect this is going to be almost impossible to debug as recreating a circa 2010 build environment for the purpose is going to be
a tall order.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US">The answer is probably either to rebuild 3.0.0 from source, or to use 3.0.3 instead.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US">best<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Andrew.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> cwb-bounces@sslmit.unibo.it <cwb-bounces@sslmit.unibo.it>
<b>On Behalf Of </b>Maarten Janssen<br>
<b>Sent:</b> 01 May 2020 15:42<br>
<b>To:</b> Stefan Evert <stefanML@collocations.de><br>
<b>Cc:</b> CWBdev Mailing List <cwb@sslmit.unibo.it><br>
<b>Subject:</b> Re: [CWB] Segmentation fault<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Hi Stefan, <o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Sorry for the delay in response, but I am trying this on quite a few Linux flavours atm, so my Debian installation was gone for a while. It is strange not many more people have this problem, since it is really just an out-of-the-box Debian
10 (buster) installation, fresh and clean, where I run the standard CWB install script; it works without a problem on other Debian flavours like Mint and Ubuntu, but on buster it gives this problem. Maybe I am doing something wrong, but like I said, it works
like a charm on Ubuntu and Mint - so the idea behind it cannot be all bad. The only thing it runs is what it says on the website - here is the underlying Perl code of what the installer tries to do - which should be straightforward, but hence does not work
on buster:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">if ( $os eq 'debian' ) {</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">$cwbname = "cwb-3.0.0-osx-10.5-universal.tar";</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">$cwbpath = "<a href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fcwb%2Ffiles%2Fcwb%2Fcwb-3.0.0%2Fcwb-3.0.0-osx-10.5-universal.tar.gz%2Fdownload&data=02%7C01%7Ca.hardie%40lancaster.ac.uk%7C58a1d14686ba4a18343908d7eddde327%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C1%7C637239409577942936&sdata=E8t8PzFxgMyT%2B32gITaff0pNsHmIEgqimmx0s54CorQ%3D&reserved=0">https://sourceforge.net/projects/cwb/files/cwb/cwb-3.0.0/cwb-3.0.0-osx-10.5-universal.tar.gz/download</a>";</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">} elsif ( $os eq 'solaris') {</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">$cwbname = "cwb-3.0.0-solaris-sparc";</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">$cwbpath = "<a href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fcwb%2Ffiles%2Fcwb%2Fcwb-3.0.0%2Fcwb-3.0.0-solaris-sparc.tar.gz%2Fdownload&data=02%7C01%7Ca.hardie%40lancaster.ac.uk%7C58a1d14686ba4a18343908d7eddde327%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C1%7C637239409577942936&sdata=RiceNybCSCBRrisAyqxB53ZWzv1Qf1cJI5Guqb5bAqA%3D&reserved=0">https://sourceforge.net/projects/cwb/files/cwb/cwb-3.0.0/cwb-3.0.0-solaris-sparc.tar.gz/download</a>";</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">} elsif ( !$Config{use64bitint} ) {</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">$cwbname = "cwb-3.0.0-linux-i386";</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">$cwbpath = "<a href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fcwb%2Ffiles%2Fcwb%2Fcwb-3.0.0%2Fcwb-3.0.0-linux-i386.tar.gz%2Fdownload&data=02%7C01%7Ca.hardie%40lancaster.ac.uk%7C58a1d14686ba4a18343908d7eddde327%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C1%7C637239409577952886&sdata=IM47s2mtUpox9dqK0cNv%2FemePDnAovCk23%2BjjL6ZxcQ%3D&reserved=0">https://sourceforge.net/projects/cwb/files/cwb/cwb-3.0.0/cwb-3.0.0-linux-i386.tar.gz/download</a>";</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">} else {</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">$cwbname = "cwb-3.0.0-linux-x86_64";</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">$cwbpath = "<a href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fcwb%2Ffiles%2Fcwb%2Fcwb-3.0.0%2Fcwb-3.0.0-linux-x86_64.tar.gz%2Fdownload&data=02%7C01%7Ca.hardie%40lancaster.ac.uk%7C58a1d14686ba4a18343908d7eddde327%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C1%7C637239409577952886&sdata=Gr5tPrayQW85yaFpzryMe%2FpbPsY63XcmGEPViMqKeH0%3D&reserved=0">https://sourceforge.net/projects/cwb/files/cwb/cwb-3.0.0/cwb-3.0.0-linux-x86_64.tar.gz/download</a>";</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">};</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">print "Attempting to install CWB - version $cwbname\n";</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">print "Downloading\n";</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">print `wget $cwbpath`;</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">print "Installing\n";</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">`tar -zxvf download`;</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">print `cd $cwbname ; sh install-cwb.sh`;</span><o:p></o:p></p>
</div>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">The “set h off” indeed solveds the problem with the (null), and you get the output you would expect; but still, only while running under valgrind; just running cqp (with any arguments) still gives a segmentation fault. Under valgrind it
works, but it does throw a whole lot of warning, as pasted below (in TEITOK, the registry is stored in the project folder, hence the -r but that should not change anything). Any idea what I would have to do different to make this work under Debian 10?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Maarten<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">root@debian:/var/www/html/teitok/new# valgrind cqp -e -r cqp -D TT-DEFMIN<br>
==3104== Memcheck, a memory error detector<br>
==3104== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.<br>
==3104== Using Valgrind-3.14.0 and LibVEX; rerun with -h for copyright info<br>
==3104== Command: cqp -e -r cqp -D TT-DEFMIN<br>
==3104== <br>
==3104== Conditional jump or move depends on uninitialised value(s)<br>
==3104== at 0x490053: __linkin_atfork (in /usr/local/bin/cqp)<br>
==3104== by 0x4660A2: ptmalloc_init (in /usr/local/bin/cqp)<br>
==3104== by 0x46A313: malloc_hook_ini (in /usr/local/bin/cqp)<br>
==3104== by 0x4C0BF2: _dl_init_paths (in /usr/local/bin/cqp)<br>
==3104== by 0x49126A: _dl_non_dynamic_init (in /usr/local/bin/cqp)<br>
==3104== by 0x491B22: __libc_init_first (in /usr/local/bin/cqp)<br>
==3104== by 0x44F752: (below main) (in /usr/local/bin/cqp)<br>
==3104== <br>
==3104== Conditional jump or move depends on uninitialised value(s)<br>
==3104== at 0x4902DD: __strcpy_chk (in /usr/local/bin/cqp)<br>
==3104== by 0x40D357: load_corpusnames (in /usr/local/bin/cqp)<br>
==3104== by 0x40D4F7: check_available_corpora (in /usr/local/bin/cqp)<br>
==3104== by 0x40154C: initialize_cqp (in /usr/local/bin/cqp)<br>
==3104== by 0x400695: main (in /usr/local/bin/cqp)<br>
==3104== <br>
==3104== Conditional jump or move depends on uninitialised value(s)<br>
==3104== at 0x46C7ED: strcat (in /usr/local/bin/cqp)<br>
==3104== by 0x40D221: load_corpusnames (in /usr/local/bin/cqp)<br>
==3104== by 0x40D4F7: check_available_corpora (in /usr/local/bin/cqp)<br>
==3104== by 0x40154C: initialize_cqp (in /usr/local/bin/cqp)<br>
==3104== by 0x400695: main (in /usr/local/bin/cqp)<br>
==3104== <br>
==3104== Conditional jump or move depends on uninitialised value(s)<br>
==3104== at 0x46C8CD: strcat (in /usr/local/bin/cqp)<br>
==3104== by 0x40D221: load_corpusnames (in /usr/local/bin/cqp)<br>
==3104== by 0x40D4F7: check_available_corpora (in /usr/local/bin/cqp)<br>
==3104== by 0x40154C: initialize_cqp (in /usr/local/bin/cqp)<br>
==3104== by 0x400695: main (in /usr/local/bin/cqp)<br>
==3104== <br>
==3104== Conditional jump or move depends on uninitialised value(s)<br>
==3104== at 0x46C7ED: strcat (in /usr/local/bin/cqp)<br>
==3104== by 0x40D24B: load_corpusnames (in /usr/local/bin/cqp)<br>
==3104== by 0x40D4F7: check_available_corpora (in /usr/local/bin/cqp)<br>
==3104== by 0x40154C: initialize_cqp (in /usr/local/bin/cqp)<br>
==3104== by 0x400695: main (in /usr/local/bin/cqp)<br>
==3104== <br>
==3104== Conditional jump or move depends on uninitialised value(s)<br>
==3104== at 0x451E4C: __ctype_toupper_loc (in /usr/local/bin/cqp)<br>
==3104== by 0x40D2AE: load_corpusnames (in /usr/local/bin/cqp)<br>
==3104== by 0x40D4F7: check_available_corpora (in /usr/local/bin/cqp)<br>
==3104== by 0x40154C: initialize_cqp (in /usr/local/bin/cqp)<br>
==3104== by 0x400695: main (in /usr/local/bin/cqp)<br>
==3104== <br>
==3104== Conditional jump or move depends on uninitialised value(s)<br>
==3104== at 0x451E0C: __ctype_tolower_loc (in /usr/local/bin/cqp)<br>
==3104== by 0x40C1FC: changecase_string (in /usr/local/bin/cqp)<br>
==3104== by 0x40C8D4: GetSystemCorpus (in /usr/local/bin/cqp)<br>
==3104== by 0x40D304: load_corpusnames (in /usr/local/bin/cqp)<br>
==3104== by 0x40D4F7: check_available_corpora (in /usr/local/bin/cqp)<br>
==3104== by 0x40154C: initialize_cqp (in /usr/local/bin/cqp)<br>
==3104== by 0x400695: main (in /usr/local/bin/cqp)<br>
==3104== <br>
==3104== Conditional jump or move depends on uninitialised value(s)<br>
==3104== at 0x451E8C: __ctype_b_loc (in /usr/local/bin/cqp)<br>
==3104== by 0x4335F3: component_full_name (in /usr/local/bin/cqp)<br>
==3104== by 0x4334B4: declare_component (in /usr/local/bin/cqp)<br>
==3104== by 0x4337EB: declare_default_components (in /usr/local/bin/cqp)<br>
==3104== by 0x434454: cregparse (in /usr/local/bin/cqp)<br>
==3104== by 0x431C08: setup_corpus (in /usr/local/bin/cqp)<br>
==3104== by 0x40C8E2: GetSystemCorpus (in /usr/local/bin/cqp)<br>
==3104== by 0x40D304: load_corpusnames (in /usr/local/bin/cqp)<br>
==3104== by 0x40D4F7: check_available_corpora (in /usr/local/bin/cqp)<br>
==3104== by 0x40154C: initialize_cqp (in /usr/local/bin/cqp)<br>
==3104== by 0x400695: main (in /usr/local/bin/cqp)<br>
==3104== <br>
==3104== Conditional jump or move depends on uninitialised value(s)<br>
==3104== at 0x46C9DB: index (in /usr/local/bin/cqp)<br>
==3104== by 0x40DD7D: findcorpus (in /usr/local/bin/cqp)<br>
==3104== by 0x40E0AE: set_current_corpus_name (in /usr/local/bin/cqp)<br>
==3104== by 0x401562: initialize_cqp (in /usr/local/bin/cqp)<br>
==3104== by 0x400695: main (in /usr/local/bin/cqp)<br>
==3104== <br>
==3104== Conditional jump or move depends on uninitialised value(s)<br>
==3104== at 0x46C9DB: index (in /usr/local/bin/cqp)<br>
==3104== by 0x40DE64: findcorpus (in /usr/local/bin/cqp)<br>
==3104== by 0x40E0AE: set_current_corpus_name (in /usr/local/bin/cqp)<br>
==3104== by 0x401562: initialize_cqp (in /usr/local/bin/cqp)<br>
==3104== by 0x400695: main (in /usr/local/bin/cqp)<br>
==3104== <br>
TT-DEFMIN><o:p></o:p></p>
<div>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">On 23 Apr 2020, at 10:49, Stefan Evert <<a href="mailto:stefanML@collocations.de">stefanML@collocations.de</a>> wrote:<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal"><br>
<br>
<br>
<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">On 22 Apr 2020, at 19:14, Maarten Janssen <<a href="mailto:maartenpt@gmail.com">maartenpt@gmail.com</a>> wrote:<br>
<br>
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=".*"]:<br>
<br>
0: <(null)This(null)> is my first little TEITO<br>
1: This <(null)is(null)> my first little TEITOK c<br>
<br>
Did anybody see that problem before, and/or have any clue how to solve it<o:p></o:p></p>
</blockquote>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
Wild guess after a quick look at the source code: the (null) values are probably where CQP tries to emit terminal escapes for highlighting.
<br>
<br>
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.<br>
<br>
Quick test: in CQP enter<br>
<br>
set h off;<br>
<br>
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.<br>
<br>
Best,<br>
Stefan<o:p></o:p></p>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</body>
</html>