https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93598

            Bug ID: 93598
           Summary: Segfault when running libgomp.c/pr90811.c on
                    PowerPC64le with nvptx offloading
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Keywords: openmp
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: burnus at gcc dot gnu.org
  Target Milestone: ---

The test case for PR target/90811, libgomp.c/pr90811.c fails on PowerPC64le
with nvptx offloading:

Thread 1 "a.out" received signal SIGSEGV, Segmentation fault.
__memcpy_power7 () at ../sysdeps/powerpc/powerpc64/power7/memcpy.S:143
143     ../sysdeps/powerpc/powerpc64/power7/memcpy.S: No such file or
directory.
(gdb) bt
#0  __memcpy_power7 () at ../sysdeps/powerpc/powerpc64/power7/memcpy.S:143
#1  0x00007ffff6de6a68 in ?? () from
/usr/lib/powerpc64le-linux-gnu/libcuda.so.1
#2  0x00007ffff6eb1cc4 in ?? () from
/usr/lib/powerpc64le-linux-gnu/libcuda.so.1
#3  0x00007ffff6fcd30c in ?? () from
/usr/lib/powerpc64le-linux-gnu/libcuda.so.1
#4  0x00007ffff6fce304 in ?? () from
/usr/lib/powerpc64le-linux-gnu/libcuda.so.1
#5  0x00007ffff6eb3084 in ?? () from
/usr/lib/powerpc64le-linux-gnu/libcuda.so.1
#6  0x00007ffff6d92f28 in ?? () from
/usr/lib/powerpc64le-linux-gnu/libcuda.so.1
#7  0x00007ffff6d96d60 in ?? () from
/usr/lib/powerpc64le-linux-gnu/libcuda.so.1
#8  0x00007ffff6f38ee0 in cuMemcpyDtoH_v2 () from
/usr/lib/powerpc64le-linux-gnu/libcuda.so.1
#9  0x00007ffff7c06a98 in GOMP_OFFLOAD_dev2host (ord=<optimized out>,
dst=0x7fffa0500000, src=0x100014a0, n=1)
    at libgomp/plugin/plugin-nvptx.c:1720
#10 0x00007ffff7f2ba7c in gomp_device_copy (size=<optimized out>,
srcaddr=0x7fffb9c00660, src=0x7ffff7f44ec0 "dev", dstaddr=0x100014a0,
dst=0x7ffff7f45bc8 "host", 
    copy_func=0x7ffff7c069f0 <GOMP_OFFLOAD_dev2host>, devicep=0x100f4a60) at
libgomp/target.c:337
#11 gomp_copy_dev2host (devicep=0x100f4a60, aq=<optimized out>, h=0x100014a0,
d=0x7fffb9c00660, sz=<optimized out>)
    at libgomp/target.c:337
#12 0x00007ffff7f30d44 in gomp_unmap_vars_internal (aq=0x0,
do_copyfrom=do_copyfrom@entry=true, tgt=0x1077dd60, tgt@entry=0x105a2000)
    at libgomp/target.c:1479
#13 gomp_unmap_vars (tgt=tgt@entry=0x1077dd60,
do_copyfrom=do_copyfrom@entry=true)
    at libgomp/target.c:1508
#14 0x00007ffff7f3245c in GOMP_target_ext (device=<optimized out>,
fn=<optimized out>, mapnum=4, hostaddrs=0x7fffffffee60, sizes=0x10090088
<.omp_data_sizes.8>, kinds=0x100900a8 <.omp_data_kinds.9>, 
    flags=<optimized out>, depend=<optimized out>, args=0x7fffffffedf8) at
libgomp/target.c:2166
#15 0x0000000010000cd0 in main () at libgomp/testsuite/libgomp.c/pr90811.c:13

Reply via email to