This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/32636] [4.3 Regression] 25_algorithms/search_n/iterator.cc: pch-related verify_ssa failure



------- Comment #24 from dave at hiauly1 dot hia dot nrc dot ca  2007-12-06 00:28 -------
Subject: Re:  [4.3 regression] 25_algorithms/search_n/iterator.cc: pch-related
verify_ssa failure

> Ping.

I moved the gch headers.  Doesn't seem to be a pch problem:

(gdb) r
Starting program:
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/testsuite/iterator.exe
warning: The shared libraries were not privately mapped; setting a
breakpoint in a shared library will not work until you rerun the program.

Program received signal SIGBUS, Bus error.
__gnu_test::forward_iterator_wrapper<int>
std::__search_n<__gnu_test::forward_iterator_wrapper<int>, int, int, bool
(*)(int, int)>(__gnu_test::forward_iterator_wrapper<int>,
__gnu_test::forward_iterator_wrapper<int>, int, int const&, bool (*)(int, int),
std::forward_iterator_tag) (__first=@0x7eff0878,
    __last=@0x7eff0880, __count=2, __val=@0x7eff0654,
    __binary_pred=@0x4000155a: 0x3148 <_Z4predii>)
    at /test/gnu/gcc/gcc/libstdc++-v3/testsuite/util/testsuite_iterators.h:206
206         : ptr(in.ptr), SharedInfo(in.SharedInfo)
(gdb) bt
#0  __gnu_test::forward_iterator_wrapper<int>
std::__search_n<__gnu_test::forward_iterator_wrapper<int>, int, int, bool
(*)(int, int)>(__gnu_test::forward_iterator_wrapper<int>,
__gnu_test::forward_iterator_wrapper<int>, int, int const&, bool (*)(int, int),
std::forward_iterator_tag) (__first=@0x7eff0878,
    __last=@0x7eff0880, __count=2, __val=@0x7eff0654,
    __binary_pred=@0x4000155a: 0x3148 <_Z4predii>)
    at /test/gnu/gcc/gcc/libstdc++-v3/testsuite/util/testsuite_iterators.h:206
#1  0x00004128 in __gnu_test::forward_iterator_wrapper<int>
std::search_n<__gnu_test::forward_iterator_wrapper<int>, int, int, bool
(*)(int, int)>(__gnu_test::forward_iterator_wrapper<int>,
__gnu_test::forward_iterator_wrapper<int>, int, int const&, bool (*)(int, int))
(__first=@0x7eff0748, __last=@0x7eff0750,
    __count=1073747448, __val=@0x7eff0654,
    __binary_pred=@0x4000155a: 0x3148 <_Z4predii>)
    at
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/bits/stl_algo.h:4413
#2  0x00005ca4 in main ()
    at
/test/gnu/gcc/gcc/libstdc++-v3/testsuite/25_algorithms/search_n/iterator.cc:90
(gdb) p/x $pc
$1 = 0x3a84
(gdb) disass 0x3a74 0x3a94
Dump of assembler code from 0x3a74 to 0x3a94:
0x00003a74
<_ZSt10__search_nIN10__gnu_test24forward_iterator_wrapperIiEEiiPFbiiEET_S5_S5_T0_RKT1_T2_St20forward_iterator_tag+1044>:
    ldw 4(r8),r20
0x00003a78
<_ZSt10__search_nIN10__gnu_test24forward_iterator_wrapperIiEEiiPFbiiEET_S5_S5_T0_RKT1_T2_St20forward_iterator_tag+1048>:
    ldo 4(r19),ret0
0x00003a7c
<_ZSt10__search_nIN10__gnu_test24forward_iterator_wrapperIiEEiiPFbiiEET_S5_S5_T0_RKT1_T2_St20forward_iterator_tag+1052>:
    b,l 0x36d4
<_ZSt10__search_nIN10__gnu_test24forward_iterator_wrapperIiEEiiPFbiiEET_S5_S5_T0_RKT1_T2_St20forward_iterator_tag+116>,r0
0x00003a80
<_ZSt10__search_nIN10__gnu_test24forward_iterator_wrapperIiEEiiPFbiiEET_S5_S5_T0_RKT1_T2_St20forward_iterator_tag+1056>:
    stw ret0,0(r8)
0x00003a84
<_ZSt10__search_nIN10__gnu_test24forward_iterator_wrapperIiEEiiPFbiiEET_S5_S5_T0_RKT1_T2_St20forward_iterator_tag+1060>:
    stw ret0,0(r14)
0x00003a88
<_ZSt10__search_nIN10__gnu_test24forward_iterator_wrapperIiEEiiPFbiiEET_S5_S5_T0_RKT1_T2_St20forward_iterator_tag+1064>:
    ldw 4(r6),ret0
0x00003a8c
<_ZSt10__search_nIN10__gnu_test24forward_iterator_wrapperIiEEiiPFbiiEET_S5_S5_T0_RKT1_T2_St20forward_iterator_tag+1068>:
    b,l 0x381c
<_ZSt10__search_nIN10__gnu_test24forward_iterator_wrapperIiEEiiPFbiiEET_S5_S5_T0_RKT1_T2_St20forward_iterator_tag+444>,r0
0x00003a90
<_ZSt10__search_nIN10__gnu_test24forward_iterator_wrapperIiEEiiPFbiiEET_S5_S5_T0_RKT1_T2_St20forward_iterator_tag+1072>:
    stw ret0,4(r14)
End of assembler dump.
(gdb) p/x $r14
$2 = 0x6000

r14 points to readpnly memory.

Dave


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32636


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]