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

SEGV in QPointer when initializing one at constructor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.9
    • Core: Object Model
    • None

    Description

      We are getting this particular stack trace at initialization of a type that assigns at that point a QPointer private member. I will attach a git repository with demo source code:

       

      1 QtSharedPointer::ExternalRefCountData::getAndRef(QObject const *)                           0xf72ac889 
      2 QWeakPointer<QObject>::QWeakPointer<A>                            qsharedpointer_impl.h 684 0x804977f  
      3 QPointer<A>::QPointer                                             qpointer.h            71  0x8049604  
      4 AbstractC::AbstractC                                              C.h                   20  0x804a36d  
      5 C::C                                                              C.h                   36  0x804a4b9  
      6 A::A                                                              A.cpp                 11  0x8049aea  
      7 Example::Example                                                  Example.h             16  0x80493e6  
      8 main                                                              main.cpp              10  0x80490ea  
      

       

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            pvanhoof Philip Van Hoof
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes