<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>46364</bug_id>
          
          <creation_ts>2023-06-02 05:06:49 +0300</creation_ts>
          <short_desc>segfault on import in python3</short_desc>
          <delta_ts>2023-11-29 15:44:32 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>python3-module-CTK</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Zakharyaschev">imz</reporter>
          <assigned_to name="morozovaes@altlinux.org">morozovaes</assigned_to>
          <cc>grenka</cc>
    
    <cc>rider</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>226911</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2023-06-02 05:06:49 +0300</bug_when>
    <thetext>$ p=python3-module-CTK; hsh --without-stuff --ini ~/hasher2 &amp;&amp; hsh-install ~/hasher2/ &quot;$p&quot; tests-for-installed-python3-pkgs &amp;&amp; hsh-run ~/hasher2/ --mount=/proc,/dev/pts -- bash -c &quot;rpm -q $p; rpm -q $p --provides; echo &apos;Non-importable:&apos;; /usr/lib/rpm/check-python3-provs-importable $p&quot;

python3-module-CTK-0.1.0-alt3.git.dc2e1289.x86_64
python3(CTKCommandLineModulesBackendFunctionPointerPythonQt)
python3(CTKCommandLineModulesBackendLocalProcessPythonQt)
python3(CTKCommandLineModulesBackendXMLCheckerPythonQt)
python3(CTKCommandLineModulesCorePythonQt)
python3(CTKCommandLineModulesFrontendQtGuiPythonQt)
python3(CTKCommandLineModulesFrontendQtWebKitPythonQt)
python3(CTKCorePythonQt)
python3(CTKDICOMCorePythonQt)
python3(CTKDICOMWidgetsPythonQt)
python3(CTKImageProcessingITKCorePythonQt)
python3(CTKPluginFrameworkPythonQt)
python3(CTKScriptingPythonWidgetsPythonQt)
python3(CTKVisualizationVTKCorePythonQt)
python3(CTKVisualizationVTKWidgetsPythonQt)
python3(CTKWidgetsPythonQt)
python3(ctk)
python3(ctkSimplePythonShell)
python3(qt)
python3-module-CTK = 0.1.0-alt3.git.dc2e1289:sisyphus+293819.1140.16.3
Non-importable:
CTKCommandLineModulesBackendFunctionPointerPythonQt
CTKCommandLineModulesBackendLocalProcessPythonQt
CTKCommandLineModulesBackendXMLCheckerPythonQt
CTKCommandLineModulesCorePythonQt
CTKCommandLineModulesFrontendQtGuiPythonQt
CTKCommandLineModulesFrontendQtWebKitPythonQt
sh: line 1: 183721 Segmentation fault      python3 -c &apos;import CTKCorePythonQt&apos; 2&gt; /dev/null
CTKCorePythonQt
sh: line 1: 183723 Segmentation fault      python3 -c &apos;import CTKDICOMCorePythonQt&apos; 2&gt; /dev/null
CTKDICOMCorePythonQt
sh: line 1: 183725 Segmentation fault      python3 -c &apos;import CTKDICOMWidgetsPythonQt&apos; 2&gt; /dev/null
CTKDICOMWidgetsPythonQt
CTKImageProcessingITKCorePythonQt
CTKPluginFrameworkPythonQt
sh: line 1: 183731 Segmentation fault      python3 -c &apos;import CTKScriptingPythonWidgetsPythonQt&apos; 2&gt; /dev/null
CTKScriptingPythonWidgetsPythonQt
sh: line 1: 183733 Segmentation fault      python3 -c &apos;import CTKVisualizationVTKCorePythonQt&apos; 2&gt; /dev/null
CTKVisualizationVTKCorePythonQt
sh: line 1: 183735 Segmentation fault      python3 -c &apos;import CTKVisualizationVTKWidgetsPythonQt&apos; 2&gt; /dev/null
CTKVisualizationVTKWidgetsPythonQt
sh: line 1: 183737 Segmentation fault      python3 -c &apos;import CTKWidgetsPythonQt&apos; 2&gt; /dev/null
CTKWidgetsPythonQt
sh: line 1: 183739 Segmentation fault      python3 -c &apos;import ctk&apos; 2&gt; /dev/null
ctk
ctkSimplePythonShell
qt
$ 

May be related to https://bugzilla.altlinux.org/show_bug.cgi?id=40278#c39 (or not).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>226912</commentid>
    <comment_count>1</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2023-06-02 05:20:53 +0300</bug_when>
    <thetext>No, it&apos;s not related to python3 being statically linked to libpython3 now:

the crash is also present in p9, where python3 was dynamically linked to libpython3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>226914</commentid>
    <comment_count>2</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2023-06-02 08:49:14 +0300</bug_when>
    <thetext>Это надо чинить одновременно с обновлением slicer</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>228290</commentid>
    <comment_count>3</comment_count>
    <who name="morozovaes@altlinux.org">morozovaes</who>
    <bug_when>2023-06-23 15:51:26 +0300</bug_when>
    <thetext>You&apos;re right, it&apos;s absolutely unrelated to changes in ALT-linking; this issue originates in CTK upstream: any attempt to import PythonQt modules outside of a Qt application produces a segfault:

https://github.com/commontk/CTK/pull/520

The current solution as of commit https://github.com/commontk/CTK/commit/a203172b634253cc3717346de30305ffe721d91c and further
is to skip such imports by standalone python interpreter. It will be included it the next CTK package release.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>238022</commentid>
    <comment_count>4</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2023-11-29 15:44:32 +0300</bug_when>
    <thetext>CTK-0.1.0-alt5.git.a203172b -&gt; sisyphus:

 Tue Nov 28 2023 Elizaveta Morozova &lt;morozovaes@altlinux&gt; 0.1.0-alt5.git.a203172b
 - Fixed Qt module imports via standalone python (ALT #46364).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>