From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: server.el test failures Date: Mon, 27 Feb 2023 19:14:54 +0100 Message-ID: <87r0ub561t.fsf@gmail.com> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1012"; mail-complaints-to="usenet@ciao.gmane.io" Cc: jporterbugs@gmail.com, eggert@cs.ucla.edu, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Feb 27 19:15:40 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 1pWi2F-000AbJ-0u for ged-emacs-devel@m.gmane-mx.org; Mon, 27 Feb 2023 19:15:39 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pWi1e-0006uv-UN; Mon, 27 Feb 2023 13:15:02 -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 1pWi1d-0006uV-OY for emacs-devel@gnu.org; Mon, 27 Feb 2023 13:15:01 -0500 Original-Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pWi1a-0000XM-Tk; Mon, 27 Feb 2023 13:15:01 -0500 Original-Received: by mail-wm1-x32f.google.com with SMTP id ay29-20020a05600c1e1d00b003e9f4c2b623so7842307wmb.3; Mon, 27 Feb 2023 10:14:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=JKLYgXHQjpv2A6LR5uV0ClRnJaXJSMPwlIBXjjEuFQU=; b=Wuzqr4BxYma91Wo+2jcuQb+1GLmcwKkSGIJwFKJNNhdzAPnxlgc9nbmh44/AVkZWL9 JyqVpVsx0sFJR7RJZJy5NTe7K/0b2q5VAO7ZB77fnw6aXr/piH7aPzIur9eXniFuPMUp LQ+vpIMUcVg2jQQUCS3iG4FOjVr7HD0K2l2OD7G7pLsy+jRT2UUCa9U09cwhg1WIcGi5 PksGDHdRu06SxK5ehufx/2fPSx8JQxMuE1SkvQRcDlgR0dqJhsu5EdN5zRVwslOIAdEr QqCWqshQ5jEiJvfWSuHKs3IaAcnLlGyrOf0d4SfRzRogto4501YdNxWYcwJT6/uArqcS bKiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JKLYgXHQjpv2A6LR5uV0ClRnJaXJSMPwlIBXjjEuFQU=; b=5TJz3bq9GozRuPDFBadiyQnXlSaNfgYm2ufNacQWZnpoIBGRrZnuB0hqUSNXx5wwHS o+ifBbZottIeivd3nYat4ZvyC36JUElJh0Tm5hxN1idmsIr3hgDA7+bMPTqYgTxIEYC1 ffzEkaHQBOSRJpy2CtlTzrHoylSV8e0tn5ueQAlKsl+efgYvyYri2+Yz3y5uoujE3u6X 12RALDPozI1ij9Ic8Ytc3jVuvkiAzih3xhEC4ztlgynlG7Zu0TznH7VxiDALWQjxx4tm F4g/0+cfHfhWTQxVjYyvuWNRCUuD+gM81ToK4NwV+yxg+9xHBG4JHapAofMFJyJqcqF0 OSNg== X-Gm-Message-State: AO0yUKWvAh8CBVEXqZjVNRIeNcT7esXwH3u1xEjA7VLWedqLvB94sQV1 Q9+9s5gwRmx3IqFNs3iDLdPRb1k/Ps0= X-Google-Smtp-Source: AK7set//oeZpSyev4N3e3+C2Gbg9hCH2Dm8M0vndRxJDldSqMfYDzHywoIzSAIfUxORliV3aLaBdPg== X-Received: by 2002:a05:600c:4da4:b0:3ea:e554:7808 with SMTP id v36-20020a05600c4da400b003eae5547808mr46598wmp.19.1677521696137; Mon, 27 Feb 2023 10:14:56 -0800 (PST) Original-Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id p15-20020a05600c1d8f00b003e20970175dsm13896429wms.32.2023.02.27.10.14.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Feb 2023 10:14:55 -0800 (PST) In-Reply-To: <83ttz7giib.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 27 Feb 2023 18:50:20 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=rpluim@gmail.com; helo=mail-wm1-x32f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:303838 Archived-At: >>>>> On Mon, 27 Feb 2023 18:50:20 +0200, Eli Zaretskii said: >> From: Robert Pluim >> Cc: Paul Eggert , emacs-devel@gnu.org >> Date: Mon, 27 Feb 2023 17:40:16 +0100 >>=20 >> I can make server-tests fail 100% on master and emacs-29 on Debian by >> running the tests from inside emacs using vterm. I commented out all >> the tests except server-tests/server-force-stop/keeps-frames >>=20 >> make -C test server-tests >> make: Entering directory '/home/rpluim/repos/emacs/test' >> make[1]: Entering directory '/home/rpluim/repos/emacs/test' >> ELC lisp/server-tests.elc >> GEN lisp/server-tests.log >> Running 1 tests (2023-02-27 17:35:01+0100, selector `(not (or (tag >> :unstable) (tag :nativecomp)))') >> make[1]: *** [Makefile:174: lisp/server-tests.log] I/O possible >> make[1]: Leaving directory '/home/rpluim/repos/emacs/test' >> make: *** [Makefile:240: lisp/server-tests] Error 2 >> make: Leaving directory '/home/rpluim/repos/emacs/test' >> rltb:~/repos/emacs (master *)>=20 Eli> It's probably bogus, or the test is unstable, but just so we don't Eli> give up easily: can you show a C and Lisp backtrace from the SIGIO Eli> signal handler when it gets the signal in this case? I=CA=BCd love to, but our signal handler never gets called: (gdb) b deliver_process_signal Breakpoint 3 at 0x19d47e: deliver_process_signal. (2 locations) (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 :unsta= ble) ( tag :nativecomp)))))'=20 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7ffff129d700 (LWP 783192)] Running 1 tests (2023-02-27 18:45:41+0100, selector `(not (or (tag :unstabl= e) (tag :nativecomp)))') [Detaching after vfork from child process 783193] [New Thread 0x7ffff0992700 (LWP 783194)] [New Thread 0x7fffeba46700 (LWP 783195)] [Thread 0x7fffeba46700 (LWP 783195) exited] [Thread 0x7ffff129d700 (LWP 783192) exited] [Thread 0x7ffff22f8040 (LWP 783187) exited] Program terminated with signal SIGIO, I/O possible. The program no longer exists. This is because we only install a SIGIO handler for interactive sessions, so when I change that I get Thread 1 "emacs" hit Breakpoint 3, deliver_process_signal (sig=3D29,=20 handler=3D0x5555556d1440 ) at sysdep.c:1= 726 1726 int old_errno =3D errno; (gdb) bt #0 deliver_process_signal (sig=3D29, handler=3D0x5555556d1440 ) at sysdep.c:1726 #1 0x00007ffff5718140 in () at /lib/x86_64-linux-g= nu/libpthread.so.0 #2 0x00007ffff530fd2f in __GI___poll (fds=3D0x7fffffffa8b8, nfds=3D1, time= out=3D-1) at ../sysdeps/unix/sysv/linux/poll.c:29 #3 0x00007ffff6d92d02 in () at /lib/x86_64-linux-gnu/libxcb.so.1 #4 0x00007ffff6d94d7f in () at /lib/x86_64-linux-gnu/libxcb.so.1 #5 0x00007ffff6d94e91 in xcb_wait_for_reply () at /lib/x86_64-linux-gnu/li= bxcb.so.1 #6 0x00005555556a629b in x_term_init (display_name=3Ddisplay_name@entry=3DXIL(0x555556013664), xrm_option=3D= xrm_option@entry=3D0x0, resource_name=3D0x55555600f870 "emacs") at xterm.c:= 30964 #7 0x00005555556a96c7 in Fx_open_connection (display=3DXIL(0x555556013664), xrm_string=3D, must_succ= eed=3DXIL(0)) at xfns.c:7548 #8 0x00005555557a2f15 in exec_byte_code (fun=3D, args_template=3D, nargs=3D, args=3D) at bytecode.c:809 #9 0x000055555575d633 in Ffuncall (nargs=3D2, args=3D0x7ffff12b27c8) at ev= al.c:2997 #10 0x000055555575daf2 in Fapply (nargs=3D2, args=3D0x7ffff12b27c8) at eval= .c:2625 #11 0x00005555557a2f15 in exec_byte_code (fun=3D, args_template=3D, nargs=3D, args=3D) at bytecode.c:809 #12 0x000055555575d633 in Ffuncall (nargs=3D3, args=3D0x7fffffffb5f0) at ev= al.c:2997 #13 0x000055555575d850 in Fapply (nargs=3Dnargs@entry=3D2, args=3Dargs@entr= y=3D0x7fffffffb680) at eval.c:2668 #14 0x000055555575dbbc in apply1 (fn=3D, arg=3D) at eval.c:2884 #15 0x000055555575be04 in internal_condition_case_1 (bfun=3Dbfun@entry=3D0x5555557a5bb0 , arg=3DX= IL(0x7ffff0a64f33), handlers=3Dhandlers@entry=3DXIL(0), hfun=3Dhfun@entry= =3D0x5555557a5af0 ) at eval.c:1498 #16 0x00005555557a86bb in read_and_dispose_of_process_output (coding=3D0x555555ff6090, nbytes=3D3395, chars=3D0x7fffffffb6d0 "-env P= WD=3D/home/rpluim/repos/emacs/test -env OLDPWD=3D/home/rpluim/repos/emacs -= env DBUS_SESSION_BUS_ADDRESS=3Dunix:path=3D/run/user/1000/bus -env GDMSESSI= ON=3Dgnome-xorg -env HISTIGNORE=3D&&:[&_]*:exit:ls:bg:fg"..., p=3D0xfffffff= ffffffffb) at process.c:6307 #17 read_process_output (proc=3Dproc@entry=3DXIL(0x555556000065), channel= =3Dchannel@entry=3D10) at process.c:6217 #18 0x00005555557afe11 in wait_reading_process_output (time_limit=3Dtime_limit@entry=3D0, nsecs=3Dnsecs@entry=3D100000000, re= ad_kbd=3Dread_kbd@entry=3D0, do_display=3Ddo_display@entry=3Dfalse, wait_fo= r_cell=3Dwait_for_cell@entry=3DXIL(0), wait_proc=3Dwait_proc@entry=3D0x0, j= ust_wait_proc=3D) at process.c:5901 #19 0x00005555555aae9b in Fsleep_for (seconds=3D, millisecon= ds=3D) at lisp.h:1164 #20 0x00005555557a2f15 in exec_byte_code (fun=3D, args_template=3D, nargs=3D, args=3D) at bytecode.c:809 #21 0x0000555555762797 in apply_lambda (fun=3DXIL(0x7ffff17d8845), args=3D<= optimized out>, count=3D...) at eval.c:3105 #22 0x0000555555760e5d in eval_sub (form=3D) at eval.c:2590 #23 0x0000555555761b8d in Fprogn (body=3DXIL(0)) at eval.c:436 #24 prog_ignore (body=3DXIL(0x7ffff0a80b63)) at eval.c:447 #25 Fwhile (args=3D) at eval.c:1047 --Type for more, q to quit, c to continue without paging--c #26 0x000055555576117a in eval_sub (form=3D) at lisp.h:765 #27 0x0000555555762d15 in Fprogn (body=3DXIL(0)) at eval.c:436 #28 Flet (args=3DXIL(0x7ffff0a80bc3)) at eval.c:1026 #29 0x000055555576117a in eval_sub (form=3D) at lisp.h:765 #30 0x0000555555762d15 in Fprogn (body=3DXIL(0x7ffff0a820a3)) at eval.c:436 #31 Flet (args=3DXIL(0x7ffff0a83ca3)) at eval.c:1026 #32 0x000055555576117a in eval_sub (form=3D) at lisp.h:765 #33 0x0000555555762d15 in Fprogn (body=3DXIL(0)) at eval.c:436 #34 Flet (args=3DXIL(0x7ffff0a83cd3)) at eval.c:1026 #35 0x000055555576117a in eval_sub (form=3D) at lisp.h:765 #36 0x000055555576146d in Fprogn (body=3DXIL(0x7ffff0a851b3)) at eval.c:436 #37 0x000055555576117a in eval_sub (form=3D) at lisp.h:765 #38 0x0000555555763287 in Funwind_protect (args=3DXIL(0x7ffff0a851d3)) at l= isp.h:765 #39 0x000055555576117a in eval_sub (form=3D) at lisp.h:765 #40 0x0000555555762d15 in Fprogn (body=3DXIL(0)) at eval.c:436 #41 Flet (args=3DXIL(0x7ffff0a87b93)) at eval.c:1026 #42 0x000055555576117a in eval_sub (form=3D) at lisp.h:765 #43 0x00005555557630f5 in Fprogn (body=3DXIL(0)) at eval.c:436 #44 FletX (args=3DXIL(0x7ffff0a87bd3)) at eval.c:958 #45 0x000055555576117a in eval_sub (form=3D) at lisp.h:765 #46 0x0000555555763287 in Funwind_protect (args=3DXIL(0x7ffff0a87c03)) at l= isp.h:765 #47 0x000055555576117a in eval_sub (form=3D) at lisp.h:765 #48 0x00005555557630f5 in Fprogn (body=3DXIL(0x7ffff0a780d3)) at eval.c:436 #49 FletX (args=3DXIL(0x7ffff0a780e3)) at eval.c:958 #50 0x000055555576117a in eval_sub (form=3D) at lisp.h:765 #51 0x000055555576203d in Fprogn (body=3DXIL(0)) at eval.c:436 #52 funcall_lambda (fun=3DXIL(0x7ffff0a75c53), nargs=3D0, arg_vector=3D0x7f= fff12b2468) at eval.c:3235 #53 0x00005555557a30e1 in exec_byte_code (fun=3D, args_templ= ate=3D, nargs=3D, args=3D) at = bytecode.c:811 #54 0x0000555555762797 in apply_lambda (fun=3DXIL(0x555555f7f0a5), args=3D<= optimized out>, count=3D...) at eval.c:3105 #55 0x0000555555760e5d in eval_sub (form=3D) at eval.c:2590 #56 0x0000555555763830 in Feval (form=3DXIL(0x7ffff0a75dd3), lexical=3D) at eval.c:2363 #57 0x00005555557a2f15 in exec_byte_code (fun=3D, args_templ= ate=3D, nargs=3D, args=3D) at = bytecode.c:809 #58 0x0000555555762797 in apply_lambda (fun=3DXIL(0x7ffff1ad0ff5), args=3D<= optimized out>, count=3D...) at eval.c:3105 #59 0x0000555555760e5d in eval_sub (form=3D) at eval.c:2590 #60 0x0000555555763830 in Feval (form=3DXIL(0x7ffff1f07dbb), lexical=3D) at eval.c:2363 #61 0x000055555575bd77 in internal_condition_case (bfun=3Dbfun@entry=3D0x55= 55556d1590 , handlers=3Dhandlers@entry=3DXIL(0x90), hfun=3Dhfu= n@entry=3D0x5555556d88e0 ) at eval.c:1474 #62 0x00005555556d1eb6 in top_level_1 (ignore=3Dignore@entry=3DXIL(0)) at k= eyboard.c:1141 #63 0x000055555575bcd1 in internal_catch (tag=3Dtag@entry=3DXIL(0x103e0), f= unc=3Dfunc@entry=3D0x5555556d1e90 , arg=3Darg@entry=3DXIL(0)) = at eval.c:1197 #64 0x00005555556d1508 in command_loop () at lisp.h:1164 #65 0x00005555556d8493 in recursive_edit_1 () at keyboard.c:711 #66 0x00005555556d880c in Frecursive_edit () at keyboard.c:794 #67 0x00005555555a9e43 in main (argc=3D, argv=3D) at emacs.c:2530 Lisp Backtrace: "x-open-connection" (0xf12b2850) 0xf1ad3f38 PVEC_COMPILED "apply" (0xf12b27c8) "window-system-initialization" (0xf12b2768) "make-frame" (0xf12b26e8) "server--create-frame" (0xf12b2670) "server-create-window-system-frame" (0xf12b25b8) "server-process-filter" (0xffffb5f8) "sleep-for" (0xf12b24d8) "sit-for" (0xffffccc0) "while" (0xffffce40) "let" (0xffffcf70) "let" (0xffffd0a0) "let" (0xffffd1e0) "progn" (0xffffd2b0) "unwind-protect" (0xffffd380) "let" (0xffffd4b0) "let*" (0xffffd5e0) "unwind-protect" (0xffffd6b0) "let*" (0xffffd7e0) 0xf0a75c60 Lisp type 3 "ert--run-test-internal" (0xf12b23f8) "ert-run-test" (0xf12b2388) "ert-run-or-rerun-test" (0xf12b2318) "ert-run-tests" (0xf12b2290) "ert-run-tests-batch" (0xf12b2238) "ert-run-tests-batch-and-exit" (0xffffd980) "eval" (0xf12b21c0) "command-line-1" (0xf12b20b8) "command-line" (0xf12b2040) "normal-top-level" (0xffffdb50) If I run that server test with the SIGIO handler installed it passes Robert --=20