https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108146
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2022-12-16
Ever confirmed|0 |1
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Hey, it's related to the fact the mcount in glibc enters GMON_PROF_ERROR state.
That happens in:
(gdb) bt
#0 __mcount_internal (frompc=<optimized out>, selfpc=5075099) at mcount.c:173
#1 0x0000155555407968 in mcount () at ../sysdeps/x86_64/_mcount.S:50
#2 0x00000000004d709b in updateExclu (data=0x7ffffffd3b18, res=0x7ffffffcc5c0)
at main.c:64359
#3 0x00000000004b8e25 in main (argc=1, argv=0x7fffffffd758) at main.c:54437
(gdb) p _gmonparam.state
$10 = 2
And that's why no gmon.out file is created. Please report it to glibc guys.