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]

purify with g++ 2.8.0.



Hello Rational support:

We are using g++ 2.8.0. We have several problems using purify with it.

 * Anoyying messages while purifying, and needing -best-effort

   Purify engine: Error: R_SPARC_RELATIVE reloc at 0x230c (section 24) 
                         has target 0x878d8 outside of file.
   Purify engine: Error: Stab relocated relative to undefined symbol.

 * running the following 'simple' program

////////////////////////////////////////////////////////////////////////
int main(int, char**)
{
   vector<float>  vf;
   vf.push_back(3.14);
   return(0);
}
////////////////////////////////////////////////////////////////////////
   after purify, I get several umr's (running within gdb).
   The gdb session is  enclosed below.

   These may be problems in g++ compiler,  g++'s libstdc++ library
   or Purify. 

*  I fail to supress the above. I tried to put the following 
   in my ~/.purify 

suppress umr  __uninitialized_copy_aux*; __uninitialized_copy__*; uninitialized_copy__; insert_aux__*;  push_back__*;

   but I got the same UMR's. Am I missing something in the syntax?
  

Much thanks -- yotam
Yotam Medini ----------------------------:)--h--o--m--e---------------------\
<< Avant! - TCAD Unit                    >> 1144 Craig Dr.          // Lost  |
<< 46871 Bayside Pkwy, Fremont, CA 94538 >> San Jose, CA 95129-2913 // my    |
<< yotam_medini@tmai.com                 >> yotam@blueneptune.com   // smart |
<< (510) 413-8141  [fax (510)4137743]    >> (408) 257-0840          // quote |
<<                      http://www.blueneptune.com/~yotam/                   |



(gdb) break purify_stop_here
Breakpoint 2 at 0x4cc24
(gdb) run
Starting program: /home/yotam/C/vin 

Breakpoint 1, main () at vin.cc:5
Continuing.

Breakpoint 2, 0x4cc24 in purify_stop_here ()
(gdb) where
#0  0x4cc24 in purify_stop_here ()
#1  0x519bc in float * __uninitialized_copy_aux<float *, float *> (first=0x0, 
    last=0x0, result=0x7c0a0)
    at /site/seg/gcc-2.8.0/include/g++/stl_uninitialized.h:42
#2  0x51a3c in float * __uninitialized_copy<float *, float *, float> (
    first=0x0, last=0x0, result=0x7c0a0)
    at /site/seg/gcc-2.8.0/include/g++/stl_uninitialized.h:66
#3  0x51ab8 in float * uninitialized_copy<float *, float *> (first=0x0, 
    last=0x0, result=0x7c0a0)
    at /site/seg/gcc-2.8.0/include/g++/stl_uninitialized.h:73
#4  0x51cec in vector<float, __default_alloc_template<false, 0> >::insert_aux (
    this=0xefffed38, position=0x0, x=@0xefffed34)
    at /site/seg/gcc-2.8.0/include/g++/stl_vector.h:337
#5  0x52084 in vector<float, __default_alloc_template<false, 0> >::push_back (
    this=0xefffed38, x=@0xefffed34)
    at /site/seg/gcc-2.8.0/include/g++/stl_vector.h:150
#6  0x50160 in main () at vin.cc:6
Continuing.

Breakpoint 2, 0x4cc24 in purify_stop_here ()
(gdb) where
#0  0x4cc24 in purify_stop_here ()
#1  0x519bc in float * __uninitialized_copy_aux<float *, float *> (first=0x0, 
    last=0x0, result=0x7c0a4)
    at /site/seg/gcc-2.8.0/include/g++/stl_uninitialized.h:42
#2  0x51a3c in float * __uninitialized_copy<float *, float *, float> (
    first=0x0, last=0x0, result=0x7c0a4)
    at /site/seg/gcc-2.8.0/include/g++/stl_uninitialized.h:66
#3  0x51ab8 in float * uninitialized_copy<float *, float *> (first=0x0, 
    last=0x0, result=0x7c0a4)
    at /site/seg/gcc-2.8.0/include/g++/stl_uninitialized.h:73
#4  0x51d50 in vector<float, __default_alloc_template<false, 0> >::insert_aux (
    this=0xefffed38, position=0x0, x=@0xefffed34)
    at /site/seg/gcc-2.8.0/include/g++/stl_vector.h:340
#5  0x52084 in vector<float, __default_alloc_template<false, 0> >::push_back (
    this=0xefffed38, x=@0xefffed34)
    at /site/seg/gcc-2.8.0/include/g++/stl_vector.h:150
#6  0x50160 in main () at vin.cc:6
Continuing.

Breakpoint 2, 0x4cc24 in purify_stop_here ()
(gdb) where
#0  0x4cc24 in purify_stop_here ()
#1  0x52520 in void __destroy_aux<float *> ()
    at /site/seg/gcc-2.8.0/include/g++/stl_construct.h:56
#2  0x524e8 in void __destroy<float *, float> (first=0x0, last=0x0)
    at /site/seg/gcc-2.8.0/include/g++/stl_construct.h:61
#3  0x52494 in void destroy<float *> (first=0x0, last=0x0)
    at /site/seg/gcc-2.8.0/include/g++/stl_construct.h:66
#4  0x51d98 in vector<float, __default_alloc_template<false, 0> >::insert_aux (
    this=0xefffed38, position=0x0, x=@0xefffed34)
    at /site/seg/gcc-2.8.0/include/g++/stl_vector.h:350
#5  0x52084 in vector<float, __default_alloc_template<false, 0> >::push_back (
    this=0xefffed38, x=@0xefffed34)
    at /site/seg/gcc-2.8.0/include/g++/stl_vector.h:150
#6  0x50160 in main () at vin.cc:6
Continuing.

Breakpoint 2, 0x4cc24 in purify_stop_here ()
(gdb) where
#0  0x4cc24 in purify_stop_here ()
#1  0x52520 in void __destroy_aux<float *> ()
    at /site/seg/gcc-2.8.0/include/g++/stl_construct.h:56
#2  0x524e8 in void __destroy<float *, float> (first=0x7c0a0, last=0x7c0a4)
    at /site/seg/gcc-2.8.0/include/g++/stl_construct.h:61
#3  0x52494 in void destroy<float *> (first=0x7c0a0, last=0x7c0a4)
    at /site/seg/gcc-2.8.0/include/g++/stl_construct.h:66
#4  0x521d0 in vector<float, __default_alloc_template<false, 0> >::~vector (
    this=0xefffed38, __in_chrg=2)
    at /site/seg/gcc-2.8.0/include/g++/stl_vector.h:125
#5  0x50174 in main () at vin.cc:7
Continuing.

Program exited normally.


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