Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Loading Eprog in other thread doesn't work
- X-seq: zsh-workers 41323
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Sebastian Gniazdowski <psprint@xxxxxxxxxxx>
- Subject: Re: Loading Eprog in other thread doesn't work
- Date: Mon, 19 Jun 2017 13:12:53 -0700
- Cc: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=DcXBMLnB3mhei7zPaBkQgkdmx5sRkr3ebOhy59SbkC0=; b=PnvEj8kd4KVL0/+1X9c1sh9RYtdwkkizG+I2XUhYB9g7G4vSkS7qdpm5Yl73pl8MsT RxEJuoSD0q0v9Ofh7+OI1crXhBhzBg/iy9iR2MQsNwDe6S5EH+XCIr+Ug7kb1fIkZyOR eyrxlUJBY2ewuL1KyiDXG+DPouKChKDmWO1waXooaHta/NYtXiUfekmWaWYjkKiGnr/0 UVarKfu9/1fue7yJUrYqChD6e/bM7KdzVl6Ub39+hmRwBPNpwn/SKxw43tggbz5PUtvK eLQm8dGJUBKKtVEk36e1CsInesOPSo1FgOXlunFw4K7pU6b3yeA0fM+E0A6mT1E45R6u MpFA==
- In-reply-to: <etPan.5947e1be.54594545.63ea@zdharma.org>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <etPan.5947e1be.54594545.63ea@zdharma.org>
On Mon, Jun 19, 2017 at 7:37 AM, Sebastian Gniazdowski
<psprint@xxxxxxxxxxx> wrote:
>
> But it looks like state of Zsh gets disrupted. Single run of source_prepare / source_load often works, the code is executed fine. However the longer I repeat this, the weirder things happen. Example backtraces at the end.
>
Neither signal handling (which includes reaping child processes when
they exit) nor memory management is thread-safe, and there may be
shared memory issues with threads and traditional process forking as
well. The more threads you try to have the more likely you're going
to be to wander into one of these areas. I'd be very skeptical that
you can just plop threading into one part of zsh without at least some
serious semaphore work on the rest of it.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author