On 2015-05-05 5:43 AM, Thomas Schwinge wrote:
FAIL: libgomp.oacc-c/../libgomp.oacc-c-c++-common/lib-62.c
>-DACC_DEVICE_TYPE_hos
>t=1 -DACC_MEM_SHARED=1 output pattern test, is , should match invalid size
With this one I'll need your help: please cite from libgomp.log (or, from
a manual run) the actual output message that you're getting.
There's no output message:
# ./lib-62.exe
Segmentation fault (core dumped)

(gdb) r
Starting program: /test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libgomp/testsuite/lib-62.exe
warning: Private mapping of shared library text was not specified
by the executable; setting a breakpoint in a shared library which
is not privately mapped will not work.  See the HP-UX 11i v3 chatr
manpage for methods to privately map shared library text.

Program received signal SIGSEGV, Segmentation fault.
acc_init (d=acc_device_nvidia) at ../../../gcc/libgomp/oacc-init.c:178
178       ndevs = base_dev->get_num_devices_func ();
(gdb) disass $pc-16,$pc+16
Dump of assembler code from 0xc12731c8 to 0xc12731e8:
   0xc12731c8 <acc_init+64>:    copy r4,r19
   0xc12731cc <acc_init+68>:    copy r6,r26
   0xc12731d0 <acc_init+72>:    b,l 0xc1272af0 <resolve_device>,rp
   0xc12731d4 <acc_init+76>:    copy r19,r4
=> 0xc12731d8 <acc_init+80>:    ldw 1c(ret0),r22
   0xc12731dc <acc_init+84>:    copy r4,r19
   0xc12731e0 <acc_init+88>:    copy ret0,r3
   0xc12731e4 <acc_init+92>:    copy r19,r4
End of assembler dump.
(gdb) p/x $ret0
$1 = 0x0

It would seem resolve_device returned 0.

Dave

--
John David Anglin  dave.ang...@bell.net

Reply via email to