Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
crash/hang with gcc 5+ -O2 and --enable-zsh-mem
- X-seq: zsh-workers 42398
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxx>
- Subject: crash/hang with gcc 5+ -O2 and --enable-zsh-mem
- Date: Sat, 24 Feb 2018 20:01:28 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Im8BERUwGiIHZmZiCUuLdUbcPM/8R6IlDxFvW8CfJqQ=; b=Z6RBicFf2oZFB6WNCDErzhideceo6bAEApzGRTvq1rswNl9/bJpk2UdXLAKc+h4AUq AJlVrj6PzqAm2kl8tW3QDlbsdRk9W1qCEVjm+sBr8DJQa63TGqZmR+KUDRnONpDaOMch 9seuN7Ag4UltoutFTjrOeYJQK2TPe5MzDTX9PYQ/Q+MKoXrJrBu33yHfYn/MU/w5mJ6G YxZ12dCyKMBQRBNlVgWVIsFZcpaJ5vac1ZOOZ4Xa9+FWlaPxGzQ+eSh6SXE5mOozzB2H z0y/bpfBLc5mbju3lhVeg3Y+26XHR1qLjMrSJc88igPvTqpNqnGZfmxShydNyUIfzkaH f+rg==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
I figured out this was because of -foptimize-strlen which somehow
causes calloc() to recurse infinitely and crash (with -O2 which also
enables -foptimize-sibling-calls it just hangs with no crash because
it doesn't consume extra stack, i presume). What I don't know is how
to fix it, or the causal relationship between strlen optimization and
calloc recursing infinitely. I've tried gcc 5.4, 6.2 and 6.4 with the
same result. Compiling only Src/mem.c with the problematic flag is
enough so it's something in there, but removing the one strlen() call
in the file has no effect.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author