Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 934475 - sys-devel/binutils-2.42-r1 USE flags "+pgo" and "+test" are broken.
Summary: sys-devel/binutils-2.42-r1 USE flags "+pgo" and "+test" are broken.
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-17 18:51 UTC by Arniii
Modified: 2024-06-17 21:19 UTC (History)
1 user (show)

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


Attachments
tail -n +0 /var/tmp/portage/sys-devel/binutils-2.42-r1/temp/build.log (file_934475.txt,674.43 KB, text/plain)
2024-06-17 18:51 UTC, Arniii
Details
how htop part of this looks like (file_934475.txt,32.47 KB, text/plain)
2024-06-17 18:52 UTC, Arniii
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arniii 2024-06-17 18:51:25 UTC
Created attachment 895980 [details]
tail -n +0  /var/tmp/portage/sys-devel/binutils-2.42-r1/temp/build.log

IDK, I've tried it multiple time and it stays in the way for eternity.
Comment 1 Arniii 2024-06-17 18:52:10 UTC
Created attachment 895981 [details]
how htop part of this looks like
Comment 2 Arniii 2024-06-17 19:07:32 UTC
some backtraces:

1. backtrace of process "expect -- ..." which calls somehow itself and debuginfod , which calls a lot of other debuginfod process.
```
#0  __GI___libc_read (nbytes=4096, buf=0x564441e4aa68, fd=9) at ../sysdeps/unix/sysv/linux/read.c:26
#1  __GI___libc_read (fd=9, buf=buf@entry=0x564441e4aa68, nbytes=nbytes@entry=4096) at ../sysdeps/unix/sysv/linux/read.c:24
#2  0x00007fbdb06ac5ff in read (__nbytes=<optimized out>, __buf=<optimized out>, __fd=<optimized out>, __fd=<optimized out>, __buf=<optimized out>, __nbytes=<optimized out>) at /usr/include/bits/unistd.h:28
#3  PipeInputProc (instanceData=0x564441d7b0f0, buf=0x564441e4aa68 " \006\360ADV", toRead=4096, errorCodePtr=0x7ffc77b6b844) at /usr/src/debug/dev-lang/tcl-8.6.13-r1/tcl8.6.13/unix/tclUnixPipe.c:1061
#4  0x00007fbdb06414de in ChanRead (chanPtr=0x564441e732e0, dst=0x564441e4aa68 " \006\360ADV", dstSize=4096) at /usr/src/debug/dev-lang/tcl-8.6.13-r1/tcl8.6.13/generic/tclIO.c:420
#5  0x00007fbdb0646afb in GetInput (chanPtr=0x564441e732e0) at /usr/src/debug/dev-lang/tcl-8.6.13-r1/tcl8.6.13/generic/tclIO.c:6915
#6  0x00007fbdb0641ed7 in DoReadChars (chanPtr=0x564441e732e0, objPtr=0x564441a62790, toRead=-1, appendFlag=<optimized out>) at /usr/src/debug/dev-lang/tcl-8.6.13-r1/tcl8.6.13/generic/tclIO.c:5918
#7  0x00007fbdb064c94d in Tcl_ExecObjCmd (dummy=<optimized out>, interp=0x564441891940, objc=<optimized out>, objv=<optimized out>) at /usr/src/debug/dev-lang/tcl-8.6.13-r1/tcl8.6.13/generic/tclIOCmd.c:996
#8  0x00007fbdb059a806 in TclNRRunCallbacks (interp=interp@entry=0x564441891940, result=0, rootPtr=0x0) at /usr/src/debug/dev-lang/tcl-8.6.13-r1/tcl8.6.13/generic/tclBasic.c:4503
#9  0x00007fbdb059a8bf in Tcl_EvalObjv (interp=interp@entry=0x564441891940, objc=objc@entry=4, objv=objv@entry=0x56444189f240, flags=flags@entry=2097168) at /usr/src/debug/dev-lang/tcl-8.6.13-r1/tcl8.6.13/generic/tclBasic.c:4226
#10 0x00007fbdb05a168f in TclEvalEx (interp=0x564441891940,
    script=0x56444193ba50 "# runtest.exp -- Test framework driver\n# Copyright (C) 1992-2019, 2020 Free Software Foundation, Inc.\n#\n# This file is part of DejaGnu.\n#\n# DejaGnu is free software; you can redistribute it and/or mod"..., numBytes=<optimized out>,
    flags=<optimized out>, line=1796, clNextOuter=<optimized out>,
    outerScript=0x56444193ba50 "# runtest.exp -- Test framework driver\n# Copyright (C) 1992-2019, 2020 Free Software Foundation, Inc.\n#\n# This file is part of DejaGnu.\n#\n# DejaGnu is free software; you can redistribute it and/or mod"...)
    at /usr/src/debug/dev-lang/tcl-8.6.13-r1/tcl8.6.13/generic/tclBasic.c:5372
#11 0x00007fbdb0656558 in Tcl_FSEvalFileEx (interp=interp@entry=0x564441891940, pathPtr=pathPtr@entry=0x5644418f2de0, encodingName=encodingName@entry=0x0) at /usr/src/debug/dev-lang/tcl-8.6.13-r1/tcl8.6.13/generic/tclIOUtil.c:1824
#12 0x00007fbdb0656677 in Tcl_FSEvalFile (interp=interp@entry=0x564441891940, pathPtr=pathPtr@entry=0x5644418f2de0) at /usr/src/debug/dev-lang/tcl-8.6.13-r1/tcl8.6.13/generic/tclIOUtil.c:1720
#13 0x00007fbdb06566a7 in Tcl_EvalFile (interp=0x564441891940, fileName=<optimized out>) at /usr/src/debug/dev-lang/tcl-8.6.13-r1/tcl8.6.13/generic/tclIOUtil.c:424
#14 0x00007fbdb07476ac in exp_interpret_cmdfilename (interp=interp@entry=0x564441891940, filename=0x7ffc77b6d063 "/usr/share/dejagnu/runtest.exp") at /usr/src/debug/dev-tcltk/expect-5.45.4-r5/expect5.45.4/exp_main_sub.c:952
#15 0x00005644411ac201 in main (argc=12, argv=0x7ffc77b6bd88) at /usr/src/debug/dev-tcltk/expect-5.45.4-r5/expect5.45.4/exp_main_exp.c:48
```





2. child process of "expect -- ..." , which also called "expect -- ..." and seems to have same arguments.

```
#0  0x00007fbdb031f224 in __GI___select (nfds=nfds@entry=8, readfds=readfds@entry=0x7fbdb0197e00, writefds=writefds@entry=0x7fbdb0197d80, exceptfds=exceptfds@entry=0x7fbdb0197d00, timeout=timeout@entry=0x0) at ../sysdeps/unix/sysv/linux/select.c:69
#1  0x00007fbdb06b150b in NotifierThreadProc (dummy=<optimized out>) at /usr/src/debug/dev-lang/tcl-8.6.13-r1/tcl8.6.13/unix/tclUnixNotfy.c:1250
#2  0x00007fbdb0299609 in start_thread (arg=<optimized out>) at pthread_create.c:447
#3  0x00007fbdb0321fb8 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

```


3. 'parent' debuginfod process:
```
#0  0x00007f737e4f3df2 in __libc_pause () at ../sysdeps/unix/sysv/linux/pause.c:29
#1  0x000056261fecd6e5 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/dev-libs/elfutils-0.190/elfutils-0.190/debuginfod/debuginfod.cxx:4688

```


4. a child process of debuginfod, which also called debuginfod and have also the same arguments

```
#0  0x00007f737e5223c6 in epoll_wait (epfd=10, events=events@entry=0x7f737affdf70, maxevents=maxevents@entry=128, timeout=timeout@entry=-1) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
#1  0x00007f737eee4f1f in MHD_epoll (daemon=0x56262106d420, millisec=<optimized out>) at /usr/src/debug/net-libs/libmicrohttpd-0.9.77/libmicrohttpd-0.9.77/src/microhttpd/daemon.c:5046
#2  0x00007f737eee5945 in MHD_polling_thread (cls=0x56262106d420) at /usr/src/debug/net-libs/libmicrohttpd-0.9.77/libmicrohttpd-0.9.77/src/microhttpd/daemon.c:5432
#3  0x00007f737e499609 in start_thread (arg=<optimized out>) at pthread_create.c:447
#4  0x00007f737e521fb8 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

```
Comment 3 Arniii 2024-06-17 19:40:23 UTC
iteration 1: disable FEATURE="test" and disable lto flags. Reproducible.
iteration 2: iteration 1 + disable `doc` USE flag. Reproducible.
Comment 4 Arniii 2024-06-17 19:48:08 UTC
iteration 3: iteration 2 and disabled `pgo` USE flag.  It doesn't halt, :hooray:
Comment 5 Arniii 2024-06-17 20:01:10 UTC
iteration 4: enabled features for testing, enabled compile flags with lto back, USE="nls plugins test* zstd -cet -debuginfod -doc -gold -gprofng -hardened -multitarget -pgo -static-libs -vanilla" 0 KiB .

Reproduced halt.
Comment 6 Arniii 2024-06-17 20:01:30 UTC
also, sorry, iteration 1 was with lto.
Comment 7 Arniii 2024-06-17 20:16:12 UTC
iteration 5: features for testing and +debuginfod USE flag. Reproduced.
Comment 8 Arniii 2024-06-17 20:34:37 UTC
USE flags for iteration 5: 
USE="debuginfod* nls plugins test* zstd -cet -doc -gold -gprofng -hardened -multitarget -pgo -static-libs -vanilla" 


iteration 6:
just -O2 -pipe -march=native(verbose) -ggdb3 -frecord-gcc-switches

USE="nls plugins test* zstd -cet -debuginfod -doc -gold -gprofng -hardened -multitarget -pgo -static-libs -vanilla"

reproduced
Comment 9 Arniii 2024-06-17 20:45:36 UTC
iteration 7:
same as iteration 6, but `-zstd` USE flag.

it still halts.
Comment 10 Arniii 2024-06-17 21:17:47 UTC
iteration 8: same as iteration 6, but without -ggdb3 . still halts.

iteration 9: -O2 -pipe -march=native  USE="nls plugins test* zstd -cet -debuginfod -doc -gold -gprofng -hardened -multitarget -pgo -static-libs -vanilla" . still halts.

iteration 10: -O2 -pipe -march=native -ggdb3 , FEATURE="-test"  USE="nls plugins zstd -cet -debuginfod -doc -gold -gprofng -hardened -multitarget -pgo -static-libs -test -vanilla"  . It doesn't halt

iteration 11: -O2 -pipe -march=native -ggdb3 , FEATURE="-test"  UUSE="nls pgo* plugins zstd -cet -debuginfod -doc -gold -gprofng -hardened -multitarget -static-libs -test -vanilla"  . still halts.
Comment 11 Arniii 2024-06-17 21:18:16 UTC
I assume both USE flags "test" and "pgo" are broken.