From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#45821: Emacs UDP support on Windows Date: Sun, 08 Jan 2023 18:08:50 +0200 Message-ID: <83o7r9ovot.fsf@gnu.org> References: <878riik5lo.fsf@gmail.com> <87v8lminfh.fsf@gmail.com> <87a62whzai.fsf@gmail.com> <87mt6uh9jd.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36543"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rpluim@gmail.com, 45821@debbugs.gnu.org To: Alex Matei Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 08 17:09:20 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pEYEa-0009JQ-J3 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 08 Jan 2023 17:09:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pEYEJ-0002LA-OC; Sun, 08 Jan 2023 11:09:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pEYEI-0002Ku-K9 for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2023 11:09:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pEYEI-0003E3-86 for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2023 11:09:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pEYEH-0008EP-V3 for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2023 11:09:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Jan 2023 16:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45821 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 45821-submit@debbugs.gnu.org id=B45821.167319411731600 (code B ref 45821); Sun, 08 Jan 2023 16:09:01 +0000 Original-Received: (at 45821) by debbugs.gnu.org; 8 Jan 2023 16:08:37 +0000 Original-Received: from localhost ([127.0.0.1]:34452 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEYDs-0008Dc-Nl for submit@debbugs.gnu.org; Sun, 08 Jan 2023 11:08:37 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57520) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEYDp-0008DO-29 for 45821@debbugs.gnu.org; Sun, 08 Jan 2023 11:08:36 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pEYDj-00035S-Lp; Sun, 08 Jan 2023 11:08:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=DQ7GJpSnL76Vfxvx2y45NAUq1GDiKVpXzMqQTIkXgWU=; b=oaT2ubpZiRN4Dk4pEznD lOJo8FeMjPfSeJgKSRtDaXTEwv/TonvfSs9RNy8pJgDohCySFhBHQYFbOLZK4bv25jvDtI6NodAhZ ig19AcYXI0WFEkYCVHaBN72RD225Y1o2Le4yslqU4gHotiSDoW2vksevwd34jwbx7/YRG7rVgjmOR lmz210N83ugLqKQlFMoBCG6Qm74yEr5JujDB91RDqGSrVonxEqu0d2fzgM7fv9Q2qKE7PHlCKmFHM k/e+d5ebAwdj0bphGKnMHevJLVTuZxwOmlJQ30UOEDUA/uJfRm2TBk4CjaiuN7UwEntze11NbviYr bRACLse7CeLc5g==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pEYDj-0001BT-00; Sun, 08 Jan 2023 11:08:27 -0500 In-Reply-To: (message from Alex Matei on Sun, 8 Jan 2023 16:00:27 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:252933 Archived-At: > From: Alex Matei > CC: Eli Zaretskii , "45821@debbugs.gnu.org" > <45821@debbugs.gnu.org> > Date: Sun, 8 Jan 2023 16:00:27 +0000 > > Okay, this was helpful, I was able to hit an access violation error on the 4th test 😊 -> only issue that now I > need to get up to speed with GDB since it looks like WinDBG (which is my goto debugger, and also setup as > postmortem for any process that fails on my machine, including Emacs) cannot read the symbols generated > by the GCC compiler ☹ > > * Soo, any tips on how to easily run the tests under debugger? Easy: cd /path/to/emacs/src gdb ./emacs.exe in GDB: (gdb) run -Q in Emacs: M-x load-file RET ../test/lisp/net/network-stream-tests.el RET M-x ert-run-tests-interactively RET THE-FAILING-TEST RET where THE-FAILING-TEST is the name of the test which crashes. Then wait for the crash, at which point GDB will kick in. > * Or is there a way to set gdb to automatically launch whenever a crash happens in Emacs? -> this is > what I typically do with WinDBG and it’s a pretty convenient feature That is possible, but I don't recommend it: by the time the unhandled exception will be thrown which starts GDB, it's too late: the original crash was already converted into an unhandled exception, and you will see in GDB a backtrace that has no traces of the code which actually crashed.