zsh-workers
 help / color / mirror / code / Atom feed
From: Vincent Lefevre <vincent@vinc17.net>
To: zsh-workers@zsh.org
Subject: zsh froze under Mac OS X
Date: Mon, 22 Nov 2010 15:49:43 +0100	[thread overview]
Message-ID: <20101122144943.GA1727@prunille.vinc17.org> (raw)

Hi,

I had the following problem with zsh 4.3.10-dev-2 under Mac OS X
(it includes two patches that where posted here: one for
Src/Zle/computil.c and one for Src/jobs.c).

I did the following:
1. I quit a program (mutt) that was running for several days in screen.
2. A few minutes later, I reran the same program (but I don't think
   zsh started it because nothing occurred).
3. I did a Ctrl-C, then I couldn't have the prompt.

But as the machine started to be very slow after (1), I suspect that
problems started to appear at that time.

When I looked with htop after (3), I could see that zsh was taking
100% CPU time with more and more memory (I killed it with "kill -9",
while it was at 40% memory, according to htop).

AFAIK, this is the first time I get this problem exactly. But note
that I often get zsh crashes when a ssh started by zsh and running
for several days terminates.

Output of "sample 1539 10 10" while zsh was running:

Analysis of sampling pid 1539 every 10.000000 milliseconds
Call graph:
    993 Thread_100b
      993 start
        993 _start
          993 zsh_main
            993 zexit
              993 sourcehome
                993 source
                  993 loop
                    993 parse_event
                      993 par_event
                        993 par_sublist
                          993 par_sublist2
                            993 par_pline
                              993 par_cmd
                                992 par_simple
                                  989 zshlex
                                    978 gettokstr
                                      973 hcalloc
                                        965 zhalloc
                                          936 zhalloc
                                          29 zalloc
                                            28 malloc
                                              28 szone_malloc
                                                28 large_and_huge_malloc
                                                  26 vm_allocate
                                                    26 mach_msg
                                                      26 mach_msg_trap
                                                        26 mach_msg_trap
                                                  2 large_and_huge_malloc
                                            1 zalloc
                                        8 __bzero
                                          8 __bzero
                                      4 inungetc
                                        2 zshcalloc
                                          1 malloc
                                            1 malloc
                                          1 szone_malloc
                                            1 szone_malloc
                                        1 inputsetline
                                          1 inputsetline
                                        1 malloc
                                          1 malloc
                                      1 inpush
                                        1 inpush
                                    6 ingetc
                                      3 inpoptop
                                        2 free
                                          1 free
                                          1 szone_size
                                            1 szone_size
                                        1 inpoptop
                                      2 free
                                        2 free
                                      1 ingetc
                                    2 exalias
                                      1 exalias
                                      1 gethashnode
                                        1 gethashnode
                                    2 zshlex
                                    1 0x87440
                                      1 inungetc
                                        1 inungetc
                                  2 ecstrcode
                                    2 dyld_stub_strlen
                                      2 dyld_stub_strlen
                                  1 ecadd
                                    1 ecadd
                                1 ecadd
                                  1 ecadd

Total number in stack (recursive counted multiple, when >=5):

Sort by top of stack, same collapsed (when >= 5):
        zhalloc        936
        mach_msg_trap        26
        __bzero        8

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)


             reply	other threads:[~2010-11-22 14:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-22 14:49 Vincent Lefevre [this message]
2010-11-22 15:39 ` Bart Schaefer
2010-11-23 11:08   ` Peter Stephenson
2010-11-23 13:40     ` Vincent Lefevre
2010-11-23 12:03   ` Vincent Lefevre

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=20101122144943.GA1727@prunille.vinc17.org \
    --to=vincent@vinc17.net \
    --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).