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.devel Subject: Re: server.el test failures Date: Tue, 28 Feb 2023 14:13:27 +0200 Message-ID: <83ilfmgf88.fsf@gnu.org> References: <877h40vb8h.fsf@mail.jurta.org> <4EA4D31B.4050604@cs.ucla.edu> <4EA5E08D.8070903@cs.ucla.edu> <861qmvcglp.fsf@aarsen.me> <98e880a0-d076-cfd9-b39d-50c84fa8975a@gmail.com> <811d85e0-4032-68df-bc0c-1073ff5d1b96@cs.ucla.edu> <5a38c18d-263c-223b-7335-8395a10eb494@gmail.com> <00864fe6-b63a-685f-2d20-4e1fd5a5573e@cs.ucla.edu> <3e7c26d6-215a-6c29-5304-0e32f42b2174@gmail.com> <87zg8z5afj.fsf@gmail.com> <83ttz7giib.fsf@gnu.org> <87r0ub561t.fsf@gmail.com> <83sfergdgf.fsf@gnu.org> <87h6v6qlq7.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17990"; mail-complaints-to="usenet@ciao.gmane.io" Cc: jporterbugs@gmail.com, eggert@cs.ucla.edu, emacs-devel@gnu.org To: Robert Pluim Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Feb 28 13:14:12 2023 Return-path: Envelope-to: ged-emacs-devel@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 1pWys0-0004VV-0E for ged-emacs-devel@m.gmane-mx.org; Tue, 28 Feb 2023 13:14:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pWyrB-0005A0-R7; Tue, 28 Feb 2023 07:13:21 -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 1pWyr9-00059f-50 for emacs-devel@gnu.org; Tue, 28 Feb 2023 07:13:20 -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 1pWyr6-00060h-IV; Tue, 28 Feb 2023 07:13:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=D2CrHT3u5AYTHd5SevsT9P40Vj9V+kLPv3LWXMfxtQI=; b=ZoR/psGn2K82 9nbe4RQ4OMMv/LkKG6uK8h3xFdax7nqckBN2giGrxe93rrSZd4mYsy4Lidmxyny6TFcVw4kaRibMB eFEpggYnciPGvHnoVj/QN76w5K0CW20uOlMJ98Dn09sJ87zcAYRHH91eh+paOQ6EfdkHA/sKqQbCf 7K9OMzY9fY5yrztgMV/cCaaXPb5JSG4omVPR9ksFLsJoWW2nxw3GEeqQNOW/CeNrrgtgeM3db3uz4 qgasYSBPaENottE3dVx4FaQUf/wcLioilo/4Q/vbJkydy58gkjzX2RGfPR7fbF2nAPYVMVlDMPky7 /0+Y49bZoVLErbOZrZtfew==; 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 1pWyr5-0004SL-W2; Tue, 28 Feb 2023 07:13:16 -0500 In-Reply-To: <87h6v6qlq7.fsf@gmail.com> (message from Robert Pluim on Tue, 28 Feb 2023 08:42:56 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:303850 Archived-At: > From: Robert Pluim > Cc: jporterbugs@gmail.com, eggert@cs.ucla.edu, emacs-devel@gnu.org > Date: Tue, 28 Feb 2023 08:42:56 +0100 > > Eli> (gdb) handle SIGIO stop print > > Eli> and then run the test in batch mode again. > > That gets me the same backtrace: > > (gdb) set args --module-assertions --no-init-file --no-site-file --no-site-lisp -L ":." \ > -l ert -l lisp/server-tests.el \ > --batch --eval '(ert-run-tests-batch-and-exit (quote (not (or (tag :unstable) (tag :nativecomp)))))' > (gdb) handle SIGIO stop print > Signal Stop Print Pass to program Description > SIGIO Yes Yes Yes I/O possible > (gdb) r > Starting program: /home/rpluim/repos/emacs/src/emacs --module-assertions --no-init-file --no-site-file --no-site-lisp -L ":." \ > -l ert -l lisp/server-tests.el \ > --batch --eval '(ert-run-tests-batch-and-exit (quote (not (or (tag :unstable) (tag :nativecomp)))))' > [Thread debugging using libthread_db enabled] > Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". > [New Thread 0x7ffff129d700 (LWP 26168)] > Running 1 tests (2023-02-28 08:39:54+0100, selector `(not (or (tag :unstable) (tag :nativecomp)))') > [Detaching after vfork from child process 26169] > [New Thread 0x7fffebfff700 (LWP 26170)] > [New Thread 0x7fffeb66e700 (LWP 26171)] > > Thread 1 "emacs" received signal SIGIO, I/O possible. > 0x00007ffff530fd2f in __GI___poll (fds=0x7fffffffa698, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29 > 29 ../sysdeps/unix/sysv/linux/poll.c: No such file or directory. > (gdb) bt > #0 0x00007ffff530fd2f in __GI___poll (fds=0x7fffffffa698, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29 > #1 0x00007ffff6d92d02 in () at /lib/x86_64-linux-gnu/libxcb.so.1 > #2 0x00007ffff6d94d7f in () at /lib/x86_64-linux-gnu/libxcb.so.1 > #3 0x00007ffff6d94e91 in xcb_wait_for_reply () at /lib/x86_64-linux-gnu/libxcb.so.1 > #4 0x00005555556a629b in x_term_init > (display_name=display_name@entry=XIL(0x5555560152d4), xrm_option=xrm_option@entry=0x0, resource_name=0x555556010260 "emacs") at xterm.c:30964 > #5 0x00005555556a96c7 in Fx_open_connection (display=XIL(0x5555560152d4), xrm_string=, must_succeed=XIL(0)) at xfns.c:7548 Why does make-frame create a GUI X frame in a batch session? (I've seen that in your previous backtrace, but thought it was because you ran that test in an interactive session.) Is that because emacsclient and/or server insist on that, or because some snafu inside make-frame, or something else? Can you figure that out? I looked at the code, but didn't see anything obvious. I don't think we should create GUI frames in batch, since the SIGIO handler is not set, and we generally aren't prepared for receiving it. We should create a TTY frame instead, or maybe no frame at all. Thanks.