Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 832072 - dev-lang/python: segfaults when building app-office/libreoffice-7.1.7.2
Summary: dev-lang/python: segfaults when building app-office/libreoffice-7.1.7.2
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-25 23:22 UTC by Christophe PEREZ
Modified: 2022-03-07 06:06 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge_log (log.zip,145.43 KB, application/zip)
2022-01-25 23:22 UTC, Christophe PEREZ
Details
emerge -info (emerge.info,7.80 KB, text/plain)
2022-01-25 23:23 UTC, Christophe PEREZ
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christophe PEREZ 2022-01-25 23:22:10 UTC
Created attachment 763636 [details]
emerge_log

emerge -DauUN world wants to re-emerge libreoffice
[ebuild   R    ] app-office/libreoffice-7.1.7.2  ELIBC="(-FreeBSD%)"

But it always fails. I disabled ccache, distcc, and MAKEOPTS="-j1" but nothing better.
I have 4Gb RAM, 12Gb swap and 12G disk space.
I don't know what to try, except using binary package.
Comment 1 Christophe PEREZ 2022-01-25 23:23:10 UTC
Created attachment 763637 [details]
emerge -info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-25 23:27:12 UTC
make[1]: *** [/var/tmp/portage/app-office/libreoffice-7.1.7.2/work/libreoffice-7.1.7.2/solenv/gbuild/UIConfig.mk:159: /var/tmp/portage/app-office/libreoffice-7.1.7.2/work/libreoffice-7.1.7.2/workdir/UIConfig/modules/BasicIDE.a11yerrors] Segmentation fault

Oh dear.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-25 23:27:37 UTC
How about the version in ~arch?
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-25 23:31:11 UTC
(In reply to Sam James from comment #2)
> make[1]: ***
> [/var/tmp/portage/app-office/libreoffice-7.1.7.2/work/libreoffice-7.1.7.2/
> solenv/gbuild/UIConfig.mk:159:
> /var/tmp/portage/app-office/libreoffice-7.1.7.2/work/libreoffice-7.1.7.2/
> workdir/UIConfig/modules/BasicIDE.a11yerrors] Segmentation fault
> 
> Oh dear.


S=/var/tmp/portage/app-office/libreoffice-7.1.7.2/work/libreoffice-7.1.7.2 && I=$S/instdir && W=$S/workdir &&    /usr/bin/python3.9 $S/bin/gla11y -P $S/ -f $S/solenv/sanitizers/ui/modules/BasicIDE.false -s $S/solenv/sanitizers/ui/modules/BasicIDE.suppr --widgets-suffixignored +ValueSet,HBox,VBox,ToolBox,Preview,PreviewWin,PreviewWindow,PrevWindow --widgets-button +svtlo-ManagedMenuButton --fatal-all --not-fatal-type duplicate-mnemonic --not-fatal-type labelled-by-and-mnemonic --not-fatal-type orphan-label -o $W/UIConfig/modules/BasicIDE.a11yerrors $S/basctl/uiconfig/basicide/ui/basicmacrodialog.ui $S/basctl/uiconfig/basicide/ui/breakpointmenus.ui $S/basctl/uiconfig/basicide/ui/codecomplete.ui $S/basctl/uiconfig/basicide/ui/combobox.ui $S/basctl/uiconfig/basicide/ui/defaultlanguage.ui $S/basctl/uiconfig/basicide/ui/deletelangdialog.ui $S/basctl/uiconfig/basicide/ui/dialogpage.ui $S/basctl/uiconfig/basicide/ui/dockingorganizer.ui $S/basctl/uiconfig/basicide/ui/dockingstack.ui $S/basctl/uiconfig/basicide/ui/dockingwatch.ui $S/basctl/uiconfig/basicide/ui/exportdialog.ui $S/basctl/uiconfig/basicide/ui/gotolinedialog.ui $S/basctl/uiconfig/basicide/ui/importlibdialog.ui $S/basctl/uiconfig/basicide/ui/libpage.ui $S/basctl/uiconfig/basicide/ui/managebreakpoints.ui $S/basctl/uiconfig/basicide/ui/managelanguages.ui $S/basctl/uiconfig/basicide/ui/modulepage.ui $S/basctl/uiconfig/basicide/ui/newlibdialog.ui $S/basctl/uiconfig/basicide/ui/organizedialog.ui $S/basctl/uiconfig/basicide/ui/sortmenu.ui
make[1]: *** [/var/tmp/portage/app-office/libreoffice-7.1.7.2/work/libreoffice-7.1.7.2/solenv/gbuild/UIConfig.mk:159: /var/tmp/portage/app-office/libreoffice-7.1.7.2/work/libreoffice-7.1.7.2/workdir/UIConfig/modules/BasicIDE.a11yerrors] Segmentation fault

... Python is segfaulting?

I wondeer if you can get a coredump? https://wiki.gentoo.org/wiki/Debugging
Comment 5 Christophe PEREZ 2022-01-25 23:34:13 UTC
(In reply to Sam James from comment #3)
> How about the version in ~arch?

I'll give it a try.

Few hours to wait for the result

Thanks
Comment 6 Christophe PEREZ 2022-01-26 14:26:26 UTC
(In reply to Christophe PEREZ from comment #5)
> (In reply to Sam James from comment #3)
> > How about the version in ~arch?
> 
> I'll give it a try.
> 
> Few hours to wait for the result
> 
> Thanks

Same error with app-office/libreoffice-7.2.5.2
Comment 7 Christophe PEREZ 2022-01-26 14:37:17 UTC
(In reply to Sam James from comment #4)

> I wondeer if you can get a coredump? https://wiki.gentoo.org/wiki/Debugging

That seems very complicated for me (especially with my understanding of English)
Comment 8 Jonas Stein gentoo-dev 2022-01-26 20:51:01 UTC
It is sad to read that you have problems with the software. The situation seems to be a bit more complicate and requires some analysis.
We can not help you efficiently via bug tracker. The bug tracker aims rather on specific problems in .ebuilds and less on individual systems. 

I have had very good experience on the gentoo IRC [1] with questions like this. Of course there are also forums and mailing lists [2,3].
I hope you understand, that I will close the bug here therefore and wish you good luck on one of the mentioned channels [4].
Please reopen the ticket in order to provide an indication for an specific error in an ebuild or any gentoo related product.

[1] https://www.gentoo.org/get-involved/irc-channels/
[2] https://forums.gentoo.org/
[3] https://www.gentoo.org/get-involved/mailing-lists/all-lists.html
[4] https://www.gentoo.org/support/
Comment 9 Christophe PEREZ 2022-02-04 22:46:49 UTC
Now, I have the same problem on my own PC, with RAM 32G and 35G disk space.

when updating to app-office/libreoffice-7.2.5.2

18:34:01 root@coffee ~ # LANG=C free -g
               total        used        free      shared  buff/cache   available
Mem:              31           4          16           0          11          26
Swap:             32           0          32
18:34:22 root@coffee ~ # LANG=C df
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       197G  160G   35G  83% /

Same error, on 2 PC, weird
Comment 10 Christophe PEREZ 2022-02-04 22:48:37 UTC
I've already posted on forums but no answer:
https://forums.gentoo.org/viewtopic-p-8690574.html
Comment 11 Christophe PEREZ 2022-02-05 15:41:29 UTC
(In reply to Christophe PEREZ from comment #10)
> I've already posted on forums but no answer:
> https://forums.gentoo.org/viewtopic-p-8690574.html

As explained there, I was able to compile libreoffice with 
PYTHON_SINGLE_TARGET="python3_10"
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-02-06 06:43:09 UTC
(In reply to Christophe PEREZ from comment #11)
> (In reply to Christophe PEREZ from comment #10)
> > I've already posted on forums but no answer:
> > https://forums.gentoo.org/viewtopic-p-8690574.html
> 
> As explained there, I was able to compile libreoffice with 
> PYTHON_SINGLE_TARGET="python3_10"

That sounds a lot like somehow your Python 3.9 was miscompiled. I don't know why.

Does re-compiling Python 3.9 help? emerge -v1 dev-lang/python:3.9?
Comment 13 Christophe PEREZ 2022-02-06 14:19:28 UTC
(In reply to Sam James from comment #12)
> That sounds a lot like somehow your Python 3.9 was miscompiled. I don't know
> why.
> 
> Does re-compiling Python 3.9 help? emerge -v1 dev-lang/python:3.9?

Do you really think?
I have the problem on 3 different computers anyway, with the same error, and exclusively on libreoffice.

I can try after having recompiled python, but I admit that I believe very little in it anyway.
Comment 14 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-02-06 14:24:18 UTC
(In reply to Christophe PEREZ from comment #13)
> (In reply to Sam James from comment #12)
> > That sounds a lot like somehow your Python 3.9 was miscompiled. I don't know
> > why.
> > 
> > Does re-compiling Python 3.9 help? emerge -v1 dev-lang/python:3.9?
> 
> Do you really think?
> I have the problem on 3 different computers anyway, with the same error, and
> exclusively on libreoffice.
> 
> I can try after having recompiled python, but I admit that I believe very
> little in it anyway.

Python shouldn't be segfaulting ever. Python 3.10 working is suspicious. Trying to obtain a backtrace is the only way we can definitely know.

It would help to know how you configure your machines. Can you reproduce this from a stage3? Give us instructions? (In a chroot)
Comment 15 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-07 06:06:41 UTC
(In reply to Sam James from comment #14)
> (In reply to Christophe PEREZ from comment #13)
> > (In reply to Sam James from comment #12)
> > > That sounds a lot like somehow your Python 3.9 was miscompiled. I don't know
> > > why.
> > > 
> > > Does re-compiling Python 3.9 help? emerge -v1 dev-lang/python:3.9?
> > 
> > Do you really think?
> > I have the problem on 3 different computers anyway, with the same error, and
> > exclusively on libreoffice.
> > 
> > I can try after having recompiled python, but I admit that I believe very
> > little in it anyway.
> 
> Python shouldn't be segfaulting ever. Python 3.10 working is suspicious.
> Trying to obtain a backtrace is the only way we can definitely know.
> 
> It would help to know how you configure your machines. Can you reproduce
> this from a stage3? Give us instructions? (In a chroot)

We really need this information to debug further. Please let us know if you can get it or if you need help obtaining it.