<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Stefan,<div class=""><br class=""></div><div class="">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:</div><div class=""><br class=""></div><div class=""><div class=""><div class=""><font face="Courier New" class=""><span style="font-style: normal;" class=""><span class="Apple-tab-span" style="white-space:pre">                </span>if ( $os eq 'debian' ) {</span></font></div><div class=""><font face="Courier New" class=""><span style="font-style: normal;" class=""><span class="Apple-tab-span" style="white-space:pre">                        </span>$cwbname = "cwb-3.0.0-osx-10.5-universal.tar";</span></font></div><div class=""><font face="Courier New" class=""><span style="font-style: normal;" class=""><span class="Apple-tab-span" style="white-space:pre">                        </span>$cwbpath = "<a href="https://sourceforge.net/projects/cwb/files/cwb/cwb-3.0.0/cwb-3.0.0-osx-10.5-universal.tar.gz/download" class="">https://sourceforge.net/projects/cwb/files/cwb/cwb-3.0.0/cwb-3.0.0-osx-10.5-universal.tar.gz/download</a>";</span></font></div><div class=""><font face="Courier New" class=""><span style="font-style: normal;" class=""><span class="Apple-tab-span" style="white-space:pre">                </span>} elsif ( $os eq 'solaris') {</span></font></div><div class=""><font face="Courier New" class=""><span style="font-style: normal;" class=""><span class="Apple-tab-span" style="white-space:pre">                        </span>$cwbname = "cwb-3.0.0-solaris-sparc";</span></font></div><div class=""><font face="Courier New" class=""><span style="font-style: normal;" class=""><span class="Apple-tab-span" style="white-space:pre">                        </span>$cwbpath = "<a href="https://sourceforge.net/projects/cwb/files/cwb/cwb-3.0.0/cwb-3.0.0-solaris-sparc.tar.gz/download" class="">https://sourceforge.net/projects/cwb/files/cwb/cwb-3.0.0/cwb-3.0.0-solaris-sparc.tar.gz/download</a>";</span></font></div><div class=""><font face="Courier New" class=""><span style="font-style: normal;" class=""><span class="Apple-tab-span" style="white-space:pre">                </span>} elsif ( !$Config{use64bitint} ) {</span></font></div><div class=""><font face="Courier New" class=""><span style="font-style: normal;" class=""><span class="Apple-tab-span" style="white-space:pre">                        </span>$cwbname = "cwb-3.0.0-linux-i386";</span></font></div><div class=""><font face="Courier New" class=""><span style="font-style: normal;" class=""><span class="Apple-tab-span" style="white-space:pre">                        </span>$cwbpath = "<a href="https://sourceforge.net/projects/cwb/files/cwb/cwb-3.0.0/cwb-3.0.0-linux-i386.tar.gz/download" class="">https://sourceforge.net/projects/cwb/files/cwb/cwb-3.0.0/cwb-3.0.0-linux-i386.tar.gz/download</a>";</span></font></div><div class=""><font face="Courier New" class=""><span style="font-style: normal;" class=""><span class="Apple-tab-span" style="white-space:pre">                </span>} else {</span></font></div><div class=""><font face="Courier New" class=""><span style="font-style: normal;" class=""><span class="Apple-tab-span" style="white-space:pre">                        </span>$cwbname = "cwb-3.0.0-linux-x86_64";</span></font></div><div class=""><font face="Courier New" class=""><span style="font-style: normal;" class=""><span class="Apple-tab-span" style="white-space:pre">                        </span>$cwbpath = "<a href="https://sourceforge.net/projects/cwb/files/cwb/cwb-3.0.0/cwb-3.0.0-linux-x86_64.tar.gz/download" class="">https://sourceforge.net/projects/cwb/files/cwb/cwb-3.0.0/cwb-3.0.0-linux-x86_64.tar.gz/download</a>";</span></font></div><div class=""><font face="Courier New" class=""><span style="font-style: normal;" class=""><span class="Apple-tab-span" style="white-space:pre">                </span>};</span></font></div><div class=""><font face="Courier New" class=""><span style="font-style: normal;" class=""><span class="Apple-tab-span" style="white-space:pre">                </span>print "Attempting to install CWB - version $cwbname\n";</span></font></div><div class=""><font face="Courier New" class=""><span style="font-style: normal;" class=""><span class="Apple-tab-span" style="white-space:pre">                </span>print "Downloading\n";</span></font></div><div class=""><font face="Courier New" class=""><span style="font-style: normal;" class=""><span class="Apple-tab-span" style="white-space:pre">                </span>print `wget $cwbpath`;</span></font></div><div class=""><font face="Courier New" class=""><span style="font-style: normal;" class=""><span class="Apple-tab-span" style="white-space:pre">                </span>print "Installing\n";</span></font></div><div class=""><font face="Courier New" class=""><span style="font-style: normal;" class=""><span class="Apple-tab-span" style="white-space:pre">                </span>`tar -zxvf download`;</span></font></div><div class=""><font face="Courier New" class=""><span style="font-style: normal;" class=""><span class="Apple-tab-span" style="white-space:pre">                </span>print `cd $cwbname ; sh install-cwb.sh`;</span></font></div></div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">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?</div><div class=""><br class=""></div><div class="">Maarten</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">root@debian:/var/www/html/teitok/new# valgrind cqp -e -r cqp -D TT-DEFMIN<br class="">==3104== Memcheck, a memory error detector<br class="">==3104== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.<br class="">==3104== Using Valgrind-3.14.0 and LibVEX; rerun with -h for copyright info<br class="">==3104== Command: cqp -e -r cqp -D TT-DEFMIN<br class="">==3104== <br class="">==3104== Conditional jump or move depends on uninitialised value(s)<br class="">==3104== at 0x490053: __linkin_atfork (in /usr/local/bin/cqp)<br class="">==3104== by 0x4660A2: ptmalloc_init (in /usr/local/bin/cqp)<br class="">==3104== by 0x46A313: malloc_hook_ini (in /usr/local/bin/cqp)<br class="">==3104== by 0x4C0BF2: _dl_init_paths (in /usr/local/bin/cqp)<br class="">==3104== by 0x49126A: _dl_non_dynamic_init (in /usr/local/bin/cqp)<br class="">==3104== by 0x491B22: __libc_init_first (in /usr/local/bin/cqp)<br class="">==3104== by 0x44F752: (below main) (in /usr/local/bin/cqp)<br class="">==3104== <br class="">==3104== Conditional jump or move depends on uninitialised value(s)<br class="">==3104== at 0x4902DD: __strcpy_chk (in /usr/local/bin/cqp)<br class="">==3104== by 0x40D357: load_corpusnames (in /usr/local/bin/cqp)<br class="">==3104== by 0x40D4F7: check_available_corpora (in /usr/local/bin/cqp)<br class="">==3104== by 0x40154C: initialize_cqp (in /usr/local/bin/cqp)<br class="">==3104== by 0x400695: main (in /usr/local/bin/cqp)<br class="">==3104== <br class="">==3104== Conditional jump or move depends on uninitialised value(s)<br class="">==3104== at 0x46C7ED: strcat (in /usr/local/bin/cqp)<br class="">==3104== by 0x40D221: load_corpusnames (in /usr/local/bin/cqp)<br class="">==3104== by 0x40D4F7: check_available_corpora (in /usr/local/bin/cqp)<br class="">==3104== by 0x40154C: initialize_cqp (in /usr/local/bin/cqp)<br class="">==3104== by 0x400695: main (in /usr/local/bin/cqp)<br class="">==3104== <br class="">==3104== Conditional jump or move depends on uninitialised value(s)<br class="">==3104== at 0x46C8CD: strcat (in /usr/local/bin/cqp)<br class="">==3104== by 0x40D221: load_corpusnames (in /usr/local/bin/cqp)<br class="">==3104== by 0x40D4F7: check_available_corpora (in /usr/local/bin/cqp)<br class="">==3104== by 0x40154C: initialize_cqp (in /usr/local/bin/cqp)<br class="">==3104== by 0x400695: main (in /usr/local/bin/cqp)<br class="">==3104== <br class="">==3104== Conditional jump or move depends on uninitialised value(s)<br class="">==3104== at 0x46C7ED: strcat (in /usr/local/bin/cqp)<br class="">==3104== by 0x40D24B: load_corpusnames (in /usr/local/bin/cqp)<br class="">==3104== by 0x40D4F7: check_available_corpora (in /usr/local/bin/cqp)<br class="">==3104== by 0x40154C: initialize_cqp (in /usr/local/bin/cqp)<br class="">==3104== by 0x400695: main (in /usr/local/bin/cqp)<br class="">==3104== <br class="">==3104== Conditional jump or move depends on uninitialised value(s)<br class="">==3104== at 0x451E4C: __ctype_toupper_loc (in /usr/local/bin/cqp)<br class="">==3104== by 0x40D2AE: load_corpusnames (in /usr/local/bin/cqp)<br class="">==3104== by 0x40D4F7: check_available_corpora (in /usr/local/bin/cqp)<br class="">==3104== by 0x40154C: initialize_cqp (in /usr/local/bin/cqp)<br class="">==3104== by 0x400695: main (in /usr/local/bin/cqp)<br class="">==3104== <br class="">==3104== Conditional jump or move depends on uninitialised value(s)<br class="">==3104== at 0x451E0C: __ctype_tolower_loc (in /usr/local/bin/cqp)<br class="">==3104== by 0x40C1FC: changecase_string (in /usr/local/bin/cqp)<br class="">==3104== by 0x40C8D4: GetSystemCorpus (in /usr/local/bin/cqp)<br class="">==3104== by 0x40D304: load_corpusnames (in /usr/local/bin/cqp)<br class="">==3104== by 0x40D4F7: check_available_corpora (in /usr/local/bin/cqp)<br class="">==3104== by 0x40154C: initialize_cqp (in /usr/local/bin/cqp)<br class="">==3104== by 0x400695: main (in /usr/local/bin/cqp)<br class="">==3104== <br class="">==3104== Conditional jump or move depends on uninitialised value(s)<br class="">==3104== at 0x451E8C: __ctype_b_loc (in /usr/local/bin/cqp)<br class="">==3104== by 0x4335F3: component_full_name (in /usr/local/bin/cqp)<br class="">==3104== by 0x4334B4: declare_component (in /usr/local/bin/cqp)<br class="">==3104== by 0x4337EB: declare_default_components (in /usr/local/bin/cqp)<br class="">==3104== by 0x434454: cregparse (in /usr/local/bin/cqp)<br class="">==3104== by 0x431C08: setup_corpus (in /usr/local/bin/cqp)<br class="">==3104== by 0x40C8E2: GetSystemCorpus (in /usr/local/bin/cqp)<br class="">==3104== by 0x40D304: load_corpusnames (in /usr/local/bin/cqp)<br class="">==3104== by 0x40D4F7: check_available_corpora (in /usr/local/bin/cqp)<br class="">==3104== by 0x40154C: initialize_cqp (in /usr/local/bin/cqp)<br class="">==3104== by 0x400695: main (in /usr/local/bin/cqp)<br class="">==3104== <br class="">==3104== Conditional jump or move depends on uninitialised value(s)<br class="">==3104== at 0x46C9DB: index (in /usr/local/bin/cqp)<br class="">==3104== by 0x40DD7D: findcorpus (in /usr/local/bin/cqp)<br class="">==3104== by 0x40E0AE: set_current_corpus_name (in /usr/local/bin/cqp)<br class="">==3104== by 0x401562: initialize_cqp (in /usr/local/bin/cqp)<br class="">==3104== by 0x400695: main (in /usr/local/bin/cqp)<br class="">==3104== <br class="">==3104== Conditional jump or move depends on uninitialised value(s)<br class="">==3104== at 0x46C9DB: index (in /usr/local/bin/cqp)<br class="">==3104== by 0x40DE64: findcorpus (in /usr/local/bin/cqp)<br class="">==3104== by 0x40E0AE: set_current_corpus_name (in /usr/local/bin/cqp)<br class="">==3104== by 0x401562: initialize_cqp (in /usr/local/bin/cqp)<br class="">==3104== by 0x400695: main (in /usr/local/bin/cqp)<br class="">==3104== <br class="">TT-DEFMIN><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 23 Apr 2020, at 10:49, Stefan Evert <<a href="mailto:stefanML@collocations.de" class="">stefanML@collocations.de</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><br class=""><br class=""><blockquote type="cite" class="">On 22 Apr 2020, at 19:14, Maarten Janssen <<a href="mailto:maartenpt@gmail.com" class="">maartenpt@gmail.com</a>> wrote:<br class=""><br class="">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 class=""><br class="">0: <(null)This(null)> is my first little TEITO<br class="">1: This <(null)is(null)> my first little TEITOK c<br class=""><br class="">Did anybody see that problem before, and/or have any clue how to solve it<br class=""></blockquote><br class="">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 class=""><br class="">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 class=""><br class="">Quick test: in CQP enter<br class=""><br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>set h off;<br class=""><br class="">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 class=""><br class="">Best,<br class="">Stefan<br class=""><br class=""></div></div></blockquote></div><br class=""></div></body></html>