[Openmp-dev] Segmentation fault with latest version of trunk

Kelvin Li via Openmp-dev openmp-dev at lists.llvm.org
Wed Sep 5 09:15:12 PDT 2018


It works for me on Power as well except an intermittent failure in
lock/omp_init_lock.c.

Kelvin


"Openmp-dev" <openmp-dev-bounces at lists.llvm.org> wrote on 2018/09/05 
11:10:18 AM:

> From: Jonas Hahnfeld via Openmp-dev <openmp-dev at lists.llvm.org>
> To: Gheorghe-Teod Bercea <Gheorghe-Teod.Bercea at ibm.com>
> Cc: llvm-openmp-dev <openmp-dev at lists.llvm.org>
> Date: 2018/09/05 11:10 AM
> Subject: Re: [Openmp-dev] Segmentation fault with latest version of 
trunk
> Sent by: "Openmp-dev" <openmp-dev-bounces at lists.llvm.org>
> 
> Working for me right now, even though I haven't updated the compiler 
> today. Can you get line information?
> 
> I'm aware of INVALID URI REMOVED
> u=https-3A__reviews.llvm.org_D51653&d=DwIGaQ&c=jf_iaSHvJObTbx-
> 
siA1ZOg&r=yebGUrvFJWJ7GtM9woczVA&m=owEVGaFTPyPoov0Opc6_riz5JOClgKGoPChFs4aQcL4&s=16vUZ9CZQUjdpWnilFZhqgNiYgS4ECKJP8aiAoKEL-
> s&e= which changed 
> RTLsTy::LoadRTLs(), but that has only removed an unused vector.
> My other cleanups were mostly focused on the NVPTX device runtime...
> 
> Jonas
> 
> On 2018-09-05 16:57, Gheorghe-Teod Bercea via Openmp-dev wrote:
> > Hi everyone,
> > 
> > I just updated my branches I seem to fail to execute anything
> > involving OpneMP. I'm getting the a seg fault immediately.
> > 
> > Is OpenMP currently broken? Looks like libomptarget might be to blame.
> > 
> > Here is the gdb trace:
> > 
> > Program received signal SIGSEGV, Segmentation fault.
> > 0x0000000000000000 in ?? ()
> > (gdb) up
> > #1  0x00003fffb7c25814 in RTLsTy::LoadRTLs() () from
> > /localhd/gbercea/patch-compiler/obj-release/lib/libomptarget.so
> > (gdb)
> > #2  0x00003fffb7c28624 in void
> > std::__once_call_impl<std::_Bind_simple<std::_Mem_fn<void
> > (RTLsTy::*)()> (RTLsTy*)> >() () from
> > /localhd/gbercea/patch-compiler/obj-release/lib/libomptarget.so
> > (gdb)
> > #3  0x00003fffb7efb0e4 in __once_proxy () from
> > /usr/lib/powerpc64le-linux-gnu/libstdc++.so.6
> > (gdb)
> > #4  0x00003fffb7bd058c in __GI___pthread_once
> > (once_control=0x3fffb7c40338 <RTLs>, init_routine=0x3fffb7efb0b0
> > <__once_proxy>) at
> > ../nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c:86
> > 86        ../nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: No
> > such file or directory.
> > (gdb)
> > #5  0x00003fffb7c25bb4 in RTLsTy::RegisterLib(__tgt_bin_desc*) () from
> > /localhd/gbercea/patch-compiler/obj-release/lib/libomptarget.so
> > (gdb)
> > #6  0x00003fffb7c244ec in __tgt_register_lib () from
> > /localhd/gbercea/patch-compiler/obj-release/lib/libomptarget.so
> > (gdb)
> > #7  0x0000000010000df8 in
> > .omp_offloading.descriptor_reg.nvptx64-nvidia-cuda ()
> > (gdb)
> > #8  0x000000001002a6c4 in __libc_csu_init ()
> > (gdb)
> > #9  0x00003fffb7a24c8c in generic_start_main (main=0x100019a0 <main>,
> > argc=<optimized out>, argv=0x3ffffffff138, auxvec=0x3ffffffff2f0,
> > init=0x1002a630 <__libc_csu_init>, rtld_fini=<optimized out>,
> > stack_end=<optimized out>,
> >     fini=<optimized out>) at ../csu/libc-start.c:246
> > 246        ../csu/libc-start.c: No such file or directory.
> > (gdb)
> > #10 0x00003fffb7a24ef8 in __libc_start_main (argc=<optimized out>,
> > argv=<optimized out>, ev=<optimized out>, auxvec=<optimized out>,
> > rtld_fini=<optimized out>, stinfo=<optimized out>,
> > stack_on_entry=<optimized out>)
> >     at ../sysdeps/unix/sysv/linux/powerpc/libc-start.c:93
> > 93        ../sysdeps/unix/sysv/linux/powerpc/libc-start.c: No such
> > file or directory.
> > (gdb)
> > #11 0x0000000000000000 in ?? ()
> > 
> > Thanks,
> > 
> > --Doru
> > _______________________________________________
> > Openmp-dev mailing list
> > Openmp-dev at lists.llvm.org
> > INVALID URI REMOVED
> 
u=http-3A__lists.llvm.org_cgi-2Dbin_mailman_listinfo_openmp-2Ddev&d=DwIGaQ&c=jf_iaSHvJObTbx-
> 
siA1ZOg&r=yebGUrvFJWJ7GtM9woczVA&m=owEVGaFTPyPoov0Opc6_riz5JOClgKGoPChFs4aQcL4&s=xD_Drx63Y_9ArnlNy6cYBTMEOTfYP7fyFnWagkJJRIs&e=
> _______________________________________________
> Openmp-dev mailing list
> Openmp-dev at lists.llvm.org
> INVALID URI REMOVED
> 
u=http-3A__lists.llvm.org_cgi-2Dbin_mailman_listinfo_openmp-2Ddev&d=DwIGaQ&c=jf_iaSHvJObTbx-
> 
siA1ZOg&r=yebGUrvFJWJ7GtM9woczVA&m=owEVGaFTPyPoov0Opc6_riz5JOClgKGoPChFs4aQcL4&s=xD_Drx63Y_9ArnlNy6cYBTMEOTfYP7fyFnWagkJJRIs&e=
> 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20180905/d77f951a/attachment-0001.html>


More information about the Openmp-dev mailing list