https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87840
--- Comment #6 from Jan Engelhardt ---
Found a case where g++-9 also misses a leak when -fsanitize=address is not
present.
14:47 a4:~ > cat y.cpp
#include
struct S {
std::shared_ptr other;
};
int main()
{
auto e =
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87840
Jan Engelhardt changed:
What|Removed |Added
Status|WAITING |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87840
--- Comment #4 from Martin Liška ---
What about this:
$ cat empty.c
int main()
{
__builtin_malloc (12345);
return 0;
}
$ gcc -fsanitize=leak empty.c && ./a.out
=
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87840
--- Comment #3 from Martin Liška ---
(In reply to Jan Engelhardt from comment #2)
> How could I go about debugging why such a backtrace won't show for me?
Good question. I use openSUSE Tumbleweed. Maybe try:
$
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87840
--- Comment #2 from Jan Engelhardt ---
How could I go about debugging why such a backtrace won't show for me?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87840
Martin Liška changed:
What|Removed |Added
Status|UNCONFIRMED |WAITING
Last reconfirmed|