Re: Buiilding LO 6.1.4.2 --with-system-jpeg and jpeg-9c fails

2019-01-22 Thread Caolán McNamara
On Tue, 2019-01-22 at 13:58 +, Дилян Палаузов wrote:
> Hello,
> 
> libjpeg.so can originate from 
> 
> libjpeg-turbo, https://en.wikipedia.org/wiki/Libjpeg#libjpeg-turbo
> mozjpeg, https://en.wikipedia.org/wiki/Libjpeg#mozjpeg or
> ijg.org (jpeg-9c)
> 
> With ./configure --with-system-jpeg, having installed jpeg-9c as
> /usr/local/lib/libjpeg.so, make fails with

> I tried with or without --with-system-jpeg and it fails only in the
> latter case.
> 
> What exactly is the problem?

Well, its simply that the test expects
vcl/qa/cppunit/graphicfilter/data/jpg/fail/crash-1.jpg to fail to load
and it unexpectedly succeeded in loading.

All those --with-system-foo options aren't guaranteed to work in all
combinations. The bundled case is supposed to work, and the others are
at your own risk, with the major distros typically keeping their own
working, and libjpeg9 is unpopular as a default distro libjpeg

Someone who wants to use a system libjpeg-9 would have to investigate
if it succeeds for a good reason or if its pure luck, e.g. via
uninitialized data. Running it under valgrind like the trailing debug
text mentions would probably be good enough to rule out a "bad" success
there.

You can move it from the "fail" dir to the "indeterminate" if you just
want to "get on with it"

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


Buiilding LO 6.1.4.2 --with-system-jpeg and jpeg-9c fails

2019-01-22 Thread Дилян Палаузов
Hello,

libjpeg.so can originate from 

libjpeg-turbo, https://en.wikipedia.org/wiki/Libjpeg#libjpeg-turbo
mozjpeg, https://en.wikipedia.org/wiki/Libjpeg#mozjpeg or
ijg.org (jpeg-9c)

With ./configure --with-system-jpeg, having installed jpeg-9c as 
/usr/local/lib/libjpeg.so, make fails with

Test name: VclFiltersTest::testCVEs
equality assertion failed
- Expected: 0
- Actual  : 1
- 
file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/jpg/fail/crash-1.jpg



Below is the full output of make.  The complete call for configuration is: 
../configure --enable-evolution2 --enable-
avahi --enable-python=system --enable-eot --enable-online-update 
--without-doxygen --with-jdk-home=/opt/jdk --with-ant-
home=/opt/ant --without-junit --enable-formula-logger --enable-introspection 
--with-system-bzip2 --with-system-cairo --
with-system-epoxy --with-system-zlib --with-system-jpeg --with-system-expat 
--with-system-libxml --with-system-icu --
with-system-openldap --without-system-poppler --with-system-curl 
--with-system-boost --with-webdav --with-krb5 --with-
gssapi --with-system-lcms2 --with-system-nss --with-system-graphite 
--with-system-harfbuzz --with-system-cppunit --with-
system-openssl --with-system-libpng --disable-gtk --disable-pdfium 
--with-system-libcmis

I tried with or without --with-system-jpeg and it fails only in the latter case.

What exactly is the problem?

Regards
  Дилян
-

mkdir -p /src/libreoffice-6.1.4.2/build9/instdir
/src/libreoffice-6.1.4.2/solenv/bin/install-gdb-printers -a 
/src/libreoffice-6.1.4.2/build9/instdir -c
make -j 1  VERBOSE=1 -f /src/libreoffice-6.1.4.2/Makefile.gbuildall
make[1]: Entering directory '/src/libreoffice-6.1.4.2/build9'
[build CUT] vcl_filters_test
S=/src/libreoffice-6.1.4.2 && B=$S/build9 && I=$B/instdir && W=$B/workdir &&
mkdir -p $W/CppunitTest/ && rm -fr
$W/CppunitTest/vcl_filters_test.test.user && cp -r $W/unittest 
$W/CppunitTest/vcl_filters_test.test.user &&rm -fr
$W/CppunitTest/vcl_filters_test.test.core && mkdir 
$W/CppunitTest/vcl_filters_test.test.core && cd
$W/CppunitTest/vcl_filters_test.test.core &&
(
LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"$I/program:$I/program":$W/UnpackedTarball/cppunit/src/cppunit
/.libs   MALLOC_CHECK_=2 MALLOC_PERTURB_=153 
$W/LinkTarget/Executable/cppunittester
$W/LinkTarget/CppunitTest/libtest_vcl_filters_test.so --headless 
"-env:BRAND_BASE_DIR=file://$B/instdir" "-
env:BRAND_SHARE_SUBDIR=share" 
"-env:BRAND_SHARE_RESOURCE_SUBDIR=program/resource" "-
env:UserInstallation=file://$W/CppunitTest/vcl_filters_test.test.user"   "-
env:CONFIGURATION_LAYERS=xcsxcu:file://$I/share/registry 
xcsxcu:file://$W/unittest/registry"  "-
env:UNO_TYPES=file://$I/program/types.rdb file://$I/program/types/offapi.rdb"  
"-
env:UNO_SERVICES=file://$W/Rdb/ure/services.rdb 
file://$W/ComponentTarget/configmgr/source/configmgr.component
file://$W/ComponentTarget/i18npool/util/i18npool.component 
file://$W/ComponentTarget/ucb/source/core/ucb1.component
file://$W/ComponentTarget/ucb/source/ucp/file/ucpfile1.component 
file://$W/ComponentTarget/uui/util/uui.component
file://$W/ComponentTarget/emfio/emfio.component"  
-env:URE_INTERNAL_LIB_DIR=file://$I/program
-env:LO_LIB_DIR=file://$I/program -env:LO_JAVA_DIR=file://$I/program/classes 
--protector
$W/LinkTarget/Library/unoexceptionprotector.so unoexceptionprotector --protector
$W/LinkTarget/Library/unobootstrapprotector.so unobootstrapprotector   
--protector
$W/LinkTarget/Library/libvclbootstrapprotector.so vclbootstrapprotector   "-
env:CPPUNITTESTTARGET=$W/CppunitTest/vcl_filters_test.test"   )  > 
$W/CppunitTest/vcl_filters_test.test.log 2>&1 || (
RET=$?; $S/solenv/bin/gdb-core-bt.sh $W/LinkTarget/Executable/cppunittester 
$W/CppunitTest/vcl_filters_test.test.core
$RET >> $W/CppunitTest/vcl_filters_test.test.log 2>&1; cat 
$W/CppunitTest/vcl_filters_test.test.log;
$S/solenv/gbuild/platform/unittest-failed-default.sh Cppunit vcl_filters_test)
Testing 
file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/pass/CVE-2005-2123-1.wmf:
Tested 
file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/pass/CVE-2005-2123-1.wmf:
 Pass (10ms)
Testing 
file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/pass/CVE-2006-4071-1.wmf:
Tested 
file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/pass/CVE-2006-4071-1.wmf:
 Pass (0ms)
Testing 
file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/pass/CVE-2007-1090-1.wmf:
Tested 
file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/pass/CVE-2007-1090-1.wmf:
 Pass (1ms)
Testing 
file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/pass/exttextout-1.wmf:
Tested 
file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/pass/exttextout-1.wmf:
 Pass (1108ms)
Testing 
file:///src/libreoffice-6.1.4.2/vcl/qa/cppunit/graphicfilter/data/wmf/pass/noheader.wmf:
Tested 
file:///src/libreoffice-6.1.4.2/v