[Openmp-dev] segmentation fault when starting offload

Jeff Hammond via Openmp-dev openmp-dev at lists.llvm.org
Sat Mar 16 09:03:35 PDT 2019


Null ptr deteference in LoadRTLs suggests maybe the RTL wasn’t found. Are
the file systems of these two systems identical?

Jeff

On Sat, Mar 16, 2019 at 8:50 AM Ye Luo via Openmp-dev <
openmp-dev at lists.llvm.org> wrote:

> Hi,
> I just built the llvm+clang+openmp on 2 workstations.
> One of them works fine but the other one cannot even start a toy code.
> Any clue what is going on?
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x0000000000000000 in ?? ()
> (gdb) bt
> #0  0x0000000000000000 in ?? ()
> #1  0x00007ffff71cf718 in RTLsTy::LoadRTLs (this=0x7ffff73f82c8 <RTLs>) at
> /home/yeluo/opt/llvm-clang/sources/llvm/projects/openmp/libomptarget/src/rtl.cpp:48
> #2  0x00007ffff71d7e31 in std::__invoke_impl<void, void (RTLsTy::*)(),
> RTLsTy*> (__f=@0x7fffffffda70: (void (RTLsTy::*)(RTLsTy * const))
> 0x7ffff71cf630 <RTLsTy::LoadRTLs()>,
>     __t=@0x7fffffffda68: 0x7ffff73f82c8 <RTLs>) at
> /usr/lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/bits/invoke.h:73
> #3  0x00007ffff71d7d92 in std::__invoke<void (RTLsTy::*)(), RTLsTy*>
> (__fn=@0x7fffffffda70: (void (RTLsTy::*)(RTLsTy * const)) 0x7ffff71cf630
> <RTLsTy::LoadRTLs()>,
>     __args=@0x7fffffffda68: 0x7ffff73f82c8 <RTLs>) at
> /usr/lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/bits/invoke.h:95
> #4  0x00007ffff71d7d4c in void std::call_once<void (RTLsTy::*)(),
> RTLsTy*>(std::once_flag&, void (RTLsTy::*&&)(),
> RTLsTy*&&)::{lambda()#1}::operator()() const (this=0x7fffffffd808)
>     at /usr/lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/mutex:672
> #5  0x00007ffff71d7d07 in void std::call_once<void (RTLsTy::*)(),
> RTLsTy*>(std::once_flag&, void (RTLsTy::*&&)(),
> RTLsTy*&&)::{lambda()#2}::operator()() const (this=0x7ffff7dce7b8)
>     at /usr/lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/mutex:677
> #6  0x00007ffff71d7cd9 in void std::call_once<void (RTLsTy::*)(),
> RTLsTy*>(std::once_flag&, void (RTLsTy::*&&)(),
> RTLsTy*&&)::{lambda()#2}::__invoke() ()
>     at /usr/lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/mutex:677
> #7  0x00007ffff6d9e827 in __pthread_once_slow (once_control=0x7ffff73f82c8
> <RTLs>, init_routine=0x7ffff7b08760 <__once_proxy>) at pthread_once.c:116
> #8  0x00007ffff71d7cab in __gthread_once (__once=0x7ffff73f82c8 <RTLs>,
> __func=0x7ffff7b08760 <__once_proxy>)
>     at
> /usr/lib/gcc/x86_64-linux-gnu/8/../../../../include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:699
> #9  0x00007ffff71d06c4 in std::call_once<void (RTLsTy::*)(), RTLsTy*>
> (__once=..., __f=@0x7fffffffda70: (void (RTLsTy::*)(RTLsTy * const))
> 0x7ffff71cf630 <RTLsTy::LoadRTLs()>,
>     __args=@0x7fffffffda68: 0x7ffff73f82c8 <RTLs>) at
> /usr/lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/mutex:684
> #10 0x00007ffff71cff41 in RTLsTy::RegisterLib (this=0x7ffff73f82c8 <RTLs>,
> desc=0x4018d0 <.omp_offloading.descriptor>)
>     at
> /home/yeluo/opt/llvm-clang/sources/llvm/projects/openmp/libomptarget/src/rtl.cpp:191
> #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
> #12 0x0000000000400d87 in
> .omp_offloading.descriptor_reg.nvptx64-nvidia-cuda ()
> #13 0x000000000040170d in __libc_csu_init ()
> #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)
>     at ../csu/libc-start.c:266
> #15 0x0000000000400dfa in _start ()
>
> Ye
> ===================
> Ye Luo, Ph.D.
> Computational Science Division & Leadership Computing Facility
> Argonne National Laboratory
> _______________________________________________
> Openmp-dev mailing list
> Openmp-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev
>
-- 
Jeff Hammond
jeff.science at gmail.com
http://jeffhammond.github.io/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20190316/43e1e118/attachment-0001.html>


More information about the Openmp-dev mailing list