From: Vin Shelton <acs@alumni.princeton.edu>
To: Peter Stephenson <Peter.Stephenson@csr.com>
Cc: zsh-workers@zsh.org
Subject: Re: coredump completing scp
Date: Fri, 28 Jan 2011 20:42:17 -0500 [thread overview]
Message-ID: <AANLkTikaArDyk7seZO_uy7=E=OyA9uwWkqeC_EO9AYZZ@mail.gmail.com> (raw)
In-Reply-To: <20110128095616.18999141@pwslap01u.europe.root.pri>
Peter -
On Fri, Jan 28, 2011 at 4:56 AM, Peter Stephenson
<Peter.Stephenson@csr.com> wrote:
> On Thu, 27 Jan 2011 19:30:31 -0800
> Bart Schaefer <schaefer@brasslantern.com> wrote:
>> On Jan 27, 10:13pm, Vin Shelton wrote:
>> }
>> } This shell was configured --with-zsh-mem and that seems to be
>> required } to provoke the coredump.
>> }
>> } #11 0x00007fd2d8b57ccc in setpwent () from /lib64/libc.so.6
>> } #12 0x000000000043ecb4 in fillnameddirtable (ht=0x6e4b08) at
>> hashtable.c:1382 }
>> } Please let me know if any further info is needed.
>
> If you have valgrind, running "valgrind zsh -f" might be useful. (I
> don't think you'd need any of the options to look for leaked memory
> for something like this.)
Thanks for the suggestion. Here's the report from valgrind. The call
to setpwent is made from fillnameddirtable in hahstable.c. I don't
really know what else to make of this, though.
legolas% scp --25509-- REDIR: 0x55636b0 (strcat) redirected to
0x4c27140 (strcat)
--25509-- Reading syms from
/home/acs/tst/lib/zsh/4.3.11-dev-1/zsh/computil.so (0x62ed000)
==25509==
==25509== HEAP SUMMARY:
==25509== in use at exit: 0 bytes in 0 blocks
==25509== total heap usage: 0 allocs, 0 frees, 0 bytes allocated
==25509==
==25509== All heap blocks were freed -- no leaks are possible
==25509==
==25509== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 2 from 2)
--25509--
--25509-- used_suppression: 2 dl-hack3-cond-1
==25509==
==25509== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 2 from 2)
--25509-- Reading syms from /lib64/libnss_compat-2.11.2.so (0x6502000)
--25509-- Reading syms from /lib64/libnsl-2.11.2.so (0x670b000)
--25509-- Reading syms from /lib64/libnss_nis-2.11.2.so (0x6923000)
--25509-- Reading syms from /lib64/libnss_files-2.11.2.so (0x6b2e000)
--25509-- REDIR: 0x555ff60 (free) redirected to 0x4c25ef4 (free)
==25509== Invalid free() / delete / delete[]
==25509== at 0x4C25F7B: free (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==25509== by 0x671AD49: init (in /lib64/libnsl-2.11.2.so)
==25509== by 0x671AE79: _nsl_default_nss (in /lib64/libnsl-2.11.2.so)
==25509== by 0x6928300: _nss_nis_setpwent (in /lib64/libnss_nis-2.11.2.so)
==25509== by 0x6504557: internal_setpwent (in /lib64/libnss_compat-2.11.2.so)
==25509== by 0x6505895: _nss_compat_setpwent (in
/lib64/libnss_compat-2.11.2.so)
==25509== by 0x55C9E1F: __nss_setent (in /lib64/libc-2.11.2.so)
==25509== by 0x5586CCB: setpwent (in /lib64/libc-2.11.2.so)
==25509== by 0x43ECB3: fillnameddirtable (hashtable.c:1382)
==25509== by 0x5EE0130: scanpmuserdirs (parameter.c:1471)
==25509== by 0x43D339: scanmatchtable (hashtable.c:381)
==25509== by 0x43D630: scanhashtable (hashtable.c:444)
==25509== Address 0x42d05e8 is not stack'd, malloc'd or (recently) free'd
==25509==
Regards,
Vin
next prev parent reply other threads:[~2011-01-29 1:42 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-28 3:13 Vin Shelton
2011-01-28 3:30 ` Bart Schaefer
2011-01-28 3:46 ` Vin Shelton
2011-01-28 9:56 ` Peter Stephenson
2011-01-28 10:14 ` Peter Stephenson
2011-01-29 1:42 ` Vin Shelton [this message]
2011-01-29 22:16 ` Peter Stephenson
2011-01-29 23:13 ` Bart Schaefer
2011-01-29 23:33 ` Peter Stephenson
2011-01-30 5:51 ` Bart Schaefer
2011-02-15 19:02 ` Peter Stephenson
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='AANLkTikaArDyk7seZO_uy7=E=OyA9uwWkqeC_EO9AYZZ@mail.gmail.com' \
--to=acs@alumni.princeton.edu \
--cc=Peter.Stephenson@csr.com \
--cc=zsh-workers@zsh.org \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
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).