ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Sergey Vlasov <vsu@altlinux.ru>
To: devel@altlinux.ru
Subject: Re: [devel] not stripped; FHS reminder
Date: Wed, 8 Oct 2003 19:03:56 +0400
Message-ID: <20031008150356.GD29075@master.mivlgu.local> (raw)
In-Reply-To: <20031008145538.GV1726@julia.office.altlinux.ru>

[-- Attachment #1: Type: text/plain, Size: 2696 bytes --]

On Wed, Oct 08, 2003 at 06:55:38PM +0400, Alexey Tourbin wrote:
> Господа,
> 
> not stripped binaries также не является ошибкой, но их наличие в каком-либо
> пакете должно иметь какую-нибудь причину.  Налачие же binaries в /usr/share вне
> зависимости от их дополнительным характеристик является злостным FHS violation.
[skip]
>  140 /usr/lib/valgrind/libpthread.so
> 1224 /usr/lib/valgrind/valgrind.so
>    8 /usr/lib/valgrind/valgrinq.so
>   68 /usr/lib/valgrind/vgskin_addrcheck.so
>  104 /usr/lib/valgrind/vgskin_cachegrind.so
>   16 /usr/lib/valgrind/vgskin_corecheck.so
>   80 /usr/lib/valgrind/vgskin_helgrind.so
>   48 /usr/lib/valgrind/vgskin_lackey.so
>  148 /usr/lib/valgrind/vgskin_memcheck.so
>   16 /usr/lib/valgrind/vgskin_none.so

Так и должно быть - это же инструмент для отладки.  Без отладочных
символов использовать его очень неудобно - см. README_PACKAGERS:

-- Don't strip the debug info off valgrind.so or libpthread.so.
   Valgrind will still work if you do, but it will generate less
   helpful error messages.  Here's an example:
 
   Mismatched free() / delete / delete []
      at 0x40043249: free (vg_clientfuncs.c:171)
      by 0x4102BB4E: QGArray::~QGArray(void) (tools/qgarray.cpp:149)
      by 0x4C261C41: PptDoc::~PptDoc(void) (include/qmemarray.h:60)
      by 0x4C261F0E: PptXml::~PptXml(void) (pptxml.cc:44)
      Address 0x4BB292A8 is 0 bytes inside a block of size 64 alloc'd
      at 0x4004318C: __builtin_vec_new (vg_clientfuncs.c:152)
      by 0x4C21BC15: KLaola::readSBStream(int) const (klaola.cc:314)
      by 0x4C21C155: KLaola::stream(KLaola::OLENode const *) (klaola.cc:416)
      by 0x4C21788F: OLEFilter::convert(QCString const &) (olefilter.cc:272)
 
   This tells you that some memory allocated with new[] was freed with
   free().  If valgrind.so was stripped the message would look like
   this:
 
   Mismatched free() / delete / delete []
      at 0x40043249: (inside valgrind.so)
      by 0x4102BB4E: QGArray::~QGArray(void) (tools/qgarray.cpp:149)
      by 0x4C261C41: PptDoc::~PptDoc(void) (include/qmemarray.h:60)
      by 0x4C261F0E: PptXml::~PptXml(void) (pptxml.cc:44)
      Address 0x4BB292A8 is 0 bytes inside a block of size 64 alloc'd
      at 0x4004318C: (inside valgrind.so)
      by 0x4C21BC15: KLaola::readSBStream(int) const (klaola.cc:314)
      by 0x4C21C155: KLaola::stream(KLaola::OLENode const *) (klaola.cc:416)
      by 0x4C21788F: OLEFilter::convert(QCString const &) (olefilter.cc:272)
 
   This isn't so helpful.  Although you can tell there is a mismatch,
   the names of the allocating and deallocating functions are no longer
   visible.  The same kind of thing occurs in various other messages
   from valgrind.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2003-10-08 15:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-08 14:55 Alexey Tourbin
2003-10-08 15:03 ` Sergey Vlasov [this message]
2003-10-09  4:07 ` Alexander Belov
2003-10-09  6:48   ` Vadim V. Zhytnikov
2003-10-09  8:41   ` Alexander Bokovoy
2003-10-09  8:44   ` Dmitry V. Levin
2003-10-09  9:51     ` Alexander Belov
2003-10-09 11:01       ` Vadim V. Zhytnikov
2003-10-09 11:22       ` [devel] " Michael Shigorin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031008150356.GD29075@master.mivlgu.local \
    --to=vsu@altlinux.ru \
    --cc=devel@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git