Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-26993

Project Mixing C and C++ produce Debuger Crashes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • Qt Creator 6.0.2
    • Debugger
    • None
    • Project build Cmake, that allow easyly to mix C and CPP stuff
      Using standard Qt 5.15.2 mingw 64 bit desktop
    • Windows

    Description

      WIth a project mixing C and C++, I have some strange beahouviour of GDB

      I made a minimal project to reproduce the probleme (attached).

      When performing a step out from a C++ function called from C GDB? is crashing? at least Debug session is aborted (see video)

       

      Maybe an Intersetring point: I was not able to reproduce the probleme until I put a return value to function printHelloCppCalledInC

       

      Attachments

        1. 2022-02-04 10-39-58.mp4
          8.52 MB
          Florent Fortin
        2. 2022-09-16 14-58-46.mp4
          8.94 MB
          Florent Fortin
        3. cmake_c_cpp.zip
          5 kB
          Florent Fortin
        4. QtCreator-8.0.1-MinGW-8.1.0-and-11.2.0.mp4
          2.19 MB
          Cristian Adam
        5. QtCreator-8.0.1-MinGW-C-C++-debugging.mp4.mp4
          2.18 MB
          Cristian Adam
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            cadam Cristian Adam
            florent@lightingsoft Florent Fortin
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes