Summary: | net-misc/openssh-7.9_p1-r4: ssh-add hangs when lto enabled | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | fkater <fkater> |
Component: | Current packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | jstein, robbat2 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 618550 |
Description
fkater
2019-06-03 15:38:52 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/ I've edited this issue since it became clearer now. openssh compiled with lto makes ssh-add to hang at 100% CPU. I've tried up to openssh-7.7.x, 7.9.x, 8.0.x. A simple test case: - run ssh-agent manually, into new shell: ssh-agent /bin/bash - ssh-add (brings PW entry) - type PW + enter Hangs, CPU at 100%. I am unable to reproduce this problem with the following config: CFLAGS="-O2 -pipe -march=amdfam10 -flto" LDFLAGS="-flto" net-misc/openssh-8.0_p1-r1 sys-apps/systemd-242-r1 Ok, so a bit more info from my test case: gcc-8.3.0-r1 net-misc/openssh-8.0_p1-r1 /proc/cpuinfo: model name: Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz (1) This makes ssh-add hang: CHOST="x86_64-pc-linux-gnu" CFLAGS="-march=native -g0 -O3 -pipe -fomit-frame-pointer -mindirect-branch=thunk -mfunction-return=thunk -mindirect-branch-register" CFLAGS="${CFLAGS} -flto=5 -fuse-linker-plugin" LDFLAGS="${LDFLAGS} -Wl,--as-needed -Wl,-O2 ${CFLAGS}" AR=gcc-ar RANLIB=gcc-ranlib NM=gcc-nm (2) This is my no-lto.conf what makes it work when applied: CFLAGS="${CFLAGS} -fno-lto -fno-use-linker-plugin" CXXFLAGS="${CXXFLAGS} -fno-lto -fno-use-linker-plugin" LDFLAGS="${LDFLAGS} -fno-lto -fno-use-linker-plugin" Can you still hit this? No. Thanks for asking. |