[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-users:29646] Re: Electorical Fence?



佐野@浜松です。

In <20010822084505.DEE64F2A25@xxxxxxxxxxxxxxxxxxxxx>,
  on "Wed, 22 Aug 2001 17:45:07 +0900',
   with "[debian-users:29611] Re: Electorical Fence?",
 KISE Hiroshi <fuyuneko@xxxxxxxxxxxx> さん wrote:

> > Cプログラムのメモリエラーを発見するのに便利なElectorical Fenceという
> > ライブラリがあるのですが、potatoには入ってないみたいです。
> > hammには入ってたんですが、ディストリビューションから落ちちゃったんで
> > しょうか?もしdebパッケージがあるなら場所を教えて欲しいのですが。
> 
> うーん、探しにくいかもしれません。だって“Electric Fence”ですから。
> パッケージ名は“electric-fence”です。

パッケージを探す場合は apt-cache search で検索すると便利なんですが
キーワードが間違っていると目的のモノまで辿りつけませんから注意が
必要ですね。

例えば apt-cache search 'memory'|grep -i Electorical
で検索すると、該当するものが無いらしく何も表示されません。

一方 apt-cache search 'memory leak' の場合は

ccmalloc - A memory profiler/debugger
bridge - Control software and documentation for bridging in 2.0 kernels
task-debug - Debugging of C, C++, Objective C and friends

の 3 つがヒットします。さらに
 apt-cache search 'memory'|grep -i fence を実行すると

electric-fence - A malloc(3) debugger

がちゃんと見つかります。

なお apt-cache search memory |wc -l を実行すると 103 という
答えが返ってきます。これだと引用するにはちょっと多いですが
 apt-cache search memory |lv を実行して結果を眺めてみると、
あんまり関係無さそうなものもけっこう並んでるみたいですね。

ここで "/debug" で lv の検索を使ってチェックしてみるとなんか
それっぽいのがいくつか出てくるので、改めて
 apt-cache search memory |grep -i debug を実行すると

kernel-patch-2.2.13-kdb - Builtin kernel debugger.
kernel-patch-2.2.10-kdb - Builtin kernel debugger.
fda - C malloc debug library
ccmalloc - A memory profiler/debugger
electric-fence - A malloc(3) debugger
task-debug - Debugging of C, C++, Objective C and friends
dmalloc - Debug memory allocation library
gccchecker - Memory access debugger for C language development

というのが出てきます。

それから task-debug の内容を apt-cache show task-debug で
調べてみると

Package: task-debug
Priority: optional
Section: devel
Installed-Size: 11
Maintainer: Debian GCC maintainers <gcc@packages.debian.org>
Architecture: all
Source: task-devel
Version: 0.5
Depends: gdb
Recommends: ddd | xxgdb,
            electric-fence,
            ccmalloc | dmalloc | fda | debauch,
            memprof,
            lclint
Suggests: task-c-dev | task-c++-dev | task-objc-dev | task-fortran,
          dejagnu
Filename: dists/potato/main/binary-all/devel/task-debug_0.5.deb
Size: 3352
MD5sum: 0d978ce0d7711c6c710782825f4920a7
Description: Debugging of C, C++, Objective C and friends
 A metapackage containing dependencies for the debugging of programs written
 in C, C++, Objective C and other languages supported by the gcc compiler,
 including:
  o The GNU debugger gdb
  o A sophisticated and a simple GUI frontend for the GNU debugger
  o Tools to detect memory access violations
  o Tools to track down memory leaks
  o Tools to annotate source code and extended assertion support
  o Tools for regression testing
 
というのがありますね。ここで Recommends に設定されているものは
それなりに使われているものでしょうから、試してみるのもいいんじゃ
ないかと。

-- 
   # 以上、「Debian におけるパッケージの探し方」の一部でした。
    <kgh12351@xxxxxxxxxxx> : Taketoshi Sano (佐野 武俊)