------- Comment #2 from laurynas dot biveinis at gmail dot com  2008-06-21 
16:38 -------
Confirmed with r137000 with a different valgrind backtrace:

[EMAIL PROTECTED]:~/src/gcc-trunk/gcc/gcc/testsuite/objc.dg/pch$ valgrind
"/home/lauris/src/gcc-trunk/obj/gcc/cc1obj" "-quiet"
"-I/home/lauris/src/gcc-trunk/gcc/gcc/testsuite/../../libobjc" "-iprefix"
"/home/lauris/src/gcc-trunk/obj/gcc/../lib/gcc/x86_64-unknown-linux-gnu/4.4.0/"
"-isystem" "/home/lauris/src/gcc-trunk/obj/gcc/include" "-isystem"
"/home/lauris/src/gcc-trunk/obj/gcc/include-fixed" "./interface-1.h" "-quiet"
"-dumpbase" "interface-1.h" "-mtune=generic" "-auxbase" "interface-1" "-g"
"-O0" "-o" "/tmp/cc8Pabsb.s" "--output-pch=" "interface-1.h.gch"
==12173== Memcheck, a memory error detector.
==12173== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==12173== Using LibVEX rev 1804, a library for dynamic binary translation.
==12173== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==12173== Using valgrind-3.3.0-Debian, a dynamic binary instrumentation
framework.
==12173== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==12173== For more details, rerun with: -v
==12173== 
==12173== Syscall param write(buf) points to uninitialised byte(s)
==12173==    at 0x5370BB0: __write_nocancel (in /usr/lib/debug/libc-2.7.so)
==12173==    by 0x5314CE2: _IO_file_write@@GLIBC_2.2.5 (fileops.c:1266)
==12173==    by 0x5314BC3: _IO_do_write@@GLIBC_2.2.5 (fileops.c:520)
==12173==    by 0x531610C: _IO_file_xsputn@@GLIBC_2.2.5 (fileops.c:1348)
==12173==    by 0x5314190: fwrite_unlocked (iofwrite_u.c:47)
==12173==    by 0xB258E3: write_macdef (pch.c:80)
==12173==    by 0xB25E40: ht_forall (symtab.c:235)
==12173==    by 0xB2576A: cpp_save_state (pch.c:202)
==12173==    by 0x48A951: pch_init (c-pch.c:166)
==12173==    by 0x47E8AD: c_common_parse_file (c-opts.c:1261)
==12173==    by 0x6E8F71: toplev_main (toplev.c:965)
==12173==    by 0x52C51C3: (below main) (libc-start.c:220)
==12173==  Address 0x418701b is not stack'd, malloc'd or (recently) free'd
==12173== 
==12173== Syscall param write(buf) points to uninitialised byte(s)
==12173==    at 0x5370BB0: __write_nocancel (in /usr/lib/debug/libc-2.7.so)
==12173==    by 0x5314CE2: _IO_file_write@@GLIBC_2.2.5 (fileops.c:1266)
==12173==    by 0x5314BC3: _IO_do_write@@GLIBC_2.2.5 (fileops.c:520)
==12173==    by 0x5316908: _IO_switch_to_get_mode (genops.c:189)
==12173==    by 0x5314EF7: _IO_file_seekoff@@GLIBC_2.2.5 (fileops.c:976)
==12173==    by 0x5311E79: fseek (fseek.c:41)
==12173==    by 0x4ABFC3: ggc_pch_write_object (ggc-page.c:2205)
==12173==    by 0x5FC666: gt_pch_save (ggc-common.c:515)
==12173==    by 0x48A66F: c_common_write_pch (c-pch.c:212)
==12173==    by 0x47E8C4: c_common_parse_file (c-opts.c:1265)
==12173==    by 0x6E8F71: toplev_main (toplev.c:965)
==12173==    by 0x52C51C3: (below main) (libc-start.c:220)
==12173==  Address 0x418724c is not stack'd, malloc'd or (recently) free'd
==12173== 
==12173== ERROR SUMMARY: 13 errors from 2 contexts (suppressed: 8 from 1)
==12173== malloc/free: in use at exit: 492,967 bytes in 1,518 blocks.
==12173== malloc/free: 15,936 allocs, 14,418 frees, 2,778,332 bytes allocated.
==12173== For counts of detected errors, rerun with: -v
==12173== searching for pointers to 1,518 not-freed blocks.
==12173== checked 3,563,304 bytes.
==12173== 
==12173== LEAK SUMMARY:
==12173==    definitely lost: 152,024 bytes in 289 blocks.
==12173==      possibly lost: 0 bytes in 0 blocks.
==12173==    still reachable: 340,943 bytes in 1,229 blocks.
==12173==         suppressed: 0 bytes in 0 blocks.
==12173== Rerun with --leak-check=full to see details of leaked memory.


-- 

laurynas dot biveinis at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |laurynas dot biveinis at
                   |                            |gmail dot com


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

Reply via email to