public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/114558] New: GCC 13.2.1 encountered a segmentation fault error when compiling PyTorch.
@ 2024-04-02  9:01 wencan at live dot cn
  2024-04-02  9:57 ` [Bug c/114558] " jakub at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: wencan at live dot cn @ 2024-04-02  9:01 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 114558
           Summary: GCC 13.2.1 encountered a segmentation fault error when
                    compiling PyTorch.
           Product: gcc
           Version: 13.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: wencan at live dot cn
  Target Milestone: ---

I encountered a compilation error when compiling PyTorch.
GCC version: (GCC) 13.2.1 20240316 (Red Hat 13.2.1-7)
pytorch version: commit dd8a24b

code: 
extern "C" status_t DNNL_API dnnl_memory_desc_set_data_type(
        memory_desc_t *memory_desc, data_type_t data_type) {
    if (any_null(memory_desc)) return invalid_arguments;
    memory_desc->data_type = data_type;
    return success;
} // this line!

I downgraded gcc to 13.2.1 2023091 (Red Hat 13.2.1-3), and the issue no longer
occurred.
more info: https://github.com/pytorch/pytorch/issues/123091

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

end of thread, other threads:[~2024-04-02 23:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-02  9:01 [Bug c/114558] New: GCC 13.2.1 encountered a segmentation fault error when compiling PyTorch wencan at live dot cn
2024-04-02  9:57 ` [Bug c/114558] " jakub at gcc dot gnu.org
2024-04-02 11:35 ` [Bug c++/114558] " rguenth at gcc dot gnu.org
2024-04-02 23:52 ` pinskia at gcc dot gnu.org
2024-04-02 23:53 ` pinskia 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).