Opened 5 months ago

Closed 5 months ago

#70293 closed defect (fixed)

zsh might hang waiting for subprocess when build with clang-16 or gcc-14

Reported by: thelastlin (Xavier Hsinyuan) Owned by: larryv (Lawrence Velázquez)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: zsh

Description

zsh might hang waiting for subprocess when build with clang-16 or gcc-14.

Step to reproduce:

  1. execute zsh -c "echo $(whoami)"
  2. try send SIGTERM to zsh, nothing response.

Workaround:

Add -Wno-error=implicit-int to CFLAGS during configure, or

pick commit ab4d62e("50641: use 'int main()' in test C-codes in configure") from upstream.

Change History (3)

comment:1 Changed 5 months ago by jmroot (Joshua Root)

Owner: set to larryv
Status: newassigned

comment:2 in reply to:  description Changed 5 months ago by larryv (Lawrence Velázquez)

Status: assignedaccepted

Thanks for the report. I'll go with the extra compiler flag.

comment:3 Changed 5 months ago by larryv (Lawrence Velázquez)

Resolution: fixed
Status: acceptedclosed

In 795f62b982f398fec6aa2f911d168751bb660df9/macports-ports (master):

zsh: Run configure tests more leniently

Several configure tests fail because recent compilers error out on
functions with missing type specifiers. The resulting shell hangs
indefinitely in certain circumstances.

Suppress the "implicit-int" compiler error during configure. Upstream
has added explicit type specifiers to the configure functions, so the
next release will fix this issue properly.

Closes: #70293
See: https://www.zsh.org/mla/workers/2022/msg00964.html

Note: See TracTickets for help on using tickets.