[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/17540] New: gold leaks processing an empty file
From: |
rafael.espindola at gmail dot com |
Subject: |
[Bug gold/17540] New: gold leaks processing an empty file |
Date: |
Mon, 03 Nov 2014 22:16:24 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=17540
Bug ID: 17540
Summary: gold leaks processing an empty file
Product: binutils
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: gold
Assignee: ccoutant at google dot com
Reporter: rafael.espindola at gmail dot com
CC: ian at airs dot com
$ echo > t.s
$ gcc -c t.s
$ valgrind --leak-check=full --show-leak-kinds=definite ld-new -shared t.o -o
t.so
==9661== Memcheck, a memory error detector
==9661== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==9661== Using Valgrind-3.9.0 and LibVEX; rerun with -h for copyright info
==9661== Command: /home/espindola/binutils/build/gold/ld-new -shared t.o -o
t.so
==9661==
==9661==
==9661== HEAP SUMMARY:
==9661== in use at exit: 344,338 bytes in 1,421 blocks
==9661== total heap usage: 2,025 allocs, 604 frees, 450,701 bytes allocated
==9661==
==9661== 32 bytes in 1 blocks are definitely lost in loss record 361 of 901
==9661== at 0x4A0645D: malloc (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==9661== by 0x6D61DC: operator new(unsigned long) (in
/home/espindola/binutils/build/gold/ld-new)
==9661== by 0x592C59: gold::queue_final_tasks(gold::General_options const&,
gold::Input_objects const*, gold::Symbol_table const*, gold::Layout*,
gold::Workqueue*, gold::Output_file*) (gold.cc:810)
==9661== by 0x693704: gold::Workqueue::find_and_run_task(int)
(workqueue.cc:319)
==9661== by 0x693A29: gold::Workqueue::process(int) (workqueue.cc:495)
==9661== by 0x406ADB: main (main.cc:252)
==9661==
==9661== 32 bytes in 1 blocks are definitely lost in loss record 362 of 901
==9661== at 0x4A0645D: malloc (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==9661== by 0x6D61DC: operator new(unsigned long) (in
/home/espindola/binutils/build/gold/ld-new)
==9661== by 0x5928E6: gold::queue_final_tasks(gold::General_options const&,
gold::Input_objects const*, gold::Symbol_table const*, gold::Layout*,
gold::Workqueue*, gold::Output_file*) (gold.cc:818)
==9661== by 0x693704: gold::Workqueue::find_and_run_task(int)
(workqueue.cc:319)
==9661== by 0x693A29: gold::Workqueue::process(int) (workqueue.cc:495)
==9661== by 0x406ADB: main (main.cc:252)
==9661==
==9661== 40 bytes in 1 blocks are definitely lost in loss record 583 of 901
==9661== at 0x4A0645D: malloc (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==9661== by 0x6D61DC: operator new(unsigned long) (in
/home/espindola/binutils/build/gold/ld-new)
==9661== by 0x5C2C60: gold::Layout_task_runner::run(gold::Workqueue*,
gold::Task const*) (layout.cc:392)
==9661== by 0x693704: gold::Workqueue::find_and_run_task(int)
(workqueue.cc:319)
==9661== by 0x693A29: gold::Workqueue::process(int) (workqueue.cc:495)
==9661== by 0x406ADB: main (main.cc:252)
==9661==
==9661== LEAK SUMMARY:
==9661== definitely lost: 104 bytes in 3 blocks
==9661== indirectly lost: 0 bytes in 0 blocks
==9661== possibly lost: 27,190 bytes in 718 blocks
==9661== still reachable: 317,044 bytes in 700 blocks
==9661== suppressed: 0 bytes in 0 blocks
==9661== Reachable blocks (those to which a pointer was found) are not shown.
==9661== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==9661==
==9661== For counts of detected and suppressed errors, rerun with: -v
==9661== ERROR SUMMARY: 476 errors from 476 contexts (suppressed: 2 from 2)
--
You are receiving this mail because:
You are on the CC list for the bug.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug gold/17540] New: gold leaks processing an empty file,
rafael.espindola at gmail dot com <=