From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Markus Triska Newsgroups: gmane.emacs.bugs Subject: bug#554: OSX: with-temp-buffer kills unrelated processes Date: Sun, 13 Jul 2008 19:39:57 +0200 (CEST) Message-ID: <20080713173957.65071954A3D@mt-computer.local> Reply-To: Markus Triska , 554@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1215972459 21327 80.91.229.12 (13 Jul 2008 18:07:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 13 Jul 2008 18:07:39 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 13 20:08:27 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KI5zk-0000xW-HR for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Jul 2008 20:08:24 +0200 Original-Received: from localhost ([127.0.0.1]:47773 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KI5ys-0000w3-LB for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Jul 2008 14:07:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KI5yn-0000uB-Bq for bug-gnu-emacs@gnu.org; Sun, 13 Jul 2008 14:07:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KI5yl-0000tb-3W for bug-gnu-emacs@gnu.org; Sun, 13 Jul 2008 14:07:24 -0400 Original-Received: from [199.232.76.173] (port=58386 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KI5yk-0000tY-SU for bug-gnu-emacs@gnu.org; Sun, 13 Jul 2008 14:07:22 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:38837) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KI5yk-0000T3-5Q for bug-gnu-emacs@gnu.org; Sun, 13 Jul 2008 14:07:22 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m6DI7GGg017793; Sun, 13 Jul 2008 11:07:16 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m6DHo3Mt012425; Sun, 13 Jul 2008 10:50:03 -0700 X-Loop: don@donarmstrong.com Resent-From: Markus Triska Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 13 Jul 2008 17:50:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 554 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.121597082611110 (code B ref -1); Sun, 13 Jul 2008 17:50:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 13 Jul 2008 17:40:26 +0000 Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m6DHeLbX011104 for ; Sun, 13 Jul 2008 10:40:23 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KI5Yb-0004Ak-Da for bug-gnu-emacs@gnu.org; Sun, 13 Jul 2008 13:40:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KI5YZ-00049G-6r for bug-gnu-emacs@gnu.org; Sun, 13 Jul 2008 13:40:20 -0400 Original-Received: from [199.232.76.173] (port=59742 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KI5YZ-00049B-33 for bug-gnu-emacs@gnu.org; Sun, 13 Jul 2008 13:40:19 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:46875) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KI5YY-0004EE-CN for bug-gnu-emacs@gnu.org; Sun, 13 Jul 2008 13:40:18 -0400 Original-Received: (qmail invoked by alias); 13 Jul 2008 17:40:16 -0000 Original-Received: from chello062178240212.3.14.tuwien.teleweb.at (EHLO mt-computer.local) [62.178.240.212] by mail.gmx.net (mp003) with SMTP; 13 Jul 2008 19:40:16 +0200 X-Authenticated: #4064391 X-Provags-ID: V01U2FsdGVkX1/5LA1v3/358POX8O8ZK17l2CWyp+3xUQLSwwTUO6 i6m8h1V1Yzt9KI Original-Received: by mt-computer.local (Postfix, from userid 502) id 65071954A3D; Sun, 13 Jul 2008 19:39:57 +0200 (CEST) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.52 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Sun, 13 Jul 2008 14:07:24 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:18712 Archived-At: Let w.el consist of the following forms: (start-process "bc1" (current-buffer) "bc") (with-temp-buffer (start-process "bc2" (current-buffer) "bc")) When I do "emacs -Q w.el", and press C-M-x on the first form, "bc" (the GNU arbitrary precision calculator) is started and puts its start-up message at the end of the buffer (you can also use any other program that waits for further input). When I then press C-M-x on the second form, the first process receives SIGHUP, and the message reads: "Process bc1 hangup" I can reproduce this with Emacs 22.2 and latest CVS on OSX. I tried to trace it in gdb by putting a breakpoint at process_send_signal, but couldn't reproduce it in the debugger. Otherwise it works every time. In GNU Emacs 22.2.1 (i386-apple-darwin8.11.1) of 2008-05-19 on mt-computer.local configured using `configure '--prefix=/opt/local' '--without-x' '--without-carbon' 'CC=/usr/bin/gcc-4.0' 'CFLAGS=-O2' 'LDFLAGS=-L/opt/local/lib' 'CPPFLAGS=-I/opt/local/include' 'CPP=/usr/bin/cpp-4.0'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil locale-coding-system: nil default-enable-multibyte-characters: t