Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80928 - dmalloc will not generate logfiles
Summary: dmalloc will not generate logfiles
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High major
Assignee: Aaron Walker (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-05 17:11 UTC by Wormo (RETIRED)
Modified: 2005-02-05 18:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to allow building on ppc with sandbox enabled (dmalloc-5.4.2-sandbox.patch,2.89 KB, patch)
2005-02-05 17:53 UTC, Wormo (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Wormo (RETIRED) gentoo-dev 2005-02-05 17:11:50 UTC
dmalloc will not write out memory activity to a logfile. Both static and shared versions are affected. The environment variables (set by running dmalloc utility) are definitely correct because everything works fine when I apply the attached build patch.

Apparently the configure test for GETENV_SAFE failed with the
default gentoo flags, which resulted in GETENV_SAFE 0 in conf.h
This results in the skipping of the code in malloc.c that is supposed
to read in the options from the environment!

The reason the configure test failed seems to be that the sandbox library
doesn't like it when the conftest redefines the standard lib function "malloc".
Devs on #gentoo-portage were not suprised that this was failing, and suggested
defining the test malloc as a static function. This allows the configure test
to run without segfaulting and the problem is fixed.





Reproducible: Always
Steps to Reproduce:
1. link program with dmalloc
2. eval `dmalloc high -l DMALLOC.log
3. run program

Actual Results:  
DMALLOC.log is not generated

Expected Results:  
the memory usage information should be in a file DMALLOC.log

Portage 2.0.51-r15 (default-linux/ppc/2004.3, gcc-3.4.1, glibc-2.3.3.20040420-r2
, 2.6.10-gentoo-r6 ppc)
=================================================================
System uname: 2.6.10-gentoo-r6 ppc 750FX
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.3 [2.3.3 (#1, Apr 12 2004, 22:25:22)]
dev-lang/python:     2.3.3
sys-devel/autoconf:  2.59-r5
sys-devel/automake:  1.8.5-r1
sys-devel/binutils:  2.15.90.0.3-r3
sys-devel/libtool:   1.5.2-r7
virtual/os-headers:  2.4.22
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CFLAGS="-O3 -mcpu=750 -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -mcpu=750 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache cvs digest distlocks maketest sandbox
sfperms test"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X berkdb bitmap-fonts cdr dvd esd f77 font-server fortran gdbm gif
gimpprint gpm gtk imagemagick imlib jpeg libwww motif ncurses opengl pam perl
png ppc readline ssl tcpd tetex tiff truetype truetype-fonts type1-fonts xml2 xv
zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Wormo (RETIRED) gentoo-dev 2005-02-05 17:53:52 UTC
Created attachment 50500 [details, diff]
patch to allow building on ppc with sandbox enabled
Comment 2 Aaron Walker (RETIRED) gentoo-dev 2005-02-05 18:11:22 UTC
Looks good.  Thanks much for the patch.