Bug 148850 - Building LibreOffice always crash at sw/source/filter/ww8/ww8par6.cxx
Summary: Building LibreOffice always crash at sw/source/filter/ww8/ww8par6.cxx
Status: RESOLVED MOVED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.3.2.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsDevAdvice
Depends on:
Blocks:
 
Reported: 2022-04-29 12:37 UTC by Rafael Lima
Modified: 2022-06-24 08:47 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Lima 2022-04-29 12:37:36 UTC
Every time I run a full build of LibreOffice (f.i. when I use 'git pull' and then build the entire LO code) I get the following error. The error always happens at the same point.

...
[CXX] sw/source/filter/ww8/ww8graf2.cxx
[CXX] sw/source/filter/ww8/ww8par.cxx
[CXX] sw/source/filter/ww8/ww8par2.cxx
[CXX] sw/source/filter/ww8/ww8par3.cxx
[CXX] sw/source/filter/ww8/ww8par4.cxx
[CXX] sw/source/filter/ww8/ww8par5.cxx
[CXX] sw/source/filter/ww8/ww8par6.cxx
{standard input}: Assembler messages:
{standard input}:72904: Warning: end of file not at end of a line; newline inserted
{standard input}:73051: Error: unknown pseudo-op: `.cfi_startp'
g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make[1]: *** [/home/rafael/Programming/libreoffice/solenv/gbuild/LinkTarget.mk:337: /home/rafael/Programming/libreoffice/workdir/CxxObject/sw/source/filter/ww8/docxattributeoutput.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:299: build] Error 2

When the build process reaches sw/source/filter/ww8/ww8par6.cxx, my PC hangs for a couple of minutes and when it returns, I get this crash.

Then if I simply type 'make' again, the build will continue from where it stopped and go till the end with no further problems.

I have been having this problem since the first time I built LO in 2020.

I would like to know if it might be any problem with the file sw/source/filter/ww8/ww8par6.cxx that is causing this error. Is someone else being affected by this?

I am using Ubuntu 21.10 and I've had this issue since Ubuntu 20.04.
Comment 1 Julien Nabet 2022-04-30 19:16:43 UTC
Just to be sure, a full build for me is when I do:
- make clean
- git pull -r && git submodule update
- ./autogen.sh
- make

Then if afterwards, I do "git pull -r && git submodule update && make", it's just an incremental build not a full build even if it builds the entire LO.

So if there's something wrong in sw part, I'd start with:
make sw.clean
Comment 2 Rafael Lima 2022-05-05 14:20:23 UTC
(In reply to Julien Nabet from comment #1)
> Just to be sure, a full build for me is when I do:
> - make clean
> - git pull -r && git submodule update
> - ./autogen.sh
> - make

Hi Julien, I did some testing today using your instructions. I did the following:

make clean
git pull -r && git submodule update
./autogen.sh --with-help=html --enable-kf5 --enable-dbgutil
make

I added these options in autogen to be able to (i) be able to build the help locally, (ii) use the kf5 interface and (iii) debug Libreoffice.

Again my build crashed, but a few files later:

[CXX] sw/source/filter/ww8/ww8par3.cxx
[CXX] sw/source/filter/ww8/ww8par4.cxx
[CXX] sw/source/filter/ww8/ww8par5.cxx
[CXX] sw/source/filter/ww8/ww8par6.cxx
[CXX] sw/source/filter/ww8/ww8scan.cxx
[CXX] sw/source/filter/ww8/ww8toolbar.cxx
{standard input}: Assembler messages:
{standard input}:317472: Warning: end of file not at end of a line; newline inserted
{standard input}:318052: Error: expecting operand after ','; got nothing
{standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make[1]: *** [/home/rafael/Programming/libreoffice/solenv/gbuild/LinkTarget.mk:337: /home/rafael/Programming/libreoffice/workdir/CxxObject/sw/source/filter/ww8/docxattributeoutput.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:288: build] Error 2

This problem always happen around this point during build, but the moment when the crash happens may change a little, but always in the "ww8" folder.

The weird thing is that typing "make" right after the error will make the build process pick up where it stopped and it goes on to the end and all is fine.
Comment 3 Julien Nabet 2022-05-05 15:30:02 UTC
I must recognize it's quite weird, it might be something relative with parallelism, you can try:
--with-parallelism=1 (see https://wiki.documentfoundation.org/Development/BuildingOnLinux#--with-parallelism).
Of course the build will be longer and if it's indeed related to this, I don't know what can be done.
So the last test to do would be to recreate from scratch your local build perhaps there's something corrupted (hope it's not your disk).
I suppose you build on a local repo (not network one), do you use hard disk, ssd?
Comment 4 Xisco Faulí 2022-06-24 08:47:14 UTC
Hi Rafael,
Since this is an issue related to the building process and not to the software
itself, please, send an email to the development mailing list:
https://wiki.documentfoundation.org/Development/Mailing_List