Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-95401

Applications crash (SIGSEGV)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • None
    • 6.0.1, 6.0.2, 6.1.1, 6.1.2
    • GUI: Other
    • None
    • FreeBSD 12, cmake 3.20.5, LLVM 9/10/11
    • Other

    Description

      Hello,

       

      We're trying to port Qt6 on FreeBSD.

      All modules build, with some adaptations, but we can't launch any application without a segmentation fault.

       

      Here the backtrace of designer Qt6 6.1.2:

       

       
      * thread #1, name = 'designer', stop reason = signal SIGSEGV: invalid address (fault address: 0x8) 
          frame #0: 0x00000008012749bc libQt6Designer.so.6`QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> >::operator->(this=0x0000000000000008) const at qscopedpointer
      .h:127:16 
         124  
         125      T *operator->() const noexcept 
         126      { 
      -> 127          return d; 
         128      } 
         129  
         130      bool operator!() const noexcept 
      (lldb) bt 
      * thread #1, name = 'designer', stop reason = signal SIGSEGV: invalid address (fault address: 0x8) 
        * frame #0: 0x00000008012749bc libQt6Designer.so.6`QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> >::operator->(this=0x0000000000000008) const at qscopedpointer
      .h:127:16 
          frame #1: 0x00000008013213ee libQt6Designer.so.6`QObject::isWidgetType(this=0x0000000000000000) const at qobject.h:141:47 
          frame #2: 0x0000000801496e48 libQt6Designer.so.6`QDesignerPropertySheetPrivate::layout(this=0x000000080f35d180, layoutPropertySheet=0x00007fffffffda48) const at qdesigner_pro
      pertysheet.cpp:431:20 
          frame #3: 0x000000080149c3ab libQt6Designer.so.6`QDesignerPropertySheet::property(this=0x000000080c5bdf40, index=65) const at qdesigner_propertysheet.cpp:1040:20 
          frame #4: 0x000000080149cbd3 libQt6Designer.so.6`non-virtual thunk to QDesignerPropertySheet::property(int) const at qdesigner_propertysheet.cpp:0 
          frame #5: 0x00000008015f7eda libQt6Designer.so.6`qdesigner_internal::WidgetDataBase::defaultPropertyValues(this=0x00000008063d92d0, name=0x00007fffffffdcf8) at widgetdatabase
      .cpp:437:34 
          frame #6: 0x00000008015f7ffe libQt6Designer.so.6`qdesigner_internal::WidgetDataBase::grabDefaultPropertyValues(this=0x00000008063d92d0) at widgetdatabase.cpp:449:42 
          frame #7: 0x0000000801323272 libQt6Designer.so.6`qdesigner_internal::QDesignerIntegrationPrivate::initializePlugins(formEditor=0x0000000805f9f980) at abstractintegration.cpp:
      565:25 
          frame #8: 0x0000000801324095 libQt6Designer.so.6`QDesignerIntegration::initializePlugins(formEditor=0x0000000805f9f980) at abstractintegration.cpp:750:5 
          frame #9: 0x00000008009a11c5 libQt6DesignerComponents.so.6`QDesignerComponents::initializePlugins(core=0x0000000805f9f980) at qdesigner_components.cpp:119:5 
          frame #10: 0x000000000033067a designer`QDesignerWorkbench::QDesignerWorkbench(this=0x00000008063d6000) at qdesigner_workbench.cpp:177:5 
          frame #11: 0x000000000030af4a designer`QDesigner::parseCommandLineArguments(this=0x00007fffffffe4b8) at qdesigner.cpp:248:23 
          frame #12: 0x00000000002fb7a4 designer`main(argc=1, argv=0x00007fffffffe5a0) at main.cpp:45:17 
          frame #13: 0x0000000000275a90 designer`_start(ap=<unavailable>, cleanup=<unavailable>) at crt1.c:76:7 
      (lldb) 
      

       

       

      We have also tested qdbusviewer, assistant, qmlscene andlinguist. All the backtraces are available at https://invent.kde.org/adridg/kde-freebsd/-/issues/3

       

      Where do you think the problem comes from?
      I can provide a reproducible environment if needed.

       

      Thanks.

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            lbartoletti Loïc Bartoletti
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes