------- Comment #4 from ksharenkov at ya dot ru  2006-05-10 15:58 -------
I have tried to create simple test case (about 200 rows) where I tried to
reproduce key code fragments. In simple test case leak not reproduced. But I
have easy reproduced it with very small application based on main project code.

Code like
        CMessage* m1 = theMessageFactory.createInstance( …)
        CMessage* m2 = m1->clone();
        delete m2;
        delete m1;


I am staring think that problem in templates instantiation. 

Also I already had problem with proper template instantiation in my Project.
For some copy operations with vector of objects, vptr were set to 0 (caused SEG
FAULT). I have not reported on It. I have resolved it by equal code but without
copy operation.
(2 weeks spent to detect cause, I though I am was wrong somewhere  )

I have a test executable with full debug info (27M) (necessary libs statically
linked)
Depends only 
ldd ./leaktest
        linux-gate.so.1 =>  (0x00f56000)
        libstdc++.so.6 => /usr/local/lib/libstdc++.so.6 (0x00111000)
        libm.so.6 => /lib/tls/libm.so.6 (0x0045c000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x005a5000)
        libc.so.6 => /lib/tls/libc.so.6 (0x00339000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00320000)


Will it be usefull for you? To analyze generated code.


-- 

ksharenkov at ya dot ru changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ksharenkov at ya dot ru


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

Reply via email to