dwarves.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* dwarf_loader.c: Fixed leaked bogon
@ 2010-01-06 15:24 Rakesh Pandit
       [not found] ` <b401d2531001060724r4a06401fx9cc8a5dbf24518d3-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Rakesh Pandit @ 2010-01-06 15:24 UTC (permalink / raw)
  To: dwarves-u79uwXL29TY76Z2rM5mHXA

While checking one of big shared objects I found kernel getting
unhappy and sending SIGKILL. File was 282M libwebkit-1.0.so.2.8.1 from
webkit project. (Can be obtained from
http://kojipkgs.fedoraproject.org/packages/webkitgtk/1.1.12/2.fc12/x86_64/webkitgtk-debuginfo-1.1.12-2.fc12.x86_64.rpm
and extracted via rpm2cpio, file is libwebkit-1.0.so.2.8.1.debug)

URL: http://rakesh.fedorapeople.org/misc/0001-dwarf_loader.c-Fixed-leaked-bogon.patch

-- 
Rakesh Pandit
https://fedoraproject.org/wiki/User:Rakesh
freedom, friends, features, first

From 897af23e9c66a74a27fc7a4b60567bc92163d066 Mon Sep 17 00:00:00 2001
From: Rakesh Pandit <rakesh-rxtnV0ftBwyoClj4AeEUq9i2O/JbrIOy@public.gmane.org>
Date: Wed, 6 Jan 2010 20:34:03 +0530
Subject: [PATCH] dwarf_loader.c: Fixed leaked bogon

Freed chunks of memory left by obstack. It went beyond kernels
expectation for libwebkit-1.0.so.2.debug (from
libwebkit-1.0.so.2.8.1.debug) file and so that it had to send SIGKILL.

Signed-off-by: Rakesh Pandit <rakesh-rxtnV0ftBwyoClj4AeEUq9i2O/JbrIOy@public.gmane.org>
---
 dwarf_loader.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/dwarf_loader.c b/dwarf_loader.c
index 3b58ecb..ce1e4d8 100644
--- a/dwarf_loader.c
+++ b/dwarf_loader.c
@@ -2052,9 +2052,7 @@ static int cus__load_module(struct cus *self,
struct conf_load *conf,
 			}
 		}

-		if (!cu->extra_dbg_info)
-			obstack_free(&dcu.obstack, NULL);

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-05-10 11:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-06 15:24 dwarf_loader.c: Fixed leaked bogon Rakesh Pandit
     [not found] ` <b401d2531001060724r4a06401fx9cc8a5dbf24518d3-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-01-06 16:44   ` Arnaldo Carvalho de Melo
     [not found]     ` <20100106164444.GB18919-f8uhVLnGfZaxAyOMLChx1axOck334EZe@public.gmane.org>
2010-04-05  7:27       ` Rakesh Pandit
2010-05-10 11:03       ` Rakesh Pandit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).