NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: toolchain/56771: profiled programs crash in __mcount
The following reply was made to PR toolchain/56771; it has been noted by GNATS.
From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: toolchain/56771: profiled programs crash in __mcount
Date: Mon, 28 Mar 2022 14:37:51 +0200
Rumours say that we need -pg to go with -static, but that does not fix
the crash here - but gives a more interesting backtrace:
> c++ -pg -static -g -o call_once test.cc -pthread
> ./call_once
> gdb call_once call_once.core
Core was generated by `call_once'.
Program terminated with signal SIGBUS, Bus error.
#0 __mcount (frompc=<optimized out>, selfpc=1252584)
at /usr/src/lib/libc/../../common/lib/libc/gmon/mcount.c:204
204 top->selfpc = selfpc;
(gdb) bt
#0 __mcount (frompc=<optimized out>, selfpc=1252584)
at /usr/src/lib/libc/../../common/lib/libc/gmon/mcount.c:204
#1 0x0000000000131ce8 in atexit ()
#2 0x000000000010064c in ___start ()
Martin
Home |
Main Index |
Thread Index |
Old Index