gnu/77818: GDB locks in wait4() when running applications

Seán C. Farley sean-freebsd at
Tue Feb 22 21:10:26 GMT 2005

The following reply was made to PR gnu/77818; it has been noted by GNATS.

From: =?ISO-8859-1?Q?Se=E1n_C=2E_Farley?= <sean-freebsd at>
To: freebsd-gnats-submit at
Cc: "Greg 'groggy' Lehey" <grog at>
Subject: Re: gnu/77818: GDB locks in wait4() when running applications
Date: Tue, 22 Feb 2005 15:06:19 -0600 (CST)

   This message is in MIME format.  The first part should be readable text,
   while the remaining parts are likely unreadable without MIME-aware tools.
 Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: QUOTED-PRINTABLE
 I have narrowed the issue down to a reproducible case.
 With Zsh 4.2.1 and 4.2.4, Zsh will hang when GDB runs the requested
 command (i.e. /bin/ls).  The execution runs as:
      /usr/local/bin/zsh -c exec /bin/ls
 Besides Zsh being the shell used, the shell needs to run a backtick
 command in .zshenv.  Example:
 I do not know why this only happens when called via GDB.  Running the
 command from the command-line returns without any obvious problems.
 I was unable to reproduce this with /bin/tcsh or /bin/sh by adding the
 above setting to .login (or .tcshrc) or .profile respectively.
 With Linux, GDB and Zsh do not exhibit this problem, so I am unsure if
 it is Zsh's or FreeBSD's bug.
 sean-freebsd at

More information about the freebsd-bugs mailing list