<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=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        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;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:261298896;
        mso-list-type:hybrid;
        mso-list-template-ids:1083490358 934865578 67567619 67567621 67567617 67567619 67567621 67567617 67567619 67567621;}
@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:"Calibri",sans-serif;
        mso-fareast-font-family:Calibri;}
@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:\F0A7;
        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:\F0B7;
        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:\F0A7;
        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:\F0B7;
        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:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
@list l1
        {mso-list-id:612175537;
        mso-list-type:hybrid;
        mso-list-template-ids:-538654704 67567633 67567641 67567643 67567631 67567641 67567643 67567631 67567641 67567643;}
@list l1:level1
        {mso-level-text:"%1\)";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l1:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l1:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l1:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l1:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l1:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l1:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l1:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l1:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l2
        {mso-list-id:1377504888;
        mso-list-type:hybrid;
        mso-list-template-ids:1009264344 67567633 67567641 67567643 67567631 67567641 67567643 67567631 67567641 67567643;}
@list l2:level1
        {mso-level-text:"%1\)";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l2:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l2:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l2:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l2:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l2:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l2:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l2:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l2:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
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="DE" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Dear all,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">I get a segmentation fault error when trying to set up a metadata table from XML:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><img width="713" height="518" style="width:7.4236in;height:5.3958in" id="Grafik_x0020_3" src="cid:image003.jpg@01D6EA14.DBEFCE20"></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Workflow:<o:p></o:p></span></p>
<ol style="margin-top:0cm" start="1" type="1">
<li class="MsoListParagraph" style="margin-left:0cm;mso-list:l2 level1 lfo1"><span lang="EN-US">Install a pre-indexed corpus (I have made this one available to you off-list, Andrew)<o:p></o:p></span></li><li class="MsoListParagraph" style="margin-left:0cm;mso-list:l2 level1 lfo1"><span lang="EN-US">Install metadata from XML (auto-select and leave frequency lists off)<o:p></o:p></span></li><li class="MsoListParagraph" style="margin-left:0cm;mso-list:l2 level1 lfo1"><span lang="EN-US">Error appears (as above; this is with all debugging views switched on).<o:p></o:p></span></li></ol>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Notes:<o:p></o:p></span></p>
<ol style="margin-top:0cm" start="1" type="1">
<li class="MsoListParagraph" style="margin-left:0cm;mso-list:l1 level1 lfo3"><span lang="EN-US">Error message in the server log:<o:p></o:p></span></li></ol>
<p class="MsoNormal"><span lang="EN-US">[Thu Jan 14 00:02:01.285349 2021] [php7:notice] [pid 3211514] [client 155.54.239.27:47656] PHP Notice: fwrite(): write of 5 bytes failed with errno=32 Broken pipe in /var/www/html/CQPweb/lib/cqp.php on line 499, referer:
<a href="http://MYSERVER/CQPweb/youtube_pilorama/index.php?ui=manageMetadata&createMetadataFromXml=1">
http://MYSERVER/CQPweb/youtube_pilorama/index.php?ui=manageMetadata&createMetadataFromXml=1</a><o:p></o:p></span></p>
<ol style="margin-top:0cm" start="2" type="1">
<li class="MsoListParagraph" style="margin-left:0cm;mso-list:l1 level1 lfo3"><span lang="EN-US">OS is Ubuntu 20.04 LTS, tried both on Windows (WSL) and an actual server<o:p></o:p></span></li><li class="MsoListParagraph" style="margin-left:0cm;mso-list:l1 level1 lfo3"><span lang="EN-US">Revision is 1571 (current as of today) - I have a credible report that it worked in Revision 1568, but I cannot exclude that there is a difference in the order of
steps and/or the configuration.<o:p></o:p></span></li><li class="MsoListParagraph" style="margin-left:0cm;mso-list:l1 level1 lfo3"><span lang="EN-US">CQP is 3.4.27<o:p></o:p></span></li><li class="MsoListParagraph" style="margin-left:0cm;mso-list:l1 level1 lfo3"><span lang="EN-US">The corpus can be queried in CQP on the command line<o:p></o:p></span></li><li class="MsoListParagraph" style="margin-left:0cm;mso-list:l1 level1 lfo3"><span lang="EN-US">Output of the CQP diagnostics is fine (pasted below)<o:p></o:p></span></li></ol>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I’d be grateful for any pointers.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks and best wishes,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Peter<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:11.5pt"><span lang="EN-US" style="font-size:9.5pt;font-family:"Courier New";color:black;mso-fareast-language:DE">Beginning diagnostics on CQP child process connection.<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:11.5pt"><span lang="EN-US" style="font-size:9.5pt;font-family:"Courier New";color:black;mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:11.5pt"><span lang="EN-US" style="font-size:9.5pt;font-family:"Courier New";color:black;mso-fareast-language:DE">Using following configuration variables:<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:11.5pt"><span lang="EN-US" style="font-size:9.5pt;font-family:"Courier New";color:black;mso-fareast-language:DE"> $path_to_cqp = ``/usr/local/cwb-3.4.27/bin/''<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:11.5pt"><span lang="EN-US" style="font-size:9.5pt;font-family:"Courier New";color:black;mso-fareast-language:DE"> $cwb_registry = ``/data/cqpweb/registry''<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:11.5pt"><span lang="EN-US" style="font-size:9.5pt;font-family:"Courier New";color:black;mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:11.5pt"><span lang="EN-US" style="font-size:9.5pt;font-family:"Courier New";color:black;mso-fareast-language:DE">Checking that directory /usr/local/cwb-3.4.27/bin/ exists... yes it does!<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:11.5pt"><span lang="EN-US" style="font-size:9.5pt;font-family:"Courier New";color:black;mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:11.5pt"><span lang="EN-US" style="font-size:9.5pt;font-family:"Courier New";color:black;mso-fareast-language:DE">Checking that CQP program exists... yes it does!<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:11.5pt"><span lang="EN-US" style="font-size:9.5pt;font-family:"Courier New";color:black;mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:11.5pt"><span lang="EN-US" style="font-size:9.5pt;font-family:"Courier New";color:black;mso-fareast-language:DE">Checking that CQP program is readable by the user... yes it is!<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:11.5pt"><span lang="EN-US" style="font-size:9.5pt;font-family:"Courier New";color:black;mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:11.5pt"><span lang="EN-US" style="font-size:9.5pt;font-family:"Courier New";color:black;mso-fareast-language:DE">Checking that CQP program is executable by this user... yes it is!<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:11.5pt"><span lang="EN-US" style="font-size:9.5pt;font-family:"Courier New";color:black;mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:11.5pt"><span lang="EN-US" style="font-size:9.5pt;font-family:"Courier New";color:black;mso-fareast-language:DE">Checking that /data/cqpweb/registry exists... yes it does!<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:11.5pt"><span lang="EN-US" style="font-size:9.5pt;font-family:"Courier New";color:black;mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:11.5pt"><span lang="EN-US" style="font-size:9.5pt;font-family:"Courier New";color:black;mso-fareast-language:DE">Checking that CWB registry is readable by this user... yes it is!<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:11.5pt"><span lang="EN-US" style="font-size:9.5pt;font-family:"Courier New";color:black;mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:11.5pt"><span lang="EN-US" style="font-size:9.5pt;font-family:"Courier New";color:black;mso-fareast-language:DE">Now running process-open to get a link to CQP ... ... complete.
<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:11.5pt"><span lang="EN-US" style="font-size:9.5pt;font-family:"Courier New";color:black;mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:11.5pt"><span lang="EN-US" style="font-size:9.5pt;font-family:"Courier New";color:black;mso-fareast-language:DE">Checking that the process we've set up to link to slave cqp has the datatypes it ought to... yes it has!<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:11.5pt"><span lang="EN-US" style="font-size:9.5pt;font-family:"Courier New";color:black;mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:11.5pt"><span lang="EN-US" style="font-size:9.5pt;font-family:"Courier New";color:black;mso-fareast-language:DE">Checking that the process's status has the correct values... yes it has!<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:11.5pt"><span lang="EN-US" style="font-size:9.5pt;font-family:"Courier New";color:black;mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:11.5pt"><span lang="EN-US" style="font-size:9.5pt;font-family:"Courier New";color:black;mso-fareast-language:DE">Checking that we've got the right pipes into and out of the CQP process... all looking good!<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:11.5pt"><span lang="EN-US" style="font-size:9.5pt;font-family:"Courier New";color:black;mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:11.5pt"><span lang="EN-US" style="font-size:9.5pt;font-family:"Courier New";color:black;mso-fareast-language:DE">Checking that it's possible to read lines of cqp output... yes it is!<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:11.5pt"><span lang="EN-US" style="font-size:9.5pt;font-family:"Courier New";color:black;mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:11.5pt"><span lang="EN-US" style="font-size:9.5pt;font-family:"Courier New";color:black;mso-fareast-language:DE">Checking that this version of CQP is up-to-date enough (need 3.4.26 or higher)... yes, CQP version 3.4.27
is high enough!<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:11.5pt"><span lang="EN-US" style="font-size:9.5pt;font-family:"Courier New";color:black;mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:11.5pt"><span lang="EN-US" style="font-size:9.5pt;font-family:"Courier New";color:black;mso-fareast-language:DE">Checking that it's possible to write commands to lines of cqp output... successfully sent 13 bytes to CQP,
and got back 2 lines of output!<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:11.5pt"><span lang="EN-US" style="font-size:9.5pt;font-family:"Courier New";color:black;mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:11.5pt"><span lang="EN-US" style="font-size:9.5pt;font-family:"Courier New";color:black;mso-fareast-language:DE">The connection to the CQP child process was successful.<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:11.5pt"><span lang="EN-US" style="font-size:9.5pt;font-family:"Courier New";color:black;mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:11.5pt"><span lang="EN-US" style="font-size:9.5pt;font-family:"Courier New";color:black;mso-fareast-language:DE">Attempting to shut down test process...<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:11.5pt"><span lang="EN-US" style="font-size:9.5pt;font-family:"Courier New";color:black;mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:11.5pt"><span lang="EN-US" style="font-size:9.5pt;font-family:"Courier New";color:black;mso-fareast-language:DE">Process shutdown was successful.<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:11.5pt"><span lang="EN-US" style="font-size:9.5pt;font-family:"Courier New";color:black;mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:11.5pt"><span lang="EN-US" style="font-size:9.5pt;font-family:"Courier New";color:black;mso-fareast-language:DE">CQP connection diagnostic complete.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
</body>
</html>