[CWB] Segmentation fault
Stefan Evert
stefanML at collocations.de
Mon May 4 20:59:29 CEST 2020
> The logic is wrong - the first two bits should be exchanged: the /etc/lsb-release check is combined with the section for “without lsb_release”, which is probably where some of those things go wrong. But yes, I would say just not specifying version numbers would be most recommendable…
The comments are correct: the branch with /etc/lsb-release is taken because it works on old system that don't have the lsb_release command-line utility.
But the deeper logic is wrong because it takes the old branch on newer systems that still have /etc/lsb-release. So the script should test whether a program "lsb_release" can be run first, but the author probably didn't know how to do that safely.
I'm still worried by the dependence on specific library versions that keep changing between Linux releases. Doesn't Linux have a more stable way of finding packages?
Best,
Stefan
More information about the CWB
mailing list