Hi Colomban,
https://gerrit.libreoffice.org/c/core/+/210474 should fix it.
Thanks for flagging it.
On 9/3/26 17:05, Colomban Wendling wrote:
Hello everyone,
It looks like if PDFIum is disabled (and I did disable it a while back
because of a build failure) CppunitTest_sc_pdf_export segfaults:
$ make CppunitTest_sc_pdf_export CPPUNITTRACE="gdb --args"
[…]
Thread 1 "cppunittester" received signal SIGSEGV, Segmentation fault.
0x00007fffeb34184f in testTdf156893::TestBody (this=0x555556543510)
at /media/data/Hypra/dev/libreoffice/sc/qa/extras/scpdfexport.cxx:968
968 CPPUNIT_ASSERT_EQUAL(1, pPdfDocument->getPageCount());
(gdb) call pPdfDocument->getPageCount()
Couldn't find method vcl::pdf::PDFiumDocument::getPageCount
Enabling PDFIum solves the issue (and I don't get a build failure
anymore), but there's probably something to be done here, probably one
of:
* fix some code to work without PDFIum
* disable the relevant tests if PDFIum is disabled
* if PDFIum is mandatory nowadays, remove the option to disable it
Or maybe I entirely miss something?
Regards,
Colomban
--
Xisco Faulí
LibreOffice QA Team
IRC: x1sc0