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

            Bug ID: 90520
           Summary: [10 regression] libstdc++-xmethods/unique_ptr.cc
                    triggers python failure starting with r271158
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
          Assignee: unassigned at gcc dot gnu.org
          Reporter: seurer at gcc dot gnu.org
  Target Milestone: ---

Python Exception <class 'AttributeError'> 'NoneType' object has no attribute
'dereference': 
unique_ptr.gdb:10: Error in sourced command file:
Error while executing Python code.
FAIL: libstdc++-xmethods/unique_ptr.cc


Note: this system has Python 2.7.12 installed.  It also fails on another system
with 2.7.15.

------------------------------------------------------------------------
r271158 | redi | 2019-05-14 06:17:11 -0500 (Tue, 14 May 2019) | 17 lines

LWG 2899 - Make is_move_constructible correct for unique_ptr

        * include/bits/unique_ptr.h (__uniq_ptr_impl): Add move constructor,
        move assignment operator.
        (__uniq_ptr_impl::release(), __uniq_ptr_impl::reset(pointer)): Add.
        (__uniq_ptr_data): New class template with conditionally deleted
        special members.
        (unique_ptr, unique_ptr<T[], D>): Change type of data member from
        __uniq_ptr_impl<T, D> to __uniq_ptr_data<T, D>. Define move
        constructor and move assignment operator as defaulted.
        (unique_ptr::release(), unique_ptr<T[], D>::release()): Forward to
        __uniq_ptr_impl::release().
        (unique_ptr::reset(pointer), unique_ptr<T[], D>::reset<U>(U)): Forward
        to __uniq_ptr_impl::reset(pointer).
        * python/libstdcxx/v6/printers.py (UniquePointerPrinter.__init__):
        Check for new __uniq_ptr_data type.
        * testsuite/20_util/unique_ptr/dr2899.cc: New test.


Executing on host: /home/seurer/gcc/build/gcc-trunk/./gcc/xg++ -shared-libgcc
-B/home/seurer/gcc/build/gcc-trunk/./gcc -nostdinc++
-L/home/seurer/gcc/build/gcc-trunk/powerpc64le-unknown-linux-gnu/libstdc++-v3/src
-L/home/seurer/gcc/build/gcc-trunk/powerpc64le-unknown-linux-gnu/libstdc++-v3/src/.libs
-L/home/seurer/gcc/build/gcc-trunk/powerpc64le-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
-B/home/seurer/gcc/install/gcc-trunk/powerpc64le-unknown-linux-gnu/bin/
-B/home/seurer/gcc/install/gcc-trunk/powerpc64le-unknown-linux-gnu/lib/
-isystem
/home/seurer/gcc/install/gcc-trunk/powerpc64le-unknown-linux-gnu/include
-isystem
/home/seurer/gcc/install/gcc-trunk/powerpc64le-unknown-linux-gnu/sys-include
-B/home/seurer/gcc/build/gcc-trunk/powerpc64le-unknown-linux-gnu/./libstdc++-v3/src/.libs
-fmessage-length=0 -fno-show-column -ffunction-sections -fdata-sections -g -O2
-D_GNU_SOURCE -DLOCALEDIR="." -nostdinc++
-I/home/seurer/gcc/build/gcc-trunk/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/powerpc64le-unknown-linux-gnu
-I/home/seurer/gcc/build/gcc-trunk/powerpc64le-unknown-linux-gnu/libstdc++-v3/include
-I/home/seurer/gcc/gcc-trunk/libstdc++-v3/libsupc++
-I/home/seurer/gcc/gcc-trunk/libstdc++-v3/include/backward
-I/home/seurer/gcc/gcc-trunk/libstdc++-v3/testsuite/util
/home/seurer/gcc/gcc-trunk/libstdc++-v3/testsuite/libstdc++-xmethods/unique_ptr.cc
   -g -O0 -fno-diagnostics-show-caret -fdiagnostics-color=never ./libtestc++.a
-Wl,--gc-sections
-L/home/seurer/gcc/build/gcc-trunk/powerpc64le-unknown-linux-gnu/libstdc++-v3/src/filesystem/.libs
 -lm  -o ./unique_ptr.exe    (timeout = 600)
spawn -ignore SIGHUP /home/seurer/gcc/build/gcc-trunk/./gcc/xg++ -shared-libgcc
-B/home/seurer/gcc/build/gcc-trunk/./gcc -nostdinc++
-L/home/seurer/gcc/build/gcc-trunk/powerpc64le-unknown-linux-gnu/libstdc++-v3/src
-L/home/seurer/gcc/build/gcc-trunk/powerpc64le-unknown-linux-gnu/libstdc++-v3/src/.libs
-L/home/seurer/gcc/build/gcc-trunk/powerpc64le-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
-B/home/seurer/gcc/install/gcc-trunk/powerpc64le-unknown-linux-gnu/bin/
-B/home/seurer/gcc/install/gcc-trunk/powerpc64le-unknown-linux-gnu/lib/
-isystem
/home/seurer/gcc/install/gcc-trunk/powerpc64le-unknown-linux-gnu/include
-isystem
/home/seurer/gcc/install/gcc-trunk/powerpc64le-unknown-linux-gnu/sys-include
-B/home/seurer/gcc/build/gcc-trunk/powerpc64le-unknown-linux-gnu/./libstdc++-v3/src/.libs
-fmessage-length=0 -fno-show-column -ffunction-sections -fdata-sections -g -O2
-D_GNU_SOURCE -DLOCALEDIR="." -nostdinc++
-I/home/seurer/gcc/build/gcc-trunk/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/powerpc64le-unknown-linux-gnu
-I/home/seurer/gcc/build/gcc-trunk/powerpc64le-unknown-linux-gnu/libstdc++-v3/include
-I/home/seurer/gcc/gcc-trunk/libstdc++-v3/libsupc++
-I/home/seurer/gcc/gcc-trunk/libstdc++-v3/include/backward
-I/home/seurer/gcc/gcc-trunk/libstdc++-v3/testsuite/util
/home/seurer/gcc/gcc-trunk/libstdc++-v3/testsuite/libstdc++-xmethods/unique_ptr.cc
-g -O0 -fno-diagnostics-show-caret -fdiagnostics-color=never ./libtestc++.a
-Wl,--gc-sections
-L/home/seurer/gcc/build/gcc-trunk/powerpc64le-unknown-linux-gnu/libstdc++-v3/src/filesystem/.libs
-lm -o ./unique_ptr.exe
Setting LD_LIBRARY_PATH to
:/home/seurer/gcc/build/gcc-trunk/gcc:/home/seurer/gcc/build/gcc-trunk/powerpc64le-unknown-linux-gnu/./libstdc++-v3/../libatomic/.libs:/home/seurer/gcc/build/gcc-trunk/powerpc64le-unknown-linux-gnu/./libstdc++-v3/../libgomp/.libs:/home/seurer/gcc/build/gcc-trunk/powerpc64le-unknown-linux-gnu/./libstdc++-v3/src/.libs::/home/seurer/gcc/build/gcc-trunk/gcc:/home/seurer/gcc/build/gcc-trunk/powerpc64le-unknown-linux-gnu/./libstdc++-v3/../libatomic/.libs:/home/seurer/gcc/build/gcc-trunk/powerpc64le-unknown-linux-gnu/./libstdc++-v3/../libgomp/.libs:/home/seurer/gcc/build/gcc-trunk/powerpc64le-unknown-linux-gnu/./libstdc++-v3/src/.libs:/home/seurer/gcc/build/gcc-trunk/./gmp/.libs:/home/seurer/gcc/build/gcc-trunk/./prev-gmp/.libs:/home/seurer/gcc/build/gcc-trunk/./mpfr/src/.libs:/home/seurer/gcc/build/gcc-trunk/./prev-mpfr/src/.libs:/home/seurer/gcc/build/gcc-trunk/./mpc/src/.libs:/home/seurer/gcc/build/gcc-trunk/./prev-mpc/src/.libs:/home/seurer/gcc/build/gcc-trunk/./isl/.libs:/home/seurer/gcc/build/gcc-trunk/./prev-isl/.libs:/home/seurer/gcc/install/gcc-7.2.0/lib64
Execution timeout is: 300
spawn [open ...]
PASS: libstdc++-xmethods/unique_ptr.cc execution test
Spawning: gdb -nw -nx -quiet -batch -ex "python print(gdb.type_printers)"
spawn gdb -nw -nx -quiet -batch -ex python print(gdb.type_printers)
[]
spawn gdb -nx -nw -quiet -batch -x unique_ptr.gdb
Breakpoint 1 at 0x10000afc: file
/home/seurer/gcc/gcc-trunk/libstdc++-v3/testsuite/libstdc++-xmethods/unique_ptr.cc,
line 60.
skipping: Breakpoint 1 at 0x10000afc: file
/home/seurer/gcc/gcc-trunk/libstdc++-v3/testsuite/libstdc++-xmethods/unique_ptr.cc,
line 60.

Breakpoint 1, main () at
/home/seurer/gcc/gcc-trunk/libstdc++-v3/testsuite/libstdc++-xmethods/unique_ptr.cc:60
skipping: 
skipping: Breakpoint 1, main () at
/home/seurer/gcc/gcc-trunk/libstdc++-v3/testsuite/libstdc++-xmethods/unique_ptr.cc:60
60        return 0;  // Mark SPOT
>From                To                  Syms Read   Shared Object Library
0x00003fffb7fa0f80  0x00003fffb7fce644  Yes         /lib64/ld64.so.2
0x00003fffb7d9c040  0x00003fffb7efa6c0  Yes        
/home/seurer/gcc/build/gcc-trunk/powerpc64le-unknown-linux-gnu/./libstdc++-v3/src/.libs/libstdc++.so.6
0x00003fffb7bd6400  0x00003fffb7c4cf6c  Yes        
/lib/powerpc64le-linux-gnu/libm.so.6
0x00003fffb7b92fc0  0x00003fffb7ba0480  Yes        
/home/seurer/gcc/build/gcc-trunk/gcc/libgcc_s.so.1
0x00003fffb79e1d80  0x00003fffb7b3e294  Yes        
/lib/powerpc64le-linux-gnu/libc.so.6
skipping: 60      return 0;  // Mark SPOT
skipping: From                To                  Syms Read   Shared Object
Library
skipping: 0x00003fffb7fa0f80  0x00003fffb7fce644  Yes         /lib64/ld64.so.2
skipping: 0x00003fffb7d9c040  0x00003fffb7efa6c0  Yes        
/home/seurer/gcc/build/gcc-trunk/powerpc64le-unknown-linux-gnu/./libstdc++-v3/src/.libs/libstdc++.so.6
skipping: 0x00003fffb7bd6400  0x00003fffb7c4cf6c  Yes        
/lib/powerpc64le-linux-gnu/libm.so.6
skipping: 0x00003fffb7b92fc0  0x00003fffb7ba0480  Yes        
/home/seurer/gcc/build/gcc-trunk/gcc/libgcc_s.so.1
skipping: 0x00003fffb79e1d80  0x00003fffb7b3e294  Yes        
/lib/powerpc64le-linux-gnu/libc.so.6
Python Exception <class 'AttributeError'> 'NoneType' object has no attribute
'dereference': 
unique_ptr.gdb:10: Error in sourced command file:
Error while executing Python code.
FAIL: libstdc++-xmethods/unique_ptr.cc

Reply via email to