<div><div dir="auto">Null ptr deteference in <span style="color:rgb(49,49,49);word-spacing:1px">LoadRTLs suggests maybe the RTL wasn’t found. Are the file systems of these two systems identical?</span></div></div><div dir="auto"><span style="color:rgb(49,49,49);word-spacing:1px"><br></span></div><div dir="auto"><span style="color:rgb(49,49,49);word-spacing:1px">Jeff</span></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Mar 16, 2019 at 8:50 AM Ye Luo via Openmp-dev <<a href="mailto:openmp-dev@lists.llvm.org">openmp-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>Hi,</div><div>I just built the llvm+clang+openmp on 2 workstations.</div><div>One of them works fine but the other one cannot even start a toy code.</div><div>Any clue what is going on?<br></div><div><br></div><div>Program received signal SIGSEGV, Segmentation fault.</div><div>0x0000000000000000 in ?? ()<br>(gdb) bt<br>#0  0x0000000000000000 in ?? ()<br>#1  0x00007ffff71cf718 in RTLsTy::LoadRTLs (this=0x7ffff73f82c8 <RTLs>) at /home/yeluo/opt/llvm-clang/sources/llvm/projects/openmp/libomptarget/src/rtl.cpp:48<br>#2  0x00007ffff71d7e31 in std::__invoke_impl<void, void (RTLsTy::*)(), RTLsTy*> (__f=@0x7fffffffda70: (void (RTLsTy::*)(RTLsTy * const)) 0x7ffff71cf630 <RTLsTy::LoadRTLs()>, <br>    __t=@0x7fffffffda68: 0x7ffff73f82c8 <RTLs>) at /usr/lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/bits/invoke.h:73<br>#3  0x00007ffff71d7d92 in std::__invoke<void (RTLsTy::*)(), RTLsTy*> (__fn=@0x7fffffffda70: (void (RTLsTy::*)(RTLsTy * const)) 0x7ffff71cf630 <RTLsTy::LoadRTLs()>, <br>    __args=@0x7fffffffda68: 0x7ffff73f82c8 <RTLs>) at /usr/lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/bits/invoke.h:95<br>#4  0x00007ffff71d7d4c in void std::call_once<void (RTLsTy::*)(), RTLsTy*>(std::once_flag&, void (RTLsTy::*&&)(), RTLsTy*&&)::{lambda()#1}::operator()() const (this=0x7fffffffd808)<br>    at /usr/lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/mutex:672<br>#5  0x00007ffff71d7d07 in void std::call_once<void (RTLsTy::*)(), RTLsTy*>(std::once_flag&, void (RTLsTy::*&&)(), RTLsTy*&&)::{lambda()#2}::operator()() const (this=0x7ffff7dce7b8)<br>    at /usr/lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/mutex:677<br>#6  0x00007ffff71d7cd9 in void std::call_once<void (RTLsTy::*)(), RTLsTy*>(std::once_flag&, void (RTLsTy::*&&)(), RTLsTy*&&)::{lambda()#2}::__invoke() ()<br>    at /usr/lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/mutex:677<br>#7  0x00007ffff6d9e827 in __pthread_once_slow (once_control=0x7ffff73f82c8 <RTLs>, init_routine=0x7ffff7b08760 <__once_proxy>) at pthread_once.c:116<br>#8  0x00007ffff71d7cab in __gthread_once (__once=0x7ffff73f82c8 <RTLs>, __func=0x7ffff7b08760 <__once_proxy>)<br>    at /usr/lib/gcc/x86_64-linux-gnu/8/../../../../include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:699<br>#9  0x00007ffff71d06c4 in std::call_once<void (RTLsTy::*)(), RTLsTy*> (__once=..., __f=@0x7fffffffda70: (void (RTLsTy::*)(RTLsTy * const)) 0x7ffff71cf630 <RTLsTy::LoadRTLs()>, <br>    __args=@0x7fffffffda68: 0x7ffff73f82c8 <RTLs>) at /usr/lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/mutex:684<br>#10 0x00007ffff71cff41 in RTLsTy::RegisterLib (this=0x7ffff73f82c8 <RTLs>, desc=0x4018d0 <.omp_offloading.descriptor>)<br>    at /home/yeluo/opt/llvm-clang/sources/llvm/projects/openmp/libomptarget/src/rtl.cpp:191<br>#11 0x00007ffff71ce13f in __tgt_register_lib (desc=0x4018d0 <.omp_offloading.descriptor>) at /home/yeluo/opt/llvm-clang/sources/llvm/projects/openmp/libomptarget/src/interface.cpp:74<br>#12 0x0000000000400d87 in .omp_offloading.descriptor_reg.nvptx64-nvidia-cuda ()<br>#13 0x000000000040170d in __libc_csu_init ()<br>#14 0x00007ffff69bfb28 in __libc_start_main (main=0x400ec0 <main>, argc=1, argv=0x7fffffffdbf8, init=0x4016c0 <__libc_csu_init>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffdbe8)<br>    at ../csu/libc-start.c:266<br>#15 0x0000000000400dfa in _start ()<br><br></div><div>Ye<br></div><div><div><div><div dir="ltr" class="m_8088450636618819113gmail_signature"><div dir="ltr"><div><div dir="ltr">===================<br>
Ye Luo, Ph.D.<br>Computational Science Division & Leadership Computing Facility<br>
Argonne National Laboratory</div></div></div></div></div></div></div></div></div>
_______________________________________________<br>
Openmp-dev mailing list<br>
<a href="mailto:Openmp-dev@lists.llvm.org" target="_blank">Openmp-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev</a><br>
</blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Jeff Hammond<br><a href="mailto:jeff.science@gmail.com" target="_blank">jeff.science@gmail.com</a><br><a href="http://jeffhammond.github.io/" target="_blank">http://jeffhammond.github.io/</a></div>