public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/109883] New: Stack Overflow in <cmath> functions with <stdfloat> types
@ 2023-05-17  6:39 matt at mattborland dot com
  2023-05-17 10:12 ` [Bug libstdc++/109883] " xry111 at gcc dot gnu.org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: matt at mattborland dot com @ 2023-05-17  6:39 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109883

            Bug ID: 109883
           Summary: Stack Overflow in <cmath> functions with <stdfloat>
                    types
           Product: gcc
           Version: 13.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: matt at mattborland dot com
  Target Milestone: ---

The two or more argument functions in <cmath> cause a stack overflow when
called with an <stdfloat> type and any integer type. Running with ASAN yields
"AddressSanitizer: nested bug in the same thread". I am able to reproduce this
bug on Fedora 38 with GCC 13.1.1 on x86_64, and macOS 13.3.1 with GCC 13.1.0 on
M1.

A minimal reproducer:

#include <stdfloat>
#include <cmath>

int main()
{
    std::pow(0.5F64, 2);
}

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2023-05-18  3:22 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-17  6:39 [Bug c++/109883] New: Stack Overflow in <cmath> functions with <stdfloat> types matt at mattborland dot com
2023-05-17 10:12 ` [Bug libstdc++/109883] " xry111 at gcc dot gnu.org
2023-05-17 10:12 ` xry111 at gcc dot gnu.org
2023-05-17 12:29 ` matt at mattborland dot com
2023-05-17 12:33 ` [Bug libstdc++/109883] Stack Overflow in <cmath> functions with <stdfloat> types and -std=c++23 xry111 at gcc dot gnu.org
2023-05-17 12:35 ` xry111 at gcc dot gnu.org
2023-05-17 12:40 ` xry111 at gcc dot gnu.org
2023-05-17 12:41 ` matt at mattborland dot com
2023-05-17 12:56 ` jakub at gcc dot gnu.org
2023-05-17 13:28 ` jakub at gcc dot gnu.org
2023-05-17 14:24 ` jakub at gcc dot gnu.org
2023-05-17 19:22 ` cvs-commit at gcc dot gnu.org
2023-05-17 19:27 ` cvs-commit at gcc dot gnu.org
2023-05-17 19:29 ` jakub at gcc dot gnu.org
2023-05-18  3:22 ` xry111 at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).