<?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: SEGFAULT on MPI_Finalize in Intel® MPI Library</title>
    <link>https://community.intel.com/t5/Intel-MPI-Library/SEGFAULT-on-MPI-Finalize/m-p/1351156#M9097</link>
    <description>&lt;P&gt;Thank you for taking a look. I am not experiencing any segfault with the example provided. I haven't been able to make a simple reproduction of the problem, I'm afraid. But when I run the actual simulation, I get the attached log file, where at the end is the segfault.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jan 2022 15:27:18 GMT</pubDate>
    <dc:creator>menno</dc:creator>
    <dc:date>2022-01-13T15:27:18Z</dc:date>
    <item>
      <title>SEGFAULT on MPI_Finalize</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/SEGFAULT-on-MPI-Finalize/m-p/1350363#M9085</link>
      <description>&lt;P&gt;I'm using oneAPI 2021.4 MPI and run simulations that use MPI_Comm_spawn and MPI_Comm_connect. To make this work I set the following environment variables:&lt;/P&gt;
&lt;LI-CODE lang="bash"&gt;export I_MPI_SPAWN=on
export FI_MLX_NS_ENABLE=1
export I_MPI_SPAWN_EXPERIMENTAL=1&lt;/LI-CODE&gt;
&lt;P&gt;The third one is coming off a previous post on this forum, see &lt;A href="https://community.intel.com/t5/Intel-oneAPI-HPC-Toolkit/SEGFAULT-on-repeated-MPI-Comm-connect-MPI-Comm-accept-MPI-Comm/m-p/1291702#M8479" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;When the end of the simulations is reached, I get the following error&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[node070:922191:0:922191] Caught signal 11 (Segmentation fault: address not mapped to object at address 0x8)

==== backtrace (tid: 922191) ====
 0 0x0000000000012b20 .annobin_sigaction.c()  sigaction.c:0
 1 0x00000000001fa9e1 MPIDIU_get_avt_size()  /build/impi/_buildspace/release/../../src/mpid/ch4/src/ch4r_proc.c:90
 2 0x00000000005fc11b MPIDI_OFI_free_avt_hook()  /build/impi/_buildspace/release/../../src/mpid/ch4/netmod/include/../ofi/ofi_proc.h:61
 3 0x00000000005fc11b graceful_disconnect()  /build/impi/_buildspace/release/../../src/mpid/ch4/netmod/ofi/ofi_init.c:465
 4 0x00000000005fc11b MPIDI_OFI_mpi_finalize_hook()  /build/impi/_buildspace/release/../../src/mpid/ch4/netmod/ofi/ofi_init.c:2192
 5 0x00000000001da929 MPID_Finalize()  /build/impi/_buildspace/release/../../src/mpid/ch4/src/ch4_init.c:1334
 6 0x00000000003004c5 PMPI_Finalize()  /build/impi/_buildspace/release/../../src/mpi/init/finalize.c:158
 7 0x000000000042fe7e MAIN__()  ???:0
 8 0x000000000040d8e2 main()  ???:0
 9 0x00000000000237b3 __libc_start_main()  ???:0
10 0x000000000040d7ee _start()  ???:0&lt;/LI-CODE&gt;
&lt;P&gt;Is there something I can do to fix this?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 10:20:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/SEGFAULT-on-MPI-Finalize/m-p/1350363#M9085</guid>
      <dc:creator>menno</dc:creator>
      <dc:date>2022-01-11T10:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: SEGFAULT on MPI_Finalize</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/SEGFAULT-on-MPI-Finalize/m-p/1350781#M9092</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We tried at our end using Intel oneAPI 2021.4 on Rocky linux machine by following the below steps.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;source /opt/intel/oneapi/setvars.sh
export FI_PROVIDER=mlx
export I_MPI_SPAWN=on
export FI_MLX_NS_ENABLE=1
export I_MPI_SPAWN_EXPERIMENTAL=1
mpiicc example.c
mpirun -n 3 ./a.out&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We do not encounter any segmentation fault. It worked fine at our end as shown in the screenshots attached. Also, please find the example.c attached.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, could you please provide us with the complete debug file "LOG" by using the below commands?&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;source /opt/intel/oneapi/setvars.sh
export I_MPI_DEBUG=30
export FI_LOG_LEVEL=debug
export FI_PROVIDER=mlx
export I_MPI_SPAWN=on
export FI_MLX_NS_ENABLE=1
export I_MPI_SPAWN_EXPERIMENTAL=1
mpiicc example.c
mpirun -n 3 ./a.out &amp;amp;&amp;gt; LOG&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Hemanth.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2022 11:49:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/SEGFAULT-on-MPI-Finalize/m-p/1350781#M9092</guid>
      <dc:creator>HemanthCH_Intel</dc:creator>
      <dc:date>2022-01-12T11:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: SEGFAULT on MPI_Finalize</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/SEGFAULT-on-MPI-Finalize/m-p/1351156#M9097</link>
      <description>&lt;P&gt;Thank you for taking a look. I am not experiencing any segfault with the example provided. I haven't been able to make a simple reproduction of the problem, I'm afraid. But when I run the actual simulation, I get the attached log file, where at the end is the segfault.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 15:27:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/SEGFAULT-on-MPI-Finalize/m-p/1351156#M9097</guid>
      <dc:creator>menno</dc:creator>
      <dc:date>2022-01-13T15:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: SEGFAULT on MPI_Finalize</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/SEGFAULT-on-MPI-Finalize/m-p/1351159#M9098</link>
      <description>&lt;P&gt;Furthermore, I was able to attach a debugger and break on &lt;FONT face="courier new,courier"&gt;MPIDIU_get_avt_size&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Thread 1 "palm_main" hit Breakpoint 1, MPIDIU_get_avt_size (avtid=2) at ../../src/mpid/ch4/src/ch4r_proc.c:90&lt;BR /&gt;90 ../../src/mpid/ch4/src/ch4r_proc.c: No such file or directory.&lt;BR /&gt;(gdb) p MPIDI_global.avt_mgr&lt;BR /&gt;$1 = {mmapped_size = 32768, max_n_avts = 4, n_avts = 3, next_avtid = 2, free_avtid = 0x7f20000f7b80}&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, it looks like it enters &lt;FONT face="courier new,courier"&gt;MPIDIU_get_avt_size&lt;/FONT&gt; with &lt;FONT face="courier new,courier"&gt;avtid&lt;/FONT&gt;=2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, when I do the following, you see that for index '2' there is a problem to dereference:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;(gdb) p MPIDI_av_table[0]-&amp;gt;size&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;$8 = 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;(gdb) p MPIDI_av_table[1]-&amp;gt;size&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;$9 = 8&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;(gdb) p MPIDI_av_table[2]-&amp;gt;size&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Cannot access memory at address 0x8&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NOTE: I have referred to the MPICH-3.4.2 source for the details on the &lt;FONT face="courier new,courier"&gt;MPIDIU_get_avt_size&lt;/FONT&gt; function.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 15:36:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/SEGFAULT-on-MPI-Finalize/m-p/1351159#M9098</guid>
      <dc:creator>menno</dc:creator>
      <dc:date>2022-01-13T15:36:00Z</dc:date>
    </item>
    <item>
      <title>Re:SEGFAULT on MPI_Finalize</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/SEGFAULT-on-MPI-Finalize/m-p/1352974#M9106</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you please provide the below details?&lt;/P&gt;&lt;P&gt;1)Are you running on a single node or multi-node? If you are using a cluster please provide details.&lt;/P&gt;&lt;P&gt;2)Provide us with the command you used to run the program?&lt;/P&gt;&lt;P&gt;2)which fabric provider/ Interconnect you are using?&lt;/P&gt;&lt;P&gt;3)Is sugar++parallel compiled with MPICH? And, are you trying to run it with Intel mpi&lt;/P&gt;&lt;P&gt;4)The debug log which you have provided is the single log created by a single run? Or several logs combined in one file after several runs of an application?&lt;/P&gt;&lt;P&gt;5)Could you please compile with -g option for getting a more detailed debug log in trace.&lt;/P&gt;&lt;P&gt;6) Also, please provide us with the OS details &amp;amp; CPU information.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Hemanth.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Jan 2022 06:54:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/SEGFAULT-on-MPI-Finalize/m-p/1352974#M9106</guid>
      <dc:creator>HemanthCH_Intel</dc:creator>
      <dc:date>2022-01-20T06:54:18Z</dc:date>
    </item>
    <item>
      <title>Re:SEGFAULT on MPI_Finalize</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/SEGFAULT-on-MPI-Finalize/m-p/1355946#M9129</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We have not heard back from you. Could you please provide the above mentioned details?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Hemanth.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 31 Jan 2022 07:47:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/SEGFAULT-on-MPI-Finalize/m-p/1355946#M9129</guid>
      <dc:creator>HemanthCH_Intel</dc:creator>
      <dc:date>2022-01-31T07:47:13Z</dc:date>
    </item>
    <item>
      <title>Re:SEGFAULT on MPI_Finalize</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/SEGFAULT-on-MPI-Finalize/m-p/1358053#M9149</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We have not heard back from you. This thread will no longer be monitored by Intel. If you need further assistance, please post a new question.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Hemanth.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Feb 2022 13:47:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/SEGFAULT-on-MPI-Finalize/m-p/1358053#M9149</guid>
      <dc:creator>HemanthCH_Intel</dc:creator>
      <dc:date>2022-02-07T13:47:10Z</dc:date>
    </item>
  </channel>
</rss>

