<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re:VTune hotspots analysis fails for Python 3.11 when importing NumPY in Analyzers</title>
    <link>https://community.intel.com/t5/Analyzers/VTune-hotspots-analysis-fails-for-Python-3-11-when-importing/m-p/1597645#M24696</link>
    <description>&lt;P&gt;Thank you for your patience. We were able to reproduce this issue and concluded this will need deeper investigation from the development team. I have provided them the reproducer will provide an update as soon as they review.&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 14 May 2024 19:43:18 GMT</pubDate>
    <dc:creator>clevels</dc:creator>
    <dc:date>2024-05-14T19:43:18Z</dc:date>
    <item>
      <title>VTune hotspots analysis fails for Python 3.11 when importing NumPY</title>
      <link>https://community.intel.com/t5/Analyzers/VTune-hotspots-analysis-fails-for-Python-3-11-when-importing/m-p/1588390#M24554</link>
      <description>&lt;P&gt;Operating System: Rocky Linux 8.7&lt;/P&gt;&lt;P&gt;VTune version:&amp;nbsp;Intel(R) VTune(TM) Profiler 2024.0.0 (build 626834) Command Line Tool&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to run a VTune analysis of a C++ application which uses the Boost python interface and it crashes importing the NumPY module:&lt;/P&gt;&lt;P&gt;+++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;BR /&gt;+++++++ Signal Handler Invoked +++++++&lt;BR /&gt;+++++++ Signal : SIGSEGV +++++++&lt;BR /&gt;+++++++ Meaning: Invalid memory reference +++++++&lt;BR /&gt;+++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;/P&gt;&lt;P&gt;+++ Stack Trace:&lt;BR /&gt;+++&lt;BR /&gt;+++ [0x7ffff650e926]&lt;BR /&gt;+++ [0x7ffff64fa42d]&lt;BR /&gt;+++ [0x7ffff650d60e]&lt;BR /&gt;+++ [0x7ffff650ee60]&lt;BR /&gt;+++ [0x7ffff6ced9d8]&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: _PyCode_Validate()+0x113&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: PyCode_NewWithPosOnlyArgs()+0x209&lt;BR /&gt;+++ [0x7ffff65b7db1]&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: ()+0x2f5334&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: ()+0x1ed826&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: PyObject_Call()+0x98&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/python3.11/site-packages/numpy/random/mtrand.cpython-311-x86_64-linux-gnu.so: ()+0xd201&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/python3.11/site-packages/numpy/random/mtrand.cpython-311-x86_64-linux-gnu.so: ()+0xe0df&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: PyModule_ExecDef()+0x6f&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: ()+0x29d489&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: ()+0x1f2ae1&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: _PyEval_EvalFrameDefault()+0x7e54&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: _PyFunction_Vectorcall()+0x191&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: ()+0x1f3316&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: PyObject_CallMethodObjArgs()+0x102&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: ()+0x125bfa&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: _PyEval_EvalFrameDefault()+0x58be&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: ()+0x291f29&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: PyEval_EvalCode()+0x9a&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: ()+0x2aa26e&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: ()+0x1ed826&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: _PyEval_EvalFrameDefault()+0x7e54&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: _PyFunction_Vectorcall()+0x191&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: ()+0x1f3316&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: PyObject_CallMethodObjArgs()+0x102&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: ()+0x125bfa&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: ()+0x23426b&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: ()+0x1ed826&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: _PyEval_EvalFrameDefault()+0x7e54&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: _PyFunction_Vectorcall()+0x191&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: ()+0x1f3316&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: PyObject_CallMethodObjArgs()+0x102&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: ()+0x1267ba&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: _PyEval_EvalFrameDefault()+0x58be&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: ()+0x291f29&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: PyEval_EvalCode()+0x9a&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: ()+0x2aa26e&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: ()+0x1ed826&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: _PyEval_EvalFrameDefault()+0x7e54&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: _PyFunction_Vectorcall()+0x191&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: ()+0x1f3316&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: PyObject_CallMethodObjArgs()+0x102&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: ()+0x125bfa&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: ()+0x23426b&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: ()+0x1ed826&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: _PyEval_EvalFrameDefault()+0x7e54&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: _PyFunction_Vectorcall()+0x191&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: ()+0x1f3316&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: PyObject_CallMethodObjArgs()+0x102&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: ()+0x1267ba&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: _PyEval_EvalFrameDefault()+0x58be&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: ()+0x291f29&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: PyEval_EvalCode()+0x9a&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: ()+0x2aa26e&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: ()+0x1ed826&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: _PyEval_EvalFrameDefault()+0x7e54&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: _PyFunction_Vectorcall()+0x191&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: ()+0x1f3316&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: PyObject_CallMethodObjArgs()+0x102&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: ()+0x125bfa&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: ()+0x23426b&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: ()+0x1ed826&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: _PyEval_EvalFrameDefault()+0x7e54&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: _PyFunction_Vectorcall()+0x191&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: ()+0x1f3316&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: PyObject_CallMethodObjArgs()+0x102&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: ()+0x125bfa&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: ()+0x23426b&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: ()+0x1ed826&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: _PyEval_EvalFrameDefault()+0x7e54&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: _PyFunction_Vectorcall()+0x191&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: ()+0x1f3316&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: PyObject_CallMethodObjArgs()+0x102&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: ()+0x125bfa&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: ()+0x23426b&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: ()+0x1ed826&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: PyObject_CallFunction()+0x12d&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: PyImport_Import()+0x190&lt;BR /&gt;+++ /thirdparty/linux64/python/lib/libpython3.11.so.1.0: PyImport_ImportModule()+0x18&lt;BR /&gt;+++ /thirdparty/linux64/lib/libboost_numpy311.so.1.84.0: boost::python::numpy::initialize(bool)+0x1c&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works for python 3.10 &amp;amp; 3.12 and only fails for Python 3.11. Unfortunately I cannot update the version of python used in the application due to depenency issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tested with different versions of NumPY and they all failed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I replicated a similar issue using Anaconda. Steps to reproduce:&lt;/P&gt;&lt;P&gt;mkdir -p ~/miniconda3&lt;BR /&gt;wget &lt;A href="https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh" target="_blank"&gt;https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh&lt;/A&gt; -O ~/miniconda3/miniconda.sh&lt;BR /&gt;bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3&lt;BR /&gt;~/miniconda3/bin/conda init bash&lt;BR /&gt;source ~/.bashrc&lt;BR /&gt;conda activate&lt;BR /&gt;conda install -y python==3.11 numpy&lt;BR /&gt;echo 'import numpy;print("OK")' &amp;gt; numpy-test.py&lt;BR /&gt;python numpy-test.py # OK&lt;BR /&gt;vtune -collect hotspots python numpy-test.py # FAILS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 14:27:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/VTune-hotspots-analysis-fails-for-Python-3-11-when-importing/m-p/1588390#M24554</guid>
      <dc:creator>nickw1</dc:creator>
      <dc:date>2024-04-11T14:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: VTune hotspots analysis fails for Python 3.11 when importing NumPY</title>
      <link>https://community.intel.com/t5/Analyzers/VTune-hotspots-analysis-fails-for-Python-3-11-when-importing/m-p/1588510#M24557</link>
      <description>&lt;P&gt;Thanks for reporting the issue.&amp;nbsp; Let us investigate and give an update then.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 02:09:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/VTune-hotspots-analysis-fails-for-Python-3-11-when-importing/m-p/1588510#M24557</guid>
      <dc:creator>yuzhang3_intel</dc:creator>
      <dc:date>2024-04-12T02:09:04Z</dc:date>
    </item>
    <item>
      <title>Re:VTune hotspots analysis fails for Python 3.11 when importing NumPY</title>
      <link>https://community.intel.com/t5/Analyzers/VTune-hotspots-analysis-fails-for-Python-3-11-when-importing/m-p/1597645#M24696</link>
      <description>&lt;P&gt;Thank you for your patience. We were able to reproduce this issue and concluded this will need deeper investigation from the development team. I have provided them the reproducer will provide an update as soon as they review.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 14 May 2024 19:43:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/VTune-hotspots-analysis-fails-for-Python-3-11-when-importing/m-p/1597645#M24696</guid>
      <dc:creator>clevels</dc:creator>
      <dc:date>2024-05-14T19:43:18Z</dc:date>
    </item>
    <item>
      <title>Re:VTune hotspots analysis fails for Python 3.11 when importing NumPY</title>
      <link>https://community.intel.com/t5/Analyzers/VTune-hotspots-analysis-fails-for-Python-3-11-when-importing/m-p/1601680#M24778</link>
      <description>&lt;P&gt;Hello- thank you for your patience. This issue has been reviewed by our development team and they have confirmed that Python 3.11 is not yet supported with the Intel VTune Profiler. Please let me know if you have any additional questions, otherwise this thread will no longer be monitored by Intel. &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 28 May 2024 20:14:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/VTune-hotspots-analysis-fails-for-Python-3-11-when-importing/m-p/1601680#M24778</guid>
      <dc:creator>clevels</dc:creator>
      <dc:date>2024-05-28T20:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: VTune hotspots analysis fails for Python 3.11 when importing NumPY</title>
      <link>https://community.intel.com/t5/Analyzers/VTune-hotspots-analysis-fails-for-Python-3-11-when-importing/m-p/1603653#M24801</link>
      <description>&lt;P&gt;Thanks very much for the update.&lt;/P&gt;&lt;P&gt;Is there a plan to include support for Python 3.11 in later versions of VTune?&lt;BR /&gt;Are there any patches or workarounds (other than upgrading to Python 3.12) which can help in this situation? We compile python from source so could consider patching the python we use (as long as it doesn't affect normal operation).&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 10:26:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/VTune-hotspots-analysis-fails-for-Python-3-11-when-importing/m-p/1603653#M24801</guid>
      <dc:creator>nickw1</dc:creator>
      <dc:date>2024-06-04T10:26:20Z</dc:date>
    </item>
  </channel>
</rss>

