From joonghee.moon@samsung.com Wed Jul 6 23:01:44 2005 Return-Path: X-Original-To: memprof-list@gnome.org Delivered-To: memprof-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 28ECF3B12A6 for ; Wed, 6 Jul 2005 23:01:44 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01051-09 for ; Wed, 6 Jul 2005 23:01:40 -0400 (EDT) Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by menubar.gnome.org (Postfix) with ESMTP id E37F93B09C6 for ; Wed, 6 Jul 2005 23:01:37 -0400 (EDT) Received: from ep_mmp2 (mailout2.samsung.com [203.254.224.25]) by mailout2.samsung.com (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTP id <0IJ800AR8LQOOA@mailout2.samsung.com> for memprof-list@gnome.org; Thu, 07 Jul 2005 12:01:36 +0900 (KST) Received: from tryal ([168.219.193.29]) by mmp2.samsung.com (iPlanet Messaging Server 5.2 HotFix 1.17 (built Jun 23 2003)) with ESMTPA id <0IJ800ICLLQNCM@mmp2.samsung.com> for memprof-list@gnome.org; Thu, 07 Jul 2005 12:01:36 +0900 (KST) Date: Thu, 07 Jul 2005 12:01:27 +0900 From: =?ks_c_5601-1987?B?ua7B38jx?= To: memprof-list@gnome.org Message-id: <0IJ800ICMLQNCM@mmp2.samsung.com> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Content-type: multipart/alternative; boundary="Boundary_(ID_6dX8gM/QwE01xd7k2NO8Sw)" Thread-index: AcWCoCrYCNLSdqsXRjuAqQMFbipaJQ== X-Virus-Scanned: by amavisd-new at gnome.org X-Mailman-Approved-At: Wed, 13 Jul 2005 06:15:47 -0400 Subject: [question] installation of memprof X-BeenThere: memprof-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: the MemProf memory profiling tool List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jul 2005 03:01:44 -0000 This is a multi-part message in MIME format. --Boundary_(ID_6dX8gM/QwE01xd7k2NO8Sw) Content-type: text/plain; charset=ks_c_5601-1987 Content-transfer-encoding: quoted-printable Hello! Installing memprof(v 0.5.1) by =A1=AE./configure=A1=AF, I have found a = message like below. =20 ject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 /usr/lib/libbfd.so - L/usr/src/build/227532-i386/BUILD/binutils-2.13.90.0.18/build-i386-redhat= - linux/libiberty/pic -liberty gcc: /usr/lib/libbfd.so: No such file or directory make[2]: *** [memprof] =BF=C0=B7=F9 1 make[2]: =B3=AA=B0=A8 `/home/samba/util/memprof-0.5.1' = =B5=F0=B7=BA=C5=E4=B8=AE make[1]: *** [all-recursive] =BF=C0=B7=F9 1 make[1]: =B3=AA=B0=A8 `/home/samba/util/memprof-0.5.1' = =B5=F0=B7=BA=C5=E4=B8=AE make: *** [all] =BF=C0=B7=F9 2 =20 When I examine /usr/lib, there are only libbfd.a, libbfd.la. My system info is linux based on x86. If you give me an advice, I=A1=AFll be very happy! Thanks~ =20 --Boundary_(ID_6dX8gM/QwE01xd7k2NO8Sw) Content-type: text/html; charset=ks_c_5601-1987 Content-transfer-encoding: quoted-printable

Hello!

Installing memprof(v 0.5.1) by = =A1=AE./configure=A1=AF, I have found a message = like below.

 

ject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 = /usr/lib/libbfd.so -L/usr/src/build/227532-i386/BUILD/binutils-2.13.90.0.18/build-i386-redha= t-linux/libiberty/pic -liberty

gcc: /usr/lib/libbfd.so: No such file or = directory

make[2]: *** [memprof] =BF=C0=B7=F9 = 1

make[2]: =B3=AA=B0=A8 = `/home/samba/util/memprof-0.5.1' =B5=F0=B7=BA=C5=E4=B8=AE

make[1]: *** [all-recursive] = =BF=C0=B7=F9 = 1

make[1]: =B3=AA=B0=A8 = `/home/samba/util/memprof-0.5.1' =B5=F0=B7=BA=C5=E4=B8=AE

make: *** [all] =BF=C0=B7=F9 = 2

 

When I examine /usr/lib, there are only = libbfd.a, libbfd.la.

My system info is linux based on = x86.

If you give me an advice, I=A1=AFll be very = happy!

Thanks~

 

--Boundary_(ID_6dX8gM/QwE01xd7k2NO8Sw)-- From raphael@psi.co.at Fri Jul 8 18:54:07 2005 Return-Path: X-Original-To: memprof-list@gnome.org Delivered-To: memprof-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id AA11B3B0D9E for ; Fri, 8 Jul 2005 18:54:07 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29518-04 for ; Fri, 8 Jul 2005 18:54:06 -0400 (EDT) Received: from mx-00.sil.at (mx-00.sil.at [62.116.68.196]) by menubar.gnome.org (Postfix) with ESMTP id 332533B0CBA for ; Fri, 8 Jul 2005 18:54:04 -0400 (EDT) Received: (qmail-ldap/ctrl 33516 invoked from network); 8 Jul 2005 22:53:59 -0000 Received: from unknown (HELO exodus) ([62.116.76.117]) (envelope-sender ) by mx-00.sil.at (qmail-ldap-1.03) with SMTP for ; 8 Jul 2005 22:53:59 -0000 Received: by exodus (Postfix, from userid 1000) id A926A587; Sat, 9 Jul 2005 00:54:01 +0200 (CEST) From: Raphael Wegmann To: submit@gnome.org, memprof-list@gnome.org X-Mailer: bug-buddy 2.10.0 Message-Id: <20050708225401.A926A587@exodus> Date: Sat, 9 Jul 2005 00:54:01 +0200 (CEST) X-Virus-Scanned: by amavisd-new at gnome.org X-Mailman-Approved-At: Wed, 13 Jul 2005 06:15:47 -0400 Cc: wegmann@psi.co.at Subject: "memprof --follow-fork --follow-exec --g-fatal-warnings evolution" crashes X-BeenThere: memprof-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: the MemProf memory profiling tool List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jul 2005 22:54:07 -0000 Distribution: Debian 3.1 Package: memprof Severity: normal Version: GNOME2.10.0 0.5.x Gnome-Distributor: Ubuntu Synopsis: "memprof --follow-fork --follow-exec --g-fatal-warnings evolution" crashes Bugzilla-Product: memprof Bugzilla-Component: general Bugzilla-Version: 0.5.x BugBuddy-GnomeVersion: 2.0 (2.10.0) Description: Description of the crash: memintercept (7805): _MEMPROF_SOCKET = /tmp/memprof.Lg7uHG memintercept (7805): New process, operation = NEW, old_pid = 0 es menu class init memintercept (7806): New process, operation = FORK, old_pid = 7805 GLib-CRITICAL **: g_hash_table_insert: assertion `hash_table != NULL' failed aborting... Steps to reproduce the crash: 1. Run "memprof --follow-fork --follow-exec --g-fatal-warnings evolution" Expected Results: Getting a MemProf and evolution xclient How often does this happen? always Additional Information: The problem seems to be in process.c:955 in the function process_duplicate_block, which calls g_hash_table_insert even if (new_table == NULL). Debugging Information: Backtrace was generated from '/usr/bin/memprof' (no debugging symbols found) Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1". (no debugging symbols found) `system-supplied DSO at 0xffffe000' has disappeared; keeping its symbols. (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread -1221622624 (LWP 7804)] (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) 0xffffe410 in __kernel_vsyscall () #0 0xffffe410 in __kernel_vsyscall () #1 0xb7913463 in __waitpid_nocancel () from /lib/tls/i686/cmov/libpthread.so.0 #2 0xb7f9dd97 in libgnomeui_module_info_get () from /usr/lib/libgnomeui-2.so.0 #3 #4 0xffffe410 in __kernel_vsyscall () #5 0xb7628175 in raise () from /lib/tls/i686/cmov/libc.so.6 #6 0xb76297d8 in abort () from /lib/tls/i686/cmov/libc.so.6 #7 0xbffff040 in ?? () #8 0x00000000 in ?? () #9 0x00000020 in ?? () #10 0x00000000 in ?? () #11 0x00000000 in ?? () #12 0x00000000 in ?? () #13 0x00000000 in ?? () #14 0x00000000 in ?? () #15 0x00000000 in ?? () #16 0x00000000 in ?? () #17 0x00000000 in ?? () #18 0x00000000 in ?? () #19 0x00000000 in ?? () #20 0x00000000 in ?? () #21 0x00000000 in ?? () #22 0x00000000 in ?? () #23 0x00000000 in ?? () #24 0x00000000 in ?? () #25 0x00000000 in ?? () #26 0x00000000 in ?? () #27 0x00000000 in ?? () #28 0x00000000 in ?? () #29 0x00000000 in ?? () #30 0x00000000 in ?? () #31 0x00000000 in ?? () #32 0x00000000 in ?? () #33 0x00000000 in ?? () #34 0x00000000 in ?? () #35 0x00000000 in ?? () #36 0x00000000 in ?? () #37 0x00000000 in ?? () #38 0x00000000 in ?? () #39 0x00000000 in ?? () #40 0x00000000 in ?? () #41 0x084dfc58 in ?? () #42 0x0818ccd4 in ?? () #43 0xbffff0d8 in ?? () #44 0xb7755c2d in g_free () from /usr/lib/libglib-2.0.so.0 From joseph_sacco@comcast.net Mon Jul 11 13:56:12 2005 Return-Path: X-Original-To: memprof-list@gnome.org Delivered-To: memprof-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8FBB13B0B00 for ; Mon, 11 Jul 2005 13:56:12 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23527-01 for ; Mon, 11 Jul 2005 13:56:10 -0400 (EDT) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by menubar.gnome.org (Postfix) with ESMTP id 2C3FE3B0E6C for ; Mon, 11 Jul 2005 13:56:05 -0400 (EDT) Received: from plantain.jesacco.com (c-24-218-44-63.hsd1.ma.comcast.net[24.218.44.63]) by comcast.net (rwcrmhc11) with SMTP id <2005071117560301300314nse>; Mon, 11 Jul 2005 17:56:04 +0000 From: "Joseph E. Sacco, PhD" To: memprof-list@gnome.org Content-Type: multipart/mixed; boundary="=-7+sUXlK52Xb9hRUWMILx" Date: Mon, 11 Jul 2005 13:56:02 -0400 Message-Id: <1121104562.23822.49.camel@plantain.jesacco.com> Mime-Version: 1.0 X-Mailer: Evolution 2.3.4 X-Virus-Scanned: by amavisd-new at gnome.org X-Mailman-Approved-At: Wed, 13 Jul 2005 06:15:47 -0400 Cc: yellowdog-general@lists.terrasoftsolutions.com Subject: memprof-0.5.1 ported to a 32-bit linuxPPC running YellowDogLinux-4.0.1 X-BeenThere: memprof-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: the MemProf memory profiling tool List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jul 2005 17:56:12 -0000 --=-7+sUXlK52Xb9hRUWMILx Content-Type: text/plain Content-Transfer-Encoding: 7bit This is an attempt at hacking memprof-0.5.1 to run on a 32 bit PPC. Attached are files to implement the changes within the GARNOME framework: http://cipherfunk.org/garnome/ Discussion ----------- Three files were patched in order to get memprof to build, install, and run. * bfdutils.c coding changes made because libbfd has changed since 2002 * memintercept-utils.c atomic operations taken from glibc to implement atomic_increment/decrement for platforms that uses glibc [Must have /usr/include/asm/atomic.h installed]. * stack-frame.c removed an __i386__ restriction and got away with it on a 32 bit PPC [maybe...] Observations ------------- * I doubt this version of memprof will work on a 64 bit machine. * The build generates a few warnings that appear to be unimportant on a 32 bit machine. * running the application sometimes generates warnings about failure to access the very first element in a memory block. For example: ** (memprof:7657): WARNING **: Cannot read word 0/52 in block 0x1ffc18d4: Input/output error ** (memprof:7657): WARNING **: Cannot read word 0/2444 in block 0x3fc577fc: Input/output error ** (memprof:7657): WARNING **: Cannot read word 0/61 in block 0x3fc57000: Input/output error -Joseph -- jsacco [at] ydl [dot] net --=-7+sUXlK52Xb9hRUWMILx Content-Disposition: attachment; filename=Makefile.memprof Content-Type: text/plain; name=Makefile.memprof; charset=UTF-8 Content-Transfer-Encoding: 7bit GARNAME = memprof GARVERSION = 0.5.1 CATEGORIES = hacker-tools DISTFILES = $(GARNAME)-$(GARVERSION).tar.bz2 LIBDEPS = platform/libgnomeui platform/GConf PATCHFILES = memprof.patch DESCRIPTION = memprof define BLURB #FIXME: blurb goes here endef CONFIGURE_SCRIPTS = $(WORKSRC)/configure BUILD_SCRIPTS = $(WORKSRC)/Makefile INSTALL_SCRIPTS = $(WORKSRC)/Makefile CONFIGURE_ARGS = $(DIRPATHS) include ../category.mk --=-7+sUXlK52Xb9hRUWMILx Content-Disposition: attachment; filename=memprof.checksums Content-Type: text/plain; name=memprof.checksums; charset=UTF-8 Content-Transfer-Encoding: 7bit 2d83704352a584ea7c78fbda9540c5cb download/memprof-0.5.1.tar.bz2 c407090574c2a8e0b8548d8e8536e0e6 download/memprof.patch --=-7+sUXlK52Xb9hRUWMILx Content-Disposition: attachment; filename=memprof.patch Content-Type: text/x-patch; name=memprof.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit --- ./bfdutils.c- 2005-02-17 17:04:02.000000000 -0500 +++ ./bfdutils.c 2005-02-17 17:04:15.000000000 -0500 @@ -164,7 +164,7 @@ * into the internals instead. :-( */ /* (*func) (addr, bfd_section_size (map->abfd, section), user_data); */ - (*func) (addr, section->_cooked_size, user_data); + (*func) (addr, section->size, user_data); } } } --- ./memintercept-utils.c- 2005-02-17 16:59:56.000000000 -0500 +++ ./memintercept-utils.c 2005-07-11 10:02:08.000000000 -0400 @@ -30,6 +30,12 @@ #include "memintercept-utils.h" +/* include atomic operations macros from glibc */ +#ifndef __KERNEL__ +#define __KERNEL__ +#endif +#include + static int write_all (int fd, const void *buf, @@ -264,30 +270,22 @@ uint32_t mi_atomic_increment(uint32_t *addr) { -#if defined (__GNUC__) && defined (__i386__) - uint32_t result; - __asm__ __volatile__("lock; xaddl %0, %1; incl %0" - : "=r"(result), "=m"(*(addr)) - : "0" (1), "m"(*(addr)) : "memory"); - return result; +#if defined (__GNUC__) + return((uint32_t)atomic_inc_return((atomic_t *)addr)); #else /* Hope for the best */ - return *++p; + return *++addr; #endif } uint32_t mi_atomic_decrement(uint32_t *addr) { -#if defined (__GNUC__) && defined (__i386__) - uint32_t result; - __asm__ __volatile__("lock; xaddl %0, %1; decl %0" - : "=r"(result), "=m"(*(addr)) - : "0" (-1), "m"(*(addr)) : "memory"); - return result; +#if defined (__GNUC__) + return((uint32_t)atomic_dec_return((atomic_t *)addr)); #else /* Hope for the best */ - return *--p; + return *--addr; #endif } --- ./stack-frame.c- 2005-02-17 17:02:22.000000000 -0500 +++ ./stack-frame.c 2005-02-17 17:02:37.000000000 -0500 @@ -69,7 +69,7 @@ #define HAVE_FRAME_ACCESSORS -#if defined (__GNUC__) && defined (__i386__) +#if defined (__GNUC__) typedef struct stack_frame_struct stack_frame; struct stack_frame_struct { stack_frame *next; --=-7+sUXlK52Xb9hRUWMILx-- From jsacco@ydl.net Wed Jul 13 08:59:00 2005 Return-Path: X-Original-To: memprof-list@gnome.org Delivered-To: memprof-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F15A73B181A for ; Wed, 13 Jul 2005 08:58:59 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13544-04 for ; Wed, 13 Jul 2005 08:58:57 -0400 (EDT) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by menubar.gnome.org (Postfix) with ESMTP id 8CC6C3B18BD for ; Wed, 13 Jul 2005 08:58:55 -0400 (EDT) Received: from [192.168.0.1] (c-24-218-44-63.hsd1.ma.comcast.net[24.218.44.63]) by comcast.net (rwcrmhc11) with SMTP id <200507131258540130030d3ie>; Wed, 13 Jul 2005 12:58:54 +0000 From: jsacco To: memprof-list@gnome.org In-Reply-To: <0IJ800ICMLQNCM@mmp2.samsung.com> References: <0IJ800ICMLQNCM@mmp2.samsung.com> Content-Type: text/plain; charset=utf-8 Message-Id: <1121259532.9178.9.camel@plantain.jesacco.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2.ydl.1) Date: Wed, 13 Jul 2005 08:58:52 -0400 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: [question] installation of memprof X-BeenThere: memprof-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: the MemProf memory profiling tool List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jul 2005 12:59:00 -0000 libbfd is part of the binutils distribution. >From your message it appears that you are running some version of Redhat. Check to see if the binutils RPM is installed: rpm -qa | grep binutils If not: download / install the RPM If so: rpm -ql binutils | grep libbfd to see where the library is installed. -Joseph On Wed, 2005-07-06 at 23:01, 문중희 wrote: > Hello! > > Installing memprof(v 0.5.1) by ‘./configure’, I have found a message > like below. > > > > ject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 /usr/lib/libbfd.so > -L/usr/src/build/227532-i386/BUILD/binutils-2.13.90.0.18/build-i386-redhat-linux/libiberty/pic -liberty > > gcc: /usr/lib/libbfd.so: No such file or directory > > make[2]: *** [memprof] 오류 1 > > make[2]: 나감 `/home/samba/util/memprof-0.5.1' 디렉토리 > > make[1]: *** [all-recursive] 오류 1 > > make[1]: 나감 `/home/samba/util/memprof-0.5.1' 디렉토리 > > make: *** [all] 오류 2 > > > > When I examine /usr/lib, there are only libbfd.a, libbfd.la. > > My system info is linux based on x86. > > If you give me an advice, I’ll be very happy! > > Thanks~ > > > > > > ______________________________________________________________________ > _______________________________________________ > memprof-list mailing list > memprof-list@gnome.org > http://mail.gnome.org/mailman/listinfo/memprof-list -- jsacco [at] ydl [dot] net From joonghee.moon@samsung.com Wed Jul 6 23:01:44 2005 Return-Path: X-Original-To: memprof-list@gnome.org Delivered-To: memprof-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 28ECF3B12A6 for ; Wed, 6 Jul 2005 23:01:44 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01051-09 for ; Wed, 6 Jul 2005 23:01:40 -0400 (EDT) Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by menubar.gnome.org (Postfix) with ESMTP id E37F93B09C6 for ; Wed, 6 Jul 2005 23:01:37 -0400 (EDT) Received: from ep_mmp2 (mailout2.samsung.com [203.254.224.25]) by mailout2.samsung.com (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTP id <0IJ800AR8LQOOA@mailout2.samsung.com> for memprof-list@gnome.org; Thu, 07 Jul 2005 12:01:36 +0900 (KST) Received: from tryal ([168.219.193.29]) by mmp2.samsung.com (iPlanet Messaging Server 5.2 HotFix 1.17 (built Jun 23 2003)) with ESMTPA id <0IJ800ICLLQNCM@mmp2.samsung.com> for memprof-list@gnome.org; Thu, 07 Jul 2005 12:01:36 +0900 (KST) Date: Thu, 07 Jul 2005 12:01:27 +0900 From: =?ks_c_5601-1987?B?ua7B38jx?= To: memprof-list@gnome.org Message-id: <0IJ800ICMLQNCM@mmp2.samsung.com> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Content-type: multipart/alternative; boundary="Boundary_(ID_6dX8gM/QwE01xd7k2NO8Sw)" Thread-index: AcWCoCrYCNLSdqsXRjuAqQMFbipaJQ== X-Virus-Scanned: by amavisd-new at gnome.org X-Mailman-Approved-At: Wed, 13 Jul 2005 06:15:47 -0400 Subject: [question] installation of memprof X-BeenThere: memprof-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: the MemProf memory profiling tool List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jul 2005 03:01:44 -0000 This is a multi-part message in MIME format. --Boundary_(ID_6dX8gM/QwE01xd7k2NO8Sw) Content-type: text/plain; charset=ks_c_5601-1987 Content-transfer-encoding: quoted-printable Hello! Installing memprof(v 0.5.1) by =A1=AE./configure=A1=AF, I have found a = message like below. =20 ject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 /usr/lib/libbfd.so - L/usr/src/build/227532-i386/BUILD/binutils-2.13.90.0.18/build-i386-redhat= - linux/libiberty/pic -liberty gcc: /usr/lib/libbfd.so: No such file or directory make[2]: *** [memprof] =BF=C0=B7=F9 1 make[2]: =B3=AA=B0=A8 `/home/samba/util/memprof-0.5.1' = =B5=F0=B7=BA=C5=E4=B8=AE make[1]: *** [all-recursive] =BF=C0=B7=F9 1 make[1]: =B3=AA=B0=A8 `/home/samba/util/memprof-0.5.1' = =B5=F0=B7=BA=C5=E4=B8=AE make: *** [all] =BF=C0=B7=F9 2 =20 When I examine /usr/lib, there are only libbfd.a, libbfd.la. My system info is linux based on x86. If you give me an advice, I=A1=AFll be very happy! Thanks~ =20 --Boundary_(ID_6dX8gM/QwE01xd7k2NO8Sw) Content-type: text/html; charset=ks_c_5601-1987 Content-transfer-encoding: quoted-printable

Hello!

Installing memprof(v 0.5.1) by = =A1=AE./configure=A1=AF, I have found a message = like below.

 

ject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 = /usr/lib/libbfd.so -L/usr/src/build/227532-i386/BUILD/binutils-2.13.90.0.18/build-i386-redha= t-linux/libiberty/pic -liberty

gcc: /usr/lib/libbfd.so: No such file or = directory

make[2]: *** [memprof] =BF=C0=B7=F9 = 1

make[2]: =B3=AA=B0=A8 = `/home/samba/util/memprof-0.5.1' =B5=F0=B7=BA=C5=E4=B8=AE

make[1]: *** [all-recursive] = =BF=C0=B7=F9 = 1

make[1]: =B3=AA=B0=A8 = `/home/samba/util/memprof-0.5.1' =B5=F0=B7=BA=C5=E4=B8=AE

make: *** [all] =BF=C0=B7=F9 = 2

 

When I examine /usr/lib, there are only = libbfd.a, libbfd.la.

My system info is linux based on = x86.

If you give me an advice, I=A1=AFll be very = happy!

Thanks~

 

--Boundary_(ID_6dX8gM/QwE01xd7k2NO8Sw)-- From raphael@psi.co.at Fri Jul 8 18:54:07 2005 Return-Path: X-Original-To: memprof-list@gnome.org Delivered-To: memprof-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id AA11B3B0D9E for ; Fri, 8 Jul 2005 18:54:07 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29518-04 for ; Fri, 8 Jul 2005 18:54:06 -0400 (EDT) Received: from mx-00.sil.at (mx-00.sil.at [62.116.68.196]) by menubar.gnome.org (Postfix) with ESMTP id 332533B0CBA for ; Fri, 8 Jul 2005 18:54:04 -0400 (EDT) Received: (qmail-ldap/ctrl 33516 invoked from network); 8 Jul 2005 22:53:59 -0000 Received: from unknown (HELO exodus) ([62.116.76.117]) (envelope-sender ) by mx-00.sil.at (qmail-ldap-1.03) with SMTP for ; 8 Jul 2005 22:53:59 -0000 Received: by exodus (Postfix, from userid 1000) id A926A587; Sat, 9 Jul 2005 00:54:01 +0200 (CEST) From: Raphael Wegmann To: submit@gnome.org, memprof-list@gnome.org X-Mailer: bug-buddy 2.10.0 Message-Id: <20050708225401.A926A587@exodus> Date: Sat, 9 Jul 2005 00:54:01 +0200 (CEST) X-Virus-Scanned: by amavisd-new at gnome.org X-Mailman-Approved-At: Wed, 13 Jul 2005 06:15:47 -0400 Cc: wegmann@psi.co.at Subject: "memprof --follow-fork --follow-exec --g-fatal-warnings evolution" crashes X-BeenThere: memprof-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: the MemProf memory profiling tool List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jul 2005 22:54:07 -0000 Distribution: Debian 3.1 Package: memprof Severity: normal Version: GNOME2.10.0 0.5.x Gnome-Distributor: Ubuntu Synopsis: "memprof --follow-fork --follow-exec --g-fatal-warnings evolution" crashes Bugzilla-Product: memprof Bugzilla-Component: general Bugzilla-Version: 0.5.x BugBuddy-GnomeVersion: 2.0 (2.10.0) Description: Description of the crash: memintercept (7805): _MEMPROF_SOCKET = /tmp/memprof.Lg7uHG memintercept (7805): New process, operation = NEW, old_pid = 0 es menu class init memintercept (7806): New process, operation = FORK, old_pid = 7805 GLib-CRITICAL **: g_hash_table_insert: assertion `hash_table != NULL' failed aborting... Steps to reproduce the crash: 1. Run "memprof --follow-fork --follow-exec --g-fatal-warnings evolution" Expected Results: Getting a MemProf and evolution xclient How often does this happen? always Additional Information: The problem seems to be in process.c:955 in the function process_duplicate_block, which calls g_hash_table_insert even if (new_table == NULL). Debugging Information: Backtrace was generated from '/usr/bin/memprof' (no debugging symbols found) Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1". (no debugging symbols found) `system-supplied DSO at 0xffffe000' has disappeared; keeping its symbols. (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread -1221622624 (LWP 7804)] (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) 0xffffe410 in __kernel_vsyscall () #0 0xffffe410 in __kernel_vsyscall () #1 0xb7913463 in __waitpid_nocancel () from /lib/tls/i686/cmov/libpthread.so.0 #2 0xb7f9dd97 in libgnomeui_module_info_get () from /usr/lib/libgnomeui-2.so.0 #3 #4 0xffffe410 in __kernel_vsyscall () #5 0xb7628175 in raise () from /lib/tls/i686/cmov/libc.so.6 #6 0xb76297d8 in abort () from /lib/tls/i686/cmov/libc.so.6 #7 0xbffff040 in ?? () #8 0x00000000 in ?? () #9 0x00000020 in ?? () #10 0x00000000 in ?? () #11 0x00000000 in ?? () #12 0x00000000 in ?? () #13 0x00000000 in ?? () #14 0x00000000 in ?? () #15 0x00000000 in ?? () #16 0x00000000 in ?? () #17 0x00000000 in ?? () #18 0x00000000 in ?? () #19 0x00000000 in ?? () #20 0x00000000 in ?? () #21 0x00000000 in ?? () #22 0x00000000 in ?? () #23 0x00000000 in ?? () #24 0x00000000 in ?? () #25 0x00000000 in ?? () #26 0x00000000 in ?? () #27 0x00000000 in ?? () #28 0x00000000 in ?? () #29 0x00000000 in ?? () #30 0x00000000 in ?? () #31 0x00000000 in ?? () #32 0x00000000 in ?? () #33 0x00000000 in ?? () #34 0x00000000 in ?? () #35 0x00000000 in ?? () #36 0x00000000 in ?? () #37 0x00000000 in ?? () #38 0x00000000 in ?? () #39 0x00000000 in ?? () #40 0x00000000 in ?? () #41 0x084dfc58 in ?? () #42 0x0818ccd4 in ?? () #43 0xbffff0d8 in ?? () #44 0xb7755c2d in g_free () from /usr/lib/libglib-2.0.so.0 From joseph_sacco@comcast.net Mon Jul 11 13:56:12 2005 Return-Path: X-Original-To: memprof-list@gnome.org Delivered-To: memprof-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8FBB13B0B00 for ; Mon, 11 Jul 2005 13:56:12 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23527-01 for ; Mon, 11 Jul 2005 13:56:10 -0400 (EDT) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by menubar.gnome.org (Postfix) with ESMTP id 2C3FE3B0E6C for ; Mon, 11 Jul 2005 13:56:05 -0400 (EDT) Received: from plantain.jesacco.com (c-24-218-44-63.hsd1.ma.comcast.net[24.218.44.63]) by comcast.net (rwcrmhc11) with SMTP id <2005071117560301300314nse>; Mon, 11 Jul 2005 17:56:04 +0000 From: "Joseph E. Sacco, PhD" To: memprof-list@gnome.org Content-Type: multipart/mixed; boundary="=-7+sUXlK52Xb9hRUWMILx" Date: Mon, 11 Jul 2005 13:56:02 -0400 Message-Id: <1121104562.23822.49.camel@plantain.jesacco.com> Mime-Version: 1.0 X-Mailer: Evolution 2.3.4 X-Virus-Scanned: by amavisd-new at gnome.org X-Mailman-Approved-At: Wed, 13 Jul 2005 06:15:47 -0400 Cc: yellowdog-general@lists.terrasoftsolutions.com Subject: memprof-0.5.1 ported to a 32-bit linuxPPC running YellowDogLinux-4.0.1 X-BeenThere: memprof-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: the MemProf memory profiling tool List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jul 2005 17:56:12 -0000 --=-7+sUXlK52Xb9hRUWMILx Content-Type: text/plain Content-Transfer-Encoding: 7bit This is an attempt at hacking memprof-0.5.1 to run on a 32 bit PPC. Attached are files to implement the changes within the GARNOME framework: http://cipherfunk.org/garnome/ Discussion ----------- Three files were patched in order to get memprof to build, install, and run. * bfdutils.c coding changes made because libbfd has changed since 2002 * memintercept-utils.c atomic operations taken from glibc to implement atomic_increment/decrement for platforms that uses glibc [Must have /usr/include/asm/atomic.h installed]. * stack-frame.c removed an __i386__ restriction and got away with it on a 32 bit PPC [maybe...] Observations ------------- * I doubt this version of memprof will work on a 64 bit machine. * The build generates a few warnings that appear to be unimportant on a 32 bit machine. * running the application sometimes generates warnings about failure to access the very first element in a memory block. For example: ** (memprof:7657): WARNING **: Cannot read word 0/52 in block 0x1ffc18d4: Input/output error ** (memprof:7657): WARNING **: Cannot read word 0/2444 in block 0x3fc577fc: Input/output error ** (memprof:7657): WARNING **: Cannot read word 0/61 in block 0x3fc57000: Input/output error -Joseph -- jsacco [at] ydl [dot] net --=-7+sUXlK52Xb9hRUWMILx Content-Disposition: attachment; filename=Makefile.memprof Content-Type: text/plain; name=Makefile.memprof; charset=UTF-8 Content-Transfer-Encoding: 7bit GARNAME = memprof GARVERSION = 0.5.1 CATEGORIES = hacker-tools DISTFILES = $(GARNAME)-$(GARVERSION).tar.bz2 LIBDEPS = platform/libgnomeui platform/GConf PATCHFILES = memprof.patch DESCRIPTION = memprof define BLURB #FIXME: blurb goes here endef CONFIGURE_SCRIPTS = $(WORKSRC)/configure BUILD_SCRIPTS = $(WORKSRC)/Makefile INSTALL_SCRIPTS = $(WORKSRC)/Makefile CONFIGURE_ARGS = $(DIRPATHS) include ../category.mk --=-7+sUXlK52Xb9hRUWMILx Content-Disposition: attachment; filename=memprof.checksums Content-Type: text/plain; name=memprof.checksums; charset=UTF-8 Content-Transfer-Encoding: 7bit 2d83704352a584ea7c78fbda9540c5cb download/memprof-0.5.1.tar.bz2 c407090574c2a8e0b8548d8e8536e0e6 download/memprof.patch --=-7+sUXlK52Xb9hRUWMILx Content-Disposition: attachment; filename=memprof.patch Content-Type: text/x-patch; name=memprof.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit --- ./bfdutils.c- 2005-02-17 17:04:02.000000000 -0500 +++ ./bfdutils.c 2005-02-17 17:04:15.000000000 -0500 @@ -164,7 +164,7 @@ * into the internals instead. :-( */ /* (*func) (addr, bfd_section_size (map->abfd, section), user_data); */ - (*func) (addr, section->_cooked_size, user_data); + (*func) (addr, section->size, user_data); } } } --- ./memintercept-utils.c- 2005-02-17 16:59:56.000000000 -0500 +++ ./memintercept-utils.c 2005-07-11 10:02:08.000000000 -0400 @@ -30,6 +30,12 @@ #include "memintercept-utils.h" +/* include atomic operations macros from glibc */ +#ifndef __KERNEL__ +#define __KERNEL__ +#endif +#include + static int write_all (int fd, const void *buf, @@ -264,30 +270,22 @@ uint32_t mi_atomic_increment(uint32_t *addr) { -#if defined (__GNUC__) && defined (__i386__) - uint32_t result; - __asm__ __volatile__("lock; xaddl %0, %1; incl %0" - : "=r"(result), "=m"(*(addr)) - : "0" (1), "m"(*(addr)) : "memory"); - return result; +#if defined (__GNUC__) + return((uint32_t)atomic_inc_return((atomic_t *)addr)); #else /* Hope for the best */ - return *++p; + return *++addr; #endif } uint32_t mi_atomic_decrement(uint32_t *addr) { -#if defined (__GNUC__) && defined (__i386__) - uint32_t result; - __asm__ __volatile__("lock; xaddl %0, %1; decl %0" - : "=r"(result), "=m"(*(addr)) - : "0" (-1), "m"(*(addr)) : "memory"); - return result; +#if defined (__GNUC__) + return((uint32_t)atomic_dec_return((atomic_t *)addr)); #else /* Hope for the best */ - return *--p; + return *--addr; #endif } --- ./stack-frame.c- 2005-02-17 17:02:22.000000000 -0500 +++ ./stack-frame.c 2005-02-17 17:02:37.000000000 -0500 @@ -69,7 +69,7 @@ #define HAVE_FRAME_ACCESSORS -#if defined (__GNUC__) && defined (__i386__) +#if defined (__GNUC__) typedef struct stack_frame_struct stack_frame; struct stack_frame_struct { stack_frame *next; --=-7+sUXlK52Xb9hRUWMILx-- From jsacco@ydl.net Wed Jul 13 08:59:00 2005 Return-Path: X-Original-To: memprof-list@gnome.org Delivered-To: memprof-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F15A73B181A for ; Wed, 13 Jul 2005 08:58:59 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13544-04 for ; Wed, 13 Jul 2005 08:58:57 -0400 (EDT) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by menubar.gnome.org (Postfix) with ESMTP id 8CC6C3B18BD for ; Wed, 13 Jul 2005 08:58:55 -0400 (EDT) Received: from [192.168.0.1] (c-24-218-44-63.hsd1.ma.comcast.net[24.218.44.63]) by comcast.net (rwcrmhc11) with SMTP id <200507131258540130030d3ie>; Wed, 13 Jul 2005 12:58:54 +0000 From: jsacco To: memprof-list@gnome.org In-Reply-To: <0IJ800ICMLQNCM@mmp2.samsung.com> References: <0IJ800ICMLQNCM@mmp2.samsung.com> Content-Type: text/plain; charset=utf-8 Message-Id: <1121259532.9178.9.camel@plantain.jesacco.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2.ydl.1) Date: Wed, 13 Jul 2005 08:58:52 -0400 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: [question] installation of memprof X-BeenThere: memprof-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: the MemProf memory profiling tool List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jul 2005 12:59:00 -0000 libbfd is part of the binutils distribution. >From your message it appears that you are running some version of Redhat. Check to see if the binutils RPM is installed: rpm -qa | grep binutils If not: download / install the RPM If so: rpm -ql binutils | grep libbfd to see where the library is installed. -Joseph On Wed, 2005-07-06 at 23:01, 문중희 wrote: > Hello! > > Installing memprof(v 0.5.1) by ‘./configure’, I have found a message > like below. > > > > ject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 /usr/lib/libbfd.so > -L/usr/src/build/227532-i386/BUILD/binutils-2.13.90.0.18/build-i386-redhat-linux/libiberty/pic -liberty > > gcc: /usr/lib/libbfd.so: No such file or directory > > make[2]: *** [memprof] 오류 1 > > make[2]: 나감 `/home/samba/util/memprof-0.5.1' 디렉토리 > > make[1]: *** [all-recursive] 오류 1 > > make[1]: 나감 `/home/samba/util/memprof-0.5.1' 디렉토리 > > make: *** [all] 오류 2 > > > > When I examine /usr/lib, there are only libbfd.a, libbfd.la. > > My system info is linux based on x86. > > If you give me an advice, I’ll be very happy! > > Thanks~ > > > > > > ______________________________________________________________________ > _______________________________________________ > memprof-list mailing list > memprof-list@gnome.org > http://mail.gnome.org/mailman/listinfo/memprof-list -- jsacco [at] ydl [dot] net From joonghee.moon@samsung.com Wed Jul 6 23:01:44 2005 Return-Path: X-Original-To: memprof-list@gnome.org Delivered-To: memprof-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 28ECF3B12A6 for ; Wed, 6 Jul 2005 23:01:44 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01051-09 for ; Wed, 6 Jul 2005 23:01:40 -0400 (EDT) Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by menubar.gnome.org (Postfix) with ESMTP id E37F93B09C6 for ; Wed, 6 Jul 2005 23:01:37 -0400 (EDT) Received: from ep_mmp2 (mailout2.samsung.com [203.254.224.25]) by mailout2.samsung.com (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTP id <0IJ800AR8LQOOA@mailout2.samsung.com> for memprof-list@gnome.org; Thu, 07 Jul 2005 12:01:36 +0900 (KST) Received: from tryal ([168.219.193.29]) by mmp2.samsung.com (iPlanet Messaging Server 5.2 HotFix 1.17 (built Jun 23 2003)) with ESMTPA id <0IJ800ICLLQNCM@mmp2.samsung.com> for memprof-list@gnome.org; Thu, 07 Jul 2005 12:01:36 +0900 (KST) Date: Thu, 07 Jul 2005 12:01:27 +0900 From: =?ks_c_5601-1987?B?ua7B38jx?= To: memprof-list@gnome.org Message-id: <0IJ800ICMLQNCM@mmp2.samsung.com> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Content-type: multipart/alternative; boundary="Boundary_(ID_6dX8gM/QwE01xd7k2NO8Sw)" Thread-index: AcWCoCrYCNLSdqsXRjuAqQMFbipaJQ== X-Virus-Scanned: by amavisd-new at gnome.org X-Mailman-Approved-At: Wed, 13 Jul 2005 06:15:47 -0400 Subject: [question] installation of memprof X-BeenThere: memprof-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: the MemProf memory profiling tool List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jul 2005 03:01:44 -0000 This is a multi-part message in MIME format. --Boundary_(ID_6dX8gM/QwE01xd7k2NO8Sw) Content-type: text/plain; charset=ks_c_5601-1987 Content-transfer-encoding: quoted-printable Hello! Installing memprof(v 0.5.1) by =A1=AE./configure=A1=AF, I have found a = message like below. =20 ject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 /usr/lib/libbfd.so - L/usr/src/build/227532-i386/BUILD/binutils-2.13.90.0.18/build-i386-redhat= - linux/libiberty/pic -liberty gcc: /usr/lib/libbfd.so: No such file or directory make[2]: *** [memprof] =BF=C0=B7=F9 1 make[2]: =B3=AA=B0=A8 `/home/samba/util/memprof-0.5.1' = =B5=F0=B7=BA=C5=E4=B8=AE make[1]: *** [all-recursive] =BF=C0=B7=F9 1 make[1]: =B3=AA=B0=A8 `/home/samba/util/memprof-0.5.1' = =B5=F0=B7=BA=C5=E4=B8=AE make: *** [all] =BF=C0=B7=F9 2 =20 When I examine /usr/lib, there are only libbfd.a, libbfd.la. My system info is linux based on x86. If you give me an advice, I=A1=AFll be very happy! Thanks~ =20 --Boundary_(ID_6dX8gM/QwE01xd7k2NO8Sw) Content-type: text/html; charset=ks_c_5601-1987 Content-transfer-encoding: quoted-printable

Hello!

Installing memprof(v 0.5.1) by = =A1=AE./configure=A1=AF, I have found a message = like below.

 

ject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 = /usr/lib/libbfd.so -L/usr/src/build/227532-i386/BUILD/binutils-2.13.90.0.18/build-i386-redha= t-linux/libiberty/pic -liberty

gcc: /usr/lib/libbfd.so: No such file or = directory

make[2]: *** [memprof] =BF=C0=B7=F9 = 1

make[2]: =B3=AA=B0=A8 = `/home/samba/util/memprof-0.5.1' =B5=F0=B7=BA=C5=E4=B8=AE

make[1]: *** [all-recursive] = =BF=C0=B7=F9 = 1

make[1]: =B3=AA=B0=A8 = `/home/samba/util/memprof-0.5.1' =B5=F0=B7=BA=C5=E4=B8=AE

make: *** [all] =BF=C0=B7=F9 = 2

 

When I examine /usr/lib, there are only = libbfd.a, libbfd.la.

My system info is linux based on = x86.

If you give me an advice, I=A1=AFll be very = happy!

Thanks~

 

--Boundary_(ID_6dX8gM/QwE01xd7k2NO8Sw)-- From raphael@psi.co.at Fri Jul 8 18:54:07 2005 Return-Path: X-Original-To: memprof-list@gnome.org Delivered-To: memprof-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id AA11B3B0D9E for ; Fri, 8 Jul 2005 18:54:07 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29518-04 for ; Fri, 8 Jul 2005 18:54:06 -0400 (EDT) Received: from mx-00.sil.at (mx-00.sil.at [62.116.68.196]) by menubar.gnome.org (Postfix) with ESMTP id 332533B0CBA for ; Fri, 8 Jul 2005 18:54:04 -0400 (EDT) Received: (qmail-ldap/ctrl 33516 invoked from network); 8 Jul 2005 22:53:59 -0000 Received: from unknown (HELO exodus) ([62.116.76.117]) (envelope-sender ) by mx-00.sil.at (qmail-ldap-1.03) with SMTP for ; 8 Jul 2005 22:53:59 -0000 Received: by exodus (Postfix, from userid 1000) id A926A587; Sat, 9 Jul 2005 00:54:01 +0200 (CEST) From: Raphael Wegmann To: submit@gnome.org, memprof-list@gnome.org X-Mailer: bug-buddy 2.10.0 Message-Id: <20050708225401.A926A587@exodus> Date: Sat, 9 Jul 2005 00:54:01 +0200 (CEST) X-Virus-Scanned: by amavisd-new at gnome.org X-Mailman-Approved-At: Wed, 13 Jul 2005 06:15:47 -0400 Cc: wegmann@psi.co.at Subject: "memprof --follow-fork --follow-exec --g-fatal-warnings evolution" crashes X-BeenThere: memprof-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: the MemProf memory profiling tool List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jul 2005 22:54:07 -0000 Distribution: Debian 3.1 Package: memprof Severity: normal Version: GNOME2.10.0 0.5.x Gnome-Distributor: Ubuntu Synopsis: "memprof --follow-fork --follow-exec --g-fatal-warnings evolution" crashes Bugzilla-Product: memprof Bugzilla-Component: general Bugzilla-Version: 0.5.x BugBuddy-GnomeVersion: 2.0 (2.10.0) Description: Description of the crash: memintercept (7805): _MEMPROF_SOCKET = /tmp/memprof.Lg7uHG memintercept (7805): New process, operation = NEW, old_pid = 0 es menu class init memintercept (7806): New process, operation = FORK, old_pid = 7805 GLib-CRITICAL **: g_hash_table_insert: assertion `hash_table != NULL' failed aborting... Steps to reproduce the crash: 1. Run "memprof --follow-fork --follow-exec --g-fatal-warnings evolution" Expected Results: Getting a MemProf and evolution xclient How often does this happen? always Additional Information: The problem seems to be in process.c:955 in the function process_duplicate_block, which calls g_hash_table_insert even if (new_table == NULL). Debugging Information: Backtrace was generated from '/usr/bin/memprof' (no debugging symbols found) Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1". (no debugging symbols found) `system-supplied DSO at 0xffffe000' has disappeared; keeping its symbols. (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread -1221622624 (LWP 7804)] (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) 0xffffe410 in __kernel_vsyscall () #0 0xffffe410 in __kernel_vsyscall () #1 0xb7913463 in __waitpid_nocancel () from /lib/tls/i686/cmov/libpthread.so.0 #2 0xb7f9dd97 in libgnomeui_module_info_get () from /usr/lib/libgnomeui-2.so.0 #3 #4 0xffffe410 in __kernel_vsyscall () #5 0xb7628175 in raise () from /lib/tls/i686/cmov/libc.so.6 #6 0xb76297d8 in abort () from /lib/tls/i686/cmov/libc.so.6 #7 0xbffff040 in ?? () #8 0x00000000 in ?? () #9 0x00000020 in ?? () #10 0x00000000 in ?? () #11 0x00000000 in ?? () #12 0x00000000 in ?? () #13 0x00000000 in ?? () #14 0x00000000 in ?? () #15 0x00000000 in ?? () #16 0x00000000 in ?? () #17 0x00000000 in ?? () #18 0x00000000 in ?? () #19 0x00000000 in ?? () #20 0x00000000 in ?? () #21 0x00000000 in ?? () #22 0x00000000 in ?? () #23 0x00000000 in ?? () #24 0x00000000 in ?? () #25 0x00000000 in ?? () #26 0x00000000 in ?? () #27 0x00000000 in ?? () #28 0x00000000 in ?? () #29 0x00000000 in ?? () #30 0x00000000 in ?? () #31 0x00000000 in ?? () #32 0x00000000 in ?? () #33 0x00000000 in ?? () #34 0x00000000 in ?? () #35 0x00000000 in ?? () #36 0x00000000 in ?? () #37 0x00000000 in ?? () #38 0x00000000 in ?? () #39 0x00000000 in ?? () #40 0x00000000 in ?? () #41 0x084dfc58 in ?? () #42 0x0818ccd4 in ?? () #43 0xbffff0d8 in ?? () #44 0xb7755c2d in g_free () from /usr/lib/libglib-2.0.so.0 From joseph_sacco@comcast.net Mon Jul 11 13:56:12 2005 Return-Path: X-Original-To: memprof-list@gnome.org Delivered-To: memprof-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8FBB13B0B00 for ; Mon, 11 Jul 2005 13:56:12 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23527-01 for ; Mon, 11 Jul 2005 13:56:10 -0400 (EDT) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by menubar.gnome.org (Postfix) with ESMTP id 2C3FE3B0E6C for ; Mon, 11 Jul 2005 13:56:05 -0400 (EDT) Received: from plantain.jesacco.com (c-24-218-44-63.hsd1.ma.comcast.net[24.218.44.63]) by comcast.net (rwcrmhc11) with SMTP id <2005071117560301300314nse>; Mon, 11 Jul 2005 17:56:04 +0000 From: "Joseph E. Sacco, PhD" To: memprof-list@gnome.org Content-Type: multipart/mixed; boundary="=-7+sUXlK52Xb9hRUWMILx" Date: Mon, 11 Jul 2005 13:56:02 -0400 Message-Id: <1121104562.23822.49.camel@plantain.jesacco.com> Mime-Version: 1.0 X-Mailer: Evolution 2.3.4 X-Virus-Scanned: by amavisd-new at gnome.org X-Mailman-Approved-At: Wed, 13 Jul 2005 06:15:47 -0400 Cc: yellowdog-general@lists.terrasoftsolutions.com Subject: memprof-0.5.1 ported to a 32-bit linuxPPC running YellowDogLinux-4.0.1 X-BeenThere: memprof-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: the MemProf memory profiling tool List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jul 2005 17:56:12 -0000 --=-7+sUXlK52Xb9hRUWMILx Content-Type: text/plain Content-Transfer-Encoding: 7bit This is an attempt at hacking memprof-0.5.1 to run on a 32 bit PPC. Attached are files to implement the changes within the GARNOME framework: http://cipherfunk.org/garnome/ Discussion ----------- Three files were patched in order to get memprof to build, install, and run. * bfdutils.c coding changes made because libbfd has changed since 2002 * memintercept-utils.c atomic operations taken from glibc to implement atomic_increment/decrement for platforms that uses glibc [Must have /usr/include/asm/atomic.h installed]. * stack-frame.c removed an __i386__ restriction and got away with it on a 32 bit PPC [maybe...] Observations ------------- * I doubt this version of memprof will work on a 64 bit machine. * The build generates a few warnings that appear to be unimportant on a 32 bit machine. * running the application sometimes generates warnings about failure to access the very first element in a memory block. For example: ** (memprof:7657): WARNING **: Cannot read word 0/52 in block 0x1ffc18d4: Input/output error ** (memprof:7657): WARNING **: Cannot read word 0/2444 in block 0x3fc577fc: Input/output error ** (memprof:7657): WARNING **: Cannot read word 0/61 in block 0x3fc57000: Input/output error -Joseph -- jsacco [at] ydl [dot] net --=-7+sUXlK52Xb9hRUWMILx Content-Disposition: attachment; filename=Makefile.memprof Content-Type: text/plain; name=Makefile.memprof; charset=UTF-8 Content-Transfer-Encoding: 7bit GARNAME = memprof GARVERSION = 0.5.1 CATEGORIES = hacker-tools DISTFILES = $(GARNAME)-$(GARVERSION).tar.bz2 LIBDEPS = platform/libgnomeui platform/GConf PATCHFILES = memprof.patch DESCRIPTION = memprof define BLURB #FIXME: blurb goes here endef CONFIGURE_SCRIPTS = $(WORKSRC)/configure BUILD_SCRIPTS = $(WORKSRC)/Makefile INSTALL_SCRIPTS = $(WORKSRC)/Makefile CONFIGURE_ARGS = $(DIRPATHS) include ../category.mk --=-7+sUXlK52Xb9hRUWMILx Content-Disposition: attachment; filename=memprof.checksums Content-Type: text/plain; name=memprof.checksums; charset=UTF-8 Content-Transfer-Encoding: 7bit 2d83704352a584ea7c78fbda9540c5cb download/memprof-0.5.1.tar.bz2 c407090574c2a8e0b8548d8e8536e0e6 download/memprof.patch --=-7+sUXlK52Xb9hRUWMILx Content-Disposition: attachment; filename=memprof.patch Content-Type: text/x-patch; name=memprof.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit --- ./bfdutils.c- 2005-02-17 17:04:02.000000000 -0500 +++ ./bfdutils.c 2005-02-17 17:04:15.000000000 -0500 @@ -164,7 +164,7 @@ * into the internals instead. :-( */ /* (*func) (addr, bfd_section_size (map->abfd, section), user_data); */ - (*func) (addr, section->_cooked_size, user_data); + (*func) (addr, section->size, user_data); } } } --- ./memintercept-utils.c- 2005-02-17 16:59:56.000000000 -0500 +++ ./memintercept-utils.c 2005-07-11 10:02:08.000000000 -0400 @@ -30,6 +30,12 @@ #include "memintercept-utils.h" +/* include atomic operations macros from glibc */ +#ifndef __KERNEL__ +#define __KERNEL__ +#endif +#include + static int write_all (int fd, const void *buf, @@ -264,30 +270,22 @@ uint32_t mi_atomic_increment(uint32_t *addr) { -#if defined (__GNUC__) && defined (__i386__) - uint32_t result; - __asm__ __volatile__("lock; xaddl %0, %1; incl %0" - : "=r"(result), "=m"(*(addr)) - : "0" (1), "m"(*(addr)) : "memory"); - return result; +#if defined (__GNUC__) + return((uint32_t)atomic_inc_return((atomic_t *)addr)); #else /* Hope for the best */ - return *++p; + return *++addr; #endif } uint32_t mi_atomic_decrement(uint32_t *addr) { -#if defined (__GNUC__) && defined (__i386__) - uint32_t result; - __asm__ __volatile__("lock; xaddl %0, %1; decl %0" - : "=r"(result), "=m"(*(addr)) - : "0" (-1), "m"(*(addr)) : "memory"); - return result; +#if defined (__GNUC__) + return((uint32_t)atomic_dec_return((atomic_t *)addr)); #else /* Hope for the best */ - return *--p; + return *--addr; #endif } --- ./stack-frame.c- 2005-02-17 17:02:22.000000000 -0500 +++ ./stack-frame.c 2005-02-17 17:02:37.000000000 -0500 @@ -69,7 +69,7 @@ #define HAVE_FRAME_ACCESSORS -#if defined (__GNUC__) && defined (__i386__) +#if defined (__GNUC__) typedef struct stack_frame_struct stack_frame; struct stack_frame_struct { stack_frame *next; --=-7+sUXlK52Xb9hRUWMILx-- From jsacco@ydl.net Wed Jul 13 08:59:00 2005 Return-Path: X-Original-To: memprof-list@gnome.org Delivered-To: memprof-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F15A73B181A for ; Wed, 13 Jul 2005 08:58:59 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13544-04 for ; Wed, 13 Jul 2005 08:58:57 -0400 (EDT) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by menubar.gnome.org (Postfix) with ESMTP id 8CC6C3B18BD for ; Wed, 13 Jul 2005 08:58:55 -0400 (EDT) Received: from [192.168.0.1] (c-24-218-44-63.hsd1.ma.comcast.net[24.218.44.63]) by comcast.net (rwcrmhc11) with SMTP id <200507131258540130030d3ie>; Wed, 13 Jul 2005 12:58:54 +0000 From: jsacco To: memprof-list@gnome.org In-Reply-To: <0IJ800ICMLQNCM@mmp2.samsung.com> References: <0IJ800ICMLQNCM@mmp2.samsung.com> Content-Type: text/plain; charset=utf-8 Message-Id: <1121259532.9178.9.camel@plantain.jesacco.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2.ydl.1) Date: Wed, 13 Jul 2005 08:58:52 -0400 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: [question] installation of memprof X-BeenThere: memprof-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: the MemProf memory profiling tool List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jul 2005 12:59:00 -0000 libbfd is part of the binutils distribution. >From your message it appears that you are running some version of Redhat. Check to see if the binutils RPM is installed: rpm -qa | grep binutils If not: download / install the RPM If so: rpm -ql binutils | grep libbfd to see where the library is installed. -Joseph On Wed, 2005-07-06 at 23:01, 문중희 wrote: > Hello! > > Installing memprof(v 0.5.1) by ‘./configure’, I have found a message > like below. > > > > ject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 /usr/lib/libbfd.so > -L/usr/src/build/227532-i386/BUILD/binutils-2.13.90.0.18/build-i386-redhat-linux/libiberty/pic -liberty > > gcc: /usr/lib/libbfd.so: No such file or directory > > make[2]: *** [memprof] 오류 1 > > make[2]: 나감 `/home/samba/util/memprof-0.5.1' 디렉토리 > > make[1]: *** [all-recursive] 오류 1 > > make[1]: 나감 `/home/samba/util/memprof-0.5.1' 디렉토리 > > make: *** [all] 오류 2 > > > > When I examine /usr/lib, there are only libbfd.a, libbfd.la. > > My system info is linux based on x86. > > If you give me an advice, I’ll be very happy! > > Thanks~ > > > > > > ______________________________________________________________________ > _______________________________________________ > memprof-list mailing list > memprof-list@gnome.org > http://mail.gnome.org/mailman/listinfo/memprof-list -- jsacco [at] ydl [dot] net