zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: segfault in completion for configure
Date: Sat, 12 Mar 2016 08:20:29 -0800	[thread overview]
Message-ID: <160312082029.ZM2340@torch.brasslantern.com> (raw)
In-Reply-To: <20160312031116.GC28459@zira.vinc17.org>

On Mar 12,  4:11am, Vincent Lefevre wrote:
}
} On 2016-03-11 15:00:56 -0800, Bart Schaefer wrote:
} > [...] if you have a TRAPCHLD function it's
} > possible that it's corrupting something.
} 
} I can't reproduce the bug if I remove:
} 
}   [[ -n $TTY && $TERM == (xterm*|dtterm|mlterm|rxvt*|screen*) ]] &&
}     {
}       [[ $TERM == screen* ]] || print -nP "\e]1;%m${ptsn:+[$ptsn]}:%.\x07"
}       print -nP "\e]2;${jobstr}${WINTITLE:+ $WINTITLE |} %n@%m - %~ | %y\x07"
}     } > /dev/tty

What if you just remove the $TERM comparisons, i.e. leave the test of
$TTY and the print statement?

There are two static globals in pattern.c:

/* Flags used in both compilation and execution */
static int patflags;                /* flags passed down to patcompile */
static int patglobflags;  /* globbing flags & approx */

I'm guessing that re-entering pattern matching during the signal handler
is messing up those globals and leading eventually to the crash.


  reply	other threads:[~2016-03-12 16:20 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-11 13:47 Vincent Lefevre
2016-03-11 14:32 ` Peter Stephenson
2016-03-11 23:00   ` Bart Schaefer
2016-03-12  3:11     ` Vincent Lefevre
2016-03-12 16:20       ` Bart Schaefer [this message]
2016-03-12 17:34         ` Bart Schaefer
2016-03-13 21:58           ` Vincent Lefevre
2016-03-15  2:43             ` Bart Schaefer
2016-03-17 13:43               ` Vincent Lefevre
2016-03-17 15:15               ` Vincent Lefevre
2016-03-17 18:13                 ` Bart Schaefer
2016-03-17 19:55                   ` Vincent Lefevre
2016-03-17 19:59                   ` Vincent Lefevre
2016-03-17 15:24               ` Vincent Lefevre
2016-03-17 18:15                 ` Bart Schaefer
2016-03-17 18:24                   ` Peter Stephenson
2016-03-17 20:09                     ` Daniel Shahaf
2016-03-17 21:49                       ` Bart Schaefer
2016-03-20  2:07                   ` Bart Schaefer
2016-03-21 10:56                     ` Peter Stephenson
2016-03-21 15:26                       ` Bart Schaefer
2016-04-05 12:49                     ` Vincent Lefevre
2016-03-13  2:26         ` Vincent Lefevre
2016-03-12  2:56   ` Vincent Lefevre
2016-03-12 16:15     ` Bart Schaefer
2016-03-11 22:13 ` Daniel Shahaf
2016-03-12  2:58   ` 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=160312082029.ZM2340@torch.brasslantern.com \
    --to=schaefer@brasslantern.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).