Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] emerging libreoffice-5.4.4.2 ends with segfault
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
equaeghe
l33t
l33t


Joined: 22 Feb 2005
Posts: 644

PostPosted: Sat Feb 03, 2018 7:47 pm    Post subject: [solved] emerging libreoffice-5.4.4.2 ends with segfault Reply with quote

I get hit with a segfault when emerging the newly stabilized libreoffice 5.4.4.2:
Code:
/bin/sh: line 1: 31332 Segmentation fault      (core dumped) /usr/sbin/gencmn -n OpenOffice -t tmp -S -d $W/CustomTarget/i18npool/breakiterator/ 0 ${RESPONSEFILE}
make[1]: *** [/var/tmp/portage/app-office/libreoffice-5.4.4.2/work/libreoffice-5.4.4.2/i18npool/CustomTarget_breakiterator.mk:71: /var/tmp/portage/app-office/libreoffice-5.4.4.2/work/libreoffice-5.4.4.2/workdir/CustomTarget/i18npool/breakiterator/OpenOffice_dat.c] Error 139

Where to start investigating?


Last edited by equaeghe on Mon Feb 19, 2018 3:15 pm; edited 1 time in total
Back to top
View user's profile Send private message
pourpier
Apprentice
Apprentice


Joined: 27 Sep 2017
Posts: 166

PostPosted: Sat Feb 03, 2018 9:33 pm    Post subject: Re: emerging libreoffice-5.4.4.2 ends with segfault Reply with quote

equaeghe wrote:
I get hit with a segfault when emerging the newly stabilized libreoffice 5.4.4.2:
Code:
/bin/sh: line 1: 31332 Segmentation fault      (core dumped) /usr/sbin/gencmn -n OpenOffice -t tmp -S -d $W/CustomTarget/i18npool/breakiterator/ 0 ${RESPONSEFILE}
make[1]: *** [/var/tmp/portage/app-office/libreoffice-5.4.4.2/work/libreoffice-5.4.4.2/i18npool/CustomTarget_breakiterator.mk:71: /var/tmp/portage/app-office/libreoffice-5.4.4.2/work/libreoffice-5.4.4.2/workdir/CustomTarget/i18npool/breakiterator/OpenOffice_dat.c] Error 139

Where to start investigating?


I had the same segmentation fault:
Code:
make: *** [Makefile:269: build] Error 2
 * ERROR: app-office/libreoffice-5.4.4.2::gentoo failed (compile phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line 124:  Called src_compile
 *   environment, line 6519:  Called die
 * The specific snippet of code:
 *       make ${target} || die
 *
 * If you need support, post the output of `emerge --info '=app-office/libreoffice-5.4.4.2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-office/libreoffice-5.4.4.2::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=icedtea-bin-8  CLASSPATH="" JAVA_HOME="/opt/icedtea-bin-3.6.0"
JAVACFLAGS="-source 1.6 -target 1.6" COMPILER=""
and of course, the output of emerge --info =libreoffice-5.4.4.2
 * The complete build log is located at '/var/tmp/portage/app-office/libreoffice-5.4.4.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-office/libreoffice-5.4.4.2/temp/environment'.
 * Working directory: '/var/tmp/portage/app-office/libreoffice-5.4.4.2/work/libreoffice-5.4.4.2'
 * S: '/var/tmp/portage/app-office/libreoffice-5.4.4.2/work/libreoffice-5.4.4.2'

I saw this error in the lines: /var/tmp/portage/app-office/libreoffice-5.4.4.2/work/libreoffice-5.4.4.2/include/vcl/layout.hxx:594:55: required from here
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/include/g++-v6/bits/stl_pair.h:244:38: internal compiler error: Segmentation fault
bool>::type=true>
I hope this will give a clue to the ones investigating it.
Best regards,
pourpier

[Moderator edit: added [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
equaeghe
l33t
l33t


Joined: 22 Feb 2005
Posts: 644

PostPosted: Sat Feb 03, 2018 9:40 pm    Post subject: Re: emerging libreoffice-5.4.4.2 ends with segfault Reply with quote

pourpier wrote:
Code:
I saw this error in the lines: /var/tmp/portage/app-office/libreoffice-5.4.4.2/work/libreoffice-5.4.4.2/include/vcl/layout.hxx:594:55:   required from here
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/include/g++-v6/bits/stl_pair.h:244:38: internal compiler error: Segmentation fault
                          bool>::type=true>

That is not the same error. But anyway, it's also a segfault when compiling libreoffice 5.4.4.2, so it fits right in here and both might have the same cause.
Back to top
View user's profile Send private message
pourpier
Apprentice
Apprentice


Joined: 27 Sep 2017
Posts: 166

PostPosted: Sun Feb 04, 2018 12:46 pm    Post subject: Re: emerging libreoffice-5.4.4.2 ends with segfault Reply with quote

equaeghe wrote:
pourpier wrote:
Code:
I saw this error in the lines: /var/tmp/portage/app-office/libreoffice-5.4.4.2/work/libreoffice-5.4.4.2/include/vcl/layout.hxx:594:55:   required from here
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/include/g++-v6/bits/stl_pair.h:244:38: internal compiler error: Segmentation fault
                          bool>::type=true>

That is not the same error. But anyway, it's also a segfault when compiling libreoffice 5.4.4.2, so it fits right in here and both might have the same cause.


I did upgrade to the version 6.0.0.3 and it compiled without any issue.
These are the lines I added in /etc/portage/package.accept_keywords:
Code:
=app-office/libreoffice-6.0.0.3 ~amd64
=app-text/libepubgen-0.1.0 ~amd64
=app-text/libqxp-0.0.1 ~amd64
=dev-libs/libixion-0.13.0 ~amd64
=app-office/libreoffice-l10n-6.0.0.3 ~amd64
=dev-libs/liborcus-0.13.2 ~amd64

After that when libreoffice 6.0.0.3 was merged I had to rebuild bluez with emerge @preserved-rebuild.
I launched Calc and Writer and tried what I used to do and everything worked fine.
This is not the solution for 5.4.4.2 but as version 6.0.0.3 is much better I can't complain.
By the way it compiled in 78 minutes while it used to take more than 90 minutes in the past. Is it the fact the code has improved in libreoffice 6.0.0.3 or is it kernel 4.15 which is better ? I don't know.
Best regards,
pourpier

[Moderator edit: added [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 9014

PostPosted: Sun Feb 04, 2018 12:50 pm    Post subject: Reply with quote

The difference in compile time can not be explained without knowing your LO use flags.

The fact that 6.0.0.3 put less strain on your system and (probably because of that) built fine may indicate a hardware or setup issue (not enough memory).
Back to top
View user's profile Send private message
saboya
Guru
Guru


Joined: 28 Nov 2006
Posts: 552
Location: Brazil

PostPosted: Sun Feb 04, 2018 1:03 pm    Post subject: Reply with quote

5.4.4.2 compiled fine for me.
Back to top
View user's profile Send private message
pourpier
Apprentice
Apprentice


Joined: 27 Sep 2017
Posts: 166

PostPosted: Sun Feb 04, 2018 3:06 pm    Post subject: Reply with quote

asturm wrote:
The difference in compile time can not be explained without knowing your LO use flags.

The fact that 6.0.0.3 put less strain on your system and (probably because of that) built fine may indicate a hardware or setup issue (not enough memory).


I have exactly the same USE flags as before: bluetooth branding cups dbus gtk java python3_5 as single target and python2_7 and 3_5 for the python targets.
The only difference is that the new version of LO was compiled with gcc 6.4.0-r1 while the preceding version of LO was done with gcc 6.4.0 but I doubt the r1 version of GCC explains the difference in compile times.
Best regards,
pourpier
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 9014

PostPosted: Sun Feb 04, 2018 3:08 pm    Post subject: Reply with quote

The GCC revbump certainly makes no difference.

However, while libreoffice-5.4.4.2[gtk] was building with gtk+:2, libreoffice-6.0.0.3[gtk] is built with gtk+:3.
Back to top
View user's profile Send private message
equaeghe
l33t
l33t


Joined: 22 Feb 2005
Posts: 644

PostPosted: Sun Feb 04, 2018 4:01 pm    Post subject: Reply with quote

asturm wrote:
The fact that 6.0.0.3 put less strain on your system and (probably because of that) built fine may indicate a hardware or setup issue (not enough memory).

Hmm. 5.4.2.2 built fine, of course, did the requirements change with the move to 5.4.4.2? My setup satisfies the 6GB disk / 0.5GB memory now in the ebuild.
Back to top
View user's profile Send private message
pourpier
Apprentice
Apprentice


Joined: 27 Sep 2017
Posts: 166

PostPosted: Sun Feb 04, 2018 5:17 pm    Post subject: Reply with quote

equaeghe wrote:
asturm wrote:
The fact that 6.0.0.3 put less strain on your system and (probably because of that) built fine may indicate a hardware or setup issue (not enough memory).

Hmm. 5.4.2.2 built fine, of course, did the requirements change with the move to 5.4.4.2? My setup satisfies the 6GB disk / 0.5GB memory now in the ebuild.


I did a second try today on another machine and libreoffice-5.4.4.2 builds fine. I think there has been some change. Have a look at the changelog of https://packages.gentoo.org/packages/app-office/libreoffice
We were unlucky to build it too early.
If it builds correctly now for you, you might put SOLVED on this one. For me I don't have any issue anymore.
Best regards,
pourpier
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 9014

PostPosted: Sun Feb 04, 2018 5:19 pm    Post subject: Reply with quote

No, there was no change.

This is another sign of flaky hardware.
Back to top
View user's profile Send private message
pourpier
Apprentice
Apprentice


Joined: 27 Sep 2017
Posts: 166

PostPosted: Sun Feb 04, 2018 6:45 pm    Post subject: Reply with quote

asturm wrote:
No, there was no change.

This is another sign of flaky hardware.


I don't think so. But what might have happened is that the build I tried yesterday fell out of the range of successful builds.
What I mean is I might have done it 100 times and succeed 99 times and fail once.
It is the same with a Gaussian there are cases outside the range of µ ± 2σ or µ ± 3σ even though the last one (µ ± 3σ) is about 99.7%
Best regards,
pourpier
Back to top
View user's profile Send private message
equaeghe
l33t
l33t


Joined: 22 Feb 2005
Posts: 644

PostPosted: Mon Feb 05, 2018 7:13 am    Post subject: Re: emerging libreoffice-5.4.4.2 ends with segfault Reply with quote

pourpier wrote:
I did upgrade to the version 6.0.0.3 and it compiled without any issue.

Hm, for me it fails in the same location:
Code:
/bin/sh: line 1: 21176 Segmentation fault      (core dumped) /usr/sbin/gencmn -n OpenOffice -t tmp -S -d $W/CustomTarget/i18npool/breakiterator/ 0 ${RESPONSEFILE}
make[1]: *** [/var/tmp/portage/app-office/libreoffice-6.0.0.3/work/libreoffice-6.0.0.3/i18npool/CustomTarget_breakiterator.mk:71: /var/tmp/portage/app-office/libreoffice-6.0.0.3/work/libreoffice-6.0.0.3/workdir/CustomTarget/i18npool/breakiterator/OpenOffice_dat.c] Error 139

When it fails, I still have plenty of space in /var/tmp/portage and also should have plenty of memory available. I'm again tending to this being an issue that is not resource-related. I'd still be grateful for help in getting this fixed.
Back to top
View user's profile Send private message
equaeghe
l33t
l33t


Joined: 22 Feb 2005
Posts: 644

PostPosted: Tue Feb 13, 2018 11:50 am    Post subject: Reply with quote

It still fails in the same way with 6.0.1.1. :-(
Back to top
View user's profile Send private message
equaeghe
l33t
l33t


Joined: 22 Feb 2005
Posts: 644

PostPosted: Mon Feb 19, 2018 3:14 pm    Post subject: Reply with quote

After filing a bug report, it turned out to be a known prelink issue. Anyway, the update to icu-60.2 also solved it (for libreoffice-6.0.1.1).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum