From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#50902: 28.0.50; emacs-module-tests time out Date: Mon, 18 Oct 2021 16:09:47 +0200 Message-ID: <87lf2qjufo.fsf@gmx.de> References: <87a6jv6vqd.fsf@gmx.de> <87tuhr3fnm.fsf@gmx.de> <87ily3zey9.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21445"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Philipp Stephani , 50902@debbugs.gnu.org To: Philipp Stephani Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 18 16:10:14 2021 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 1mcTLC-0005O2-1q for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 18 Oct 2021 16:10:14 +0200 Original-Received: from localhost ([::1]:56306 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mcTLB-0007rO-0p for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 18 Oct 2021 10:10:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59804) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcTL1-0007pH-Fv for bug-gnu-emacs@gnu.org; Mon, 18 Oct 2021 10:10:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36642) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mcTL1-0002U8-43 for bug-gnu-emacs@gnu.org; Mon, 18 Oct 2021 10:10:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mcTL0-0004GE-Pk for bug-gnu-emacs@gnu.org; Mon, 18 Oct 2021 10:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 Oct 2021 14:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50902 X-GNU-PR-Package: emacs Original-Received: via spool by 50902-submit@debbugs.gnu.org id=B50902.163456620216373 (code B ref 50902); Mon, 18 Oct 2021 14:10:02 +0000 Original-Received: (at 50902) by debbugs.gnu.org; 18 Oct 2021 14:10:02 +0000 Original-Received: from localhost ([127.0.0.1]:48188 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mcTKz-0004Fv-GR for submit@debbugs.gnu.org; Mon, 18 Oct 2021 10:10:01 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:53151) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mcTKw-0004Fg-Eh for 50902@debbugs.gnu.org; Mon, 18 Oct 2021 10:09:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1634566188; bh=c1reppotbLfMuWa+pqgUvkOaYiikkX3u5yZC5Bajn5k=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=hvugpsOKhkAxwLAEaxxuNBXDg6w+i7sSgLmw3jke5okWGHBIYQ6aq9d8wpqR+fAX/ 5P5XedDaJ4foM/lIfNLyUVAGwYg/orWjD6X+Mh0KwO8664UzZyTQ7tGLRAm7igsljR s3+FjR0V1UKgrprlDMMJvxuhMs98Uyacz3T7yvx8= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([212.91.242.175]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MBDnC-1mQyKg1sxK-00CgiL; Mon, 18 Oct 2021 16:09:48 +0200 In-Reply-To: <87ily3zey9.fsf@gmx.de> (Michael Albinus's message of "Mon, 11 Oct 2021 18:47:10 +0200") X-Provags-ID: V03:K1:JV+pfiw9inF9ORUpXfo435eM9CWWD0R+9S0tlF3k/nWL/RtTGxe 0HQdo56FiqNNLY92gRCja32UsnRiwHFDvSN2SDDMr0vj1IJ9VT8zi9CejjCTPQppITj/3qn D55ZfHocTHvvQHOvbQtYBi+x+hdM7jtXsU+ygnx06hjxNQxdUgOqYhRDOgqqxRuhnJDXpRX kkGz/yKbzE3U2wArqoMXw== X-UI-Out-Filterresults: notjunk:1;V03:K0:tgI6zwLVBDY=:9uz4BpFM1qHlhFdt4CSIwp rk3RmaWH82avMQ4zwTrLMjD2qxIV5v9VQ8tmxt8zynxYfoKroZaTQdpWHddNJ0Y4gUbjd9BWy RZxIZo3H2j4SIk6aoP4t/a4u1in8jC/iiC06/h9UYN3lvKBWR/40jwu57ghthW+tLzfluZbV8 IyoPZbgWW1eA0SJH8jgNo2E6eEEeWioi0mbLKxeopv0iJjID9J3/0+FCEAv4a3qKmMdcX+DOD 8YsFTFKWFh0Vszlvk3m1g5nLMnfEmSM8gt56TBBxp5M9bHaOKnnyOjkjPf7vrLPdrz5Pe4pm0 xUo9ZUE+58OIuMmGrDeLFQwaKCpuCiC0ebwoy22o/d47JKo9BZye0jzG8JtV4SxDaZ0pe+j7x xxU4Vk0EHkHxSKxjzXs4aG0vkBwS/bIXO3TxxAKMAQnbz27fRXkvXhoj6qsV5y0y5R7DOJwsI kTYB8hTeJ/iQi5LELDrJzSRPxpZXkTBywLQTyfge20qSAQNS8unNfircwEb+iRyNPpLf2PSXg ic04TKkk4TUMPp66Kj8HrocikY5IAc07vpLOVFPql0Q4idZr1Gcc1ZwAwOwaW0RrU3xlS8CSO K+mE/VYSIuwvCT5jkcOB2Bu5Y8wiPF8BQasHs4dIDjT50eiupcIGZtFUCuThWzxfA6nxOjb8b V7NQzy/oK0xTwQWox1JeNu7TzltJJcujszZJVjddBDGZQI6pLUFvGoREkVluuW3yqhZXwvlWF vzNOkByM0q6rGksgSCZBUidd0ekYaDcmCc85nsCAL7zrVmd9L3ucjzFg3MRp432tigy3F/1h 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" Xref: news.gmane.io gmane.emacs.bugs:217491 Archived-At: Michael Albinus writes: Hi Philipp, >> Would it be possible to capture a core dump or similar while the test >> is hanging and analyze it with a debugger? > > I'll try it. Finally, I've managed to create two core files, and to extract them from the container the Emacs test is running on emba.gnu.org. In order to create them, I've instrumented the Emacs call in test/Makefile.in with "timeout -s ABRT ${EMACS_TEST_TIMEOUT}", see commit ffff168d5f in master. The container on emba the tests are running is based on debian:stretch. /proc/sys/kernel/core_pattern in the container contains just the entry "core", meaning the core file is written into the current directory. The first core is written into Emacs' test directory: =2D-8<---------------cut here---------------start------------->8--- # pwd /checkout/src # gdb --core=3D../test/core GNU gdb (Debian 7.12-6) 7.12.0.20161007-git Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". BFD: Warning: /checkout/src/../test/core is truncated: expected core file = size >=3D 37511168, found: 33046528. [New LWP 18942] Failed to read a valid object file image from memory. Core was generated by `../src/emacs --module-assertions --no-init-file --n= o-site-file --no-site-lisp -'. Program terminated with signal SIGABRT, Aborted. #0 0x00007ffff6fa8fbf in ?? () warning: File "/checkout/src/.gdbinit" auto-loading has been declined by y= our `auto-load safe-path' set to "$debugdir:$datadir/auto-load". To enable execution of this file add add-auto-load-safe-path /checkout/src/.gdbinit line to your configuration file "/root/.gdbinit". To completely disable this security protection add set auto-load safe-path / line to your configuration file "/root/.gdbinit". For more information about this security protection see the "Auto-loading safe path" section in the GDB manual. E.g., run from the sh= ell: info "(gdb)Auto-loading safe path" (gdb) source .gdbinit .gdbinit:19: Error in sourced command file: No symbol table is loaded. Use the "file" command. (gdb) bt No stack. (gdb) =2D-8<---------------cut here---------------end--------------->8--- This is obviously the Emacs call to test. The other core file is located at /tmp/emacs-module-test2fEwyL, I guess this directory has been created by your test package. "gdb --core ..." tel= ls us =2D-8<---------------cut here---------------start------------->8--- # gdb --core=3D/tmp/emacs-module-test2fEwyL/core GNU gdb (Debian 7.12-6) 7.12.0.20161007-git Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". BFD: Warning: /tmp/emacs-module-test2fEwyL/core is truncated: expected cor= e file size >=3D 16920576, found: 12492800. [New LWP 18947] Failed to read a valid object file image from memory. Core was generated by `/checkout/src/emacs -batch -Q -module-assertions -e= val (setq w32-disable-abort-'. Program terminated with signal SIGABRT, Aborted. #0 0x00007ffff6fa8fbf in ?? () warning: File "/checkout/src/.gdbinit" auto-loading has been declined by y= our `auto-load safe-path' set to "$debugdir:$datadir/auto-load". To enable execution of this file add add-auto-load-safe-path /checkout/src/.gdbinit line to your configuration file "/root/.gdbinit". To completely disable this security protection add set auto-load safe-path / line to your configuration file "/root/.gdbinit". For more information about this security protection see the "Auto-loading safe path" section in the GDB manual. E.g., run from the sh= ell: info "(gdb)Auto-loading safe path" (gdb) source .gdbinit .gdbinit:19: Error in sourced command file: No symbol table is loaded. Use the "file" command. (gdb) bt #0 0x00007ffff6fa8fbf in ?? () Backtrace stopped: Cannot access memory at address 0x7fffffffcf18 (gdb) =2D-8<---------------cut here---------------end--------------->8--- Both outputs don't look too informative. What else can I do? Do you want to get the core files? Note, that I'm not fluent with gdb; precise instructions are needed. Best regards, Michael.