Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2639

Segfault when accessing QLocale object returned by QLocale.system()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.7.0, 6.6.3
    • 6.6.1, 6.6.2
    • PySide
    • None
    • MacOS Sonoma: Version 14.3.1 (23D60)
      Python: 3.11.8
      PySide6==6.6.2
    • macOS
    • 9e8321e7f (dev), aea26650b (6.6)

    Description

      # python
      Python 3.11.8 (main, Feb  6 2024, 21:21:21) [Clang 15.0.0 (clang-1500.1.0.2.5)] on darwin
      Type "help", "copyright", "credits" or "license" for more information.
      >>> from PySide6.QtCore import QLocale
      >>> l = QLocale.system()
      >>> l
      [1]    24454 segmentation fault  python 
      Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
      0   Python                        	       0x104a8e1b8 pymalloc_alloc + 88
      1   Python                        	       0x104a8d0b4 _PyObject_Malloc + 24
      2   Python                        	       0x104b82110 gc_alloc + 64
      3   Python                        	       0x104a7aa68 PyDict_New + 168
      4   Python                        	       0x104b222a0 compiler_enter_scope + 384
      5   Python                        	       0x104b21f18 _PyAST_Compile + 296
      6   Python                        	       0x104b6371c run_mod + 52
      7   Python                        	       0x104b63a8c PyRun_InteractiveOneObjectEx + 548
      8   Python                        	       0x104b62e4c _PyRun_InteractiveLoopObject + 288
      9   Python                        	       0x104b628f4 _PyRun_AnyFileObject + 76
      10  Python                        	       0x104b65990 PyRun_AnyFileExFlags + 84
      11  Python                        	       0x104b7f334 pymain_run_stdin + 160
      12  Python                        	       0x104b7e980 Py_RunMain + 348
      13  Python                        	       0x104b7fc20 Py_BytesMain + 40
      14  dyld                          	       0x1815910e0 start + 2360
      

      Attachments

        Issue Links

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

          Activity

            People

              shpremna Shyamnath Premnadh
              bearsh Martin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes