From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27395 invoked by alias); 23 Jun 2009 17:11:33 -0000 Received: (qmail 27386 invoked by uid 22791); 23 Jun 2009 17:11:32 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.45.13) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 23 Jun 2009 17:11:26 +0000 Received: from wpaz29.hot.corp.google.com (wpaz29.hot.corp.google.com [172.24.198.93]) by smtp-out.google.com with ESMTP id n5NHBOun023545 for ; Tue, 23 Jun 2009 10:11:24 -0700 Received: from yxe15 (yxe15.prod.google.com [10.190.2.15]) by wpaz29.hot.corp.google.com with ESMTP id n5NHBLXs022530 for ; Tue, 23 Jun 2009 10:11:22 -0700 Received: by yxe15 with SMTP id 15so309813yxe.5 for ; Tue, 23 Jun 2009 10:11:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.90.120.14 with SMTP id s14mr208558agc.51.1245777081674; Tue, 23 Jun 2009 10:11:21 -0700 (PDT) In-Reply-To: <003001c9f41e$3a294830$ae7bd890$@u-strasbg.fr> References: <003001c9f41e$3a294830$ae7bd890$@u-strasbg.fr> Date: Tue, 23 Jun 2009 17:11:00 -0000 Message-ID: Subject: Re: [RFA] Fix gdbserver crash if using kill in remote connection to windows gdbserver From: Doug Evans To: Pierre Muller Cc: gdb-patches@sourceware.org, Pedro Alves Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-06/txt/msg00619.txt.bz2 On Tue, Jun 23, 2009 at 9:18 AM, Pierre Muller wro= te: > =A0GDB uses an internal fake pid (42000) for > remote targets not supporting multi-processes, > but send this fake pid to gdbserver when > kill command is used with remote target. > > =A0This made win32-low look for a inferior of > pid 42000, which does not exist and created a crash > in remove_process that was called with a NULL argument. I thought gdb used 42000 for targets that don't have pids (e.g. embedded targets). It's kinda odd that gdb is using the magic 42000 on a target with pids. Is that, perchance, the bug that needs fixing here?