From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.bugs Subject: bug#50902: 28.0.50; emacs-module-tests time out Date: Sun, 31 Oct 2021 19:08:55 +0100 Message-ID: References: <87a6jv6vqd.fsf@gmx.de> <87tuhr3fnm.fsf@gmx.de> <87ily3zey9.fsf@gmx.de> <87lf2qjufo.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32983"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Philipp Stephani , 50902@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 31 19:10:12 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 1mhFHY-0008PR-09 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 31 Oct 2021 19:10:12 +0100 Original-Received: from localhost ([::1]:49098 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mhFHW-000765-O8 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 31 Oct 2021 14:10:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60066) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhFHO-00072a-UM for bug-gnu-emacs@gnu.org; Sun, 31 Oct 2021 14:10:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49749) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mhFHO-0006yP-LW for bug-gnu-emacs@gnu.org; Sun, 31 Oct 2021 14:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mhFHO-00083r-CM for bug-gnu-emacs@gnu.org; Sun, 31 Oct 2021 14:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philipp Stephani Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 31 Oct 2021 18: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.163570375430923 (code B ref 50902); Sun, 31 Oct 2021 18:10:02 +0000 Original-Received: (at 50902) by debbugs.gnu.org; 31 Oct 2021 18:09:14 +0000 Original-Received: from localhost ([127.0.0.1]:33062 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mhFGb-00082h-Su for submit@debbugs.gnu.org; Sun, 31 Oct 2021 14:09:14 -0400 Original-Received: from mail-oo1-f54.google.com ([209.85.161.54]:33603) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mhFGZ-00082U-PZ for 50902@debbugs.gnu.org; Sun, 31 Oct 2021 14:09:12 -0400 Original-Received: by mail-oo1-f54.google.com with SMTP id q39-20020a4a962a000000b002b8bb100791so5508800ooi.0 for <50902@debbugs.gnu.org>; Sun, 31 Oct 2021 11:09:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KSoJsBcIR1nI4lI0dZ9N9AAc3tRo5d5/hu+mblQOhzM=; b=ILQ4YwI1L0KIJMrlk4xXNGOGZWEIY+3TETzNo/facElqFhGFcRo5OtL+7e0aFOxm5Q clkoMXFOChA8Rvj2WDRLykeOwQOCdKBY1TrnRtIW1cD6omsS9X5u/Bn1BnKa1PQBQs24 Fnr4KeU4c0SGZWmFzUfaD0qGNnp+4xIdcDRbI+RC/FcgXF1WczhGcfXTWjD3FlG1fYb7 s3wy9JdIj6WheGedMiNPEZbgp8vFoxzcHHE2dqzmSfbNyHUoE53xsG6GAQ+OuyRWtk3f icdynWojk3RdO6ZKeeZREJINduBqIfvkn5qQOTu4GPYRDlCcb7YOar11Z/5l/lsB/TXQ 9dBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KSoJsBcIR1nI4lI0dZ9N9AAc3tRo5d5/hu+mblQOhzM=; b=NtXRBN2bmtlZeBz3spk9Y6jw95aPx9fPRTZ1kVr2gXEA5BAOerVP0wochheOMGviVA hnpKSeR9xs+jSLJI3EnMV5ep1nbZEs3dW9tZFJIf17M2oAL45jBaRe0Uwpc5AsvR63cr p2fR0CQNIoFN6JE2HCO76+QoDtZle67zKHrLl59onN8kcEqSmMkh+upvVx6a0DBJDXR5 eHkTXw0bm01oDfk638SiAiVnf49053mXYeCQSCWDLjvN9MtlWR6NN+SZOKxL7cOMn/KD ZuuM3xHKzyZdxyh2T/uqrtK/E5/yj9wCkb815fgEfFGmo6J6Qop+6jqj0zuJpuh1zEpx RtHA== X-Gm-Message-State: AOAM533aiZ7sKi2RpQaI64Woj2Bb6sx0X2JyMNrw+eHjO4frl8vD3bKt hPxZqd9CbN2JvjB26TODyNgVz5bkJmwJrawcjMc= X-Google-Smtp-Source: ABdhPJzdjxjfVn5yfZkJZxj28GAiyravNklj/YCIImhIPPsGQySG/mocxmz+NheDY+Lt+Q/qRFojya9A1iXL2DOwX60= X-Received: by 2002:a4a:8343:: with SMTP id q3mr16441584oog.76.1635703746095; Sun, 31 Oct 2021 11:09:06 -0700 (PDT) In-Reply-To: <87lf2qjufo.fsf@gmx.de> 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:218711 Archived-At: Am Mo., 18. Okt. 2021 um 16:09 Uhr schrieb Michael Albinus : > > 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: > > --8<---------------cut here---------------start------------->8--- > # pwd > /checkout/src > # gdb --core=../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 >= 37511168, found: 33046528. This looks weird. Is maybe the disk space in the container too small to write a full coredump? > [New LWP 18942] > Failed to read a valid object file image from memory. > Core was generated by `../src/emacs --module-assertions --no-init-file --no-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 your `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 shell: > 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) > --8<---------------cut here---------------end--------------->8--- > > This is obviously the Emacs call to test. But why is there no stack? Is that maybe related to the "truncated core file" message before? > > The other core file is located at /tmp/emacs-module-test2fEwyL, I guess > this directory has been created by your test package. "gdb --core ..." tells us > > --8<---------------cut here---------------start------------->8--- > # gdb --core=/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 core file size >= 16920576, found: 12492800. Same problem here, it seems, though it's interesting that the expected and found file sizes are so different. > [New LWP 18947] > Failed to read a valid object file image from memory. This also looks like a problem. > Core was generated by `/checkout/src/emacs -batch -Q -module-assertions -eval (setq w32-disable-abort-'. > Program terminated with signal SIGABRT, Aborted. > #0 0x00007ffff6fa8fbf in ?? () > warning: File "/checkout/src/.gdbinit" auto-loading has been declined by your `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 shell: > 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) > --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. I don't really know much about this situation either, sorry. I wouldn't expect that the core files would be useful for me, because they need to match the program file exactly. Is there a way to run these tests locally (i.e. not on EMBA)?