From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#55672: 29.0.50; Emacs crashes when calling start-process-shell-command xdg-open with process-connection-type set to nil Date: Fri, 27 May 2022 17:48:14 +0800 Message-ID: <87ilprs3vl.fsf@localhost> References: <87a6b3wkzs.fsf@localhost> <87ilprihg0.fsf@yahoo.com> <87h75bh0zs.fsf@localhost> <877d67ieri.fsf@yahoo.com> <87k0a7l5yt.fsf@localhost> <87o7zjgxio.fsf@yahoo.com> <874k1b2v6r.fsf@localhost> <87k0a7gw3w.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7186"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55672@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 27 11:48:52 2022 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 1nuWaR-0001ju-EH for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 27 May 2022 11:48:51 +0200 Original-Received: from localhost ([::1]:34668 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nuWaQ-0000K1-8R for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 27 May 2022 05:48:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47832) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuWZf-0000Dt-Fb for bug-gnu-emacs@gnu.org; Fri, 27 May 2022 05:48:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38848) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nuWZe-0006nc-0S for bug-gnu-emacs@gnu.org; Fri, 27 May 2022 05:48:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nuWZd-0004k7-U5 for bug-gnu-emacs@gnu.org; Fri, 27 May 2022 05:48:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 27 May 2022 09:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55672 X-GNU-PR-Package: emacs Original-Received: via spool by 55672-submit@debbugs.gnu.org id=B55672.165364486418127 (code B ref 55672); Fri, 27 May 2022 09:48:01 +0000 Original-Received: (at 55672) by debbugs.gnu.org; 27 May 2022 09:47:44 +0000 Original-Received: from localhost ([127.0.0.1]:60978 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuWZL-0004iE-VU for submit@debbugs.gnu.org; Fri, 27 May 2022 05:47:44 -0400 Original-Received: from mail-pg1-f178.google.com ([209.85.215.178]:46967) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuWZK-0004hR-NN for 55672@debbugs.gnu.org; Fri, 27 May 2022 05:47:43 -0400 Original-Received: by mail-pg1-f178.google.com with SMTP id j21so3481267pga.13 for <55672@debbugs.gnu.org>; Fri, 27 May 2022 02:47:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=w6KcnFurJ4rINvD+vNmGO21nsg/0keg+pLDc2kaWmaU=; b=TaX2b7Hela1/GJFZi3sVanJclnT5soYgovh9oS5KMhNszQG2lEYwhTdaYuPuBMjRc+ sQDiZctZCCEMZ0NSEvRxvz2b0dqAvxz2OQMmz7g09iLIAr1mIuJkID7joPkpRbTmeH6j 3CSsU+pBsNqplkhHfLGdcRBtFHswPxyrXNzT1m2IODwRc1+xaxiPj+vp+pnEevUDsNlb RVkYxsCuXWkILRXXw9I4cC+uDFMGELG53n4DraKQy4qzvU7gXuXHecUf9iTc+yHB13zH 2prD4R+8vy7UJPhLZrsuEUPKrGbjviIvlCLLL353nSU/T2AO9f+QXzIWey3IccuOcxpb qdpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=w6KcnFurJ4rINvD+vNmGO21nsg/0keg+pLDc2kaWmaU=; b=ZtOo7gDTVbIfwFaU4QJiIZQSTDwcvoxQ003o20Q7YKbN2iK8JqD2HdVqKx+OSoePKN LUu3OQZjONtqujBQLPSxTJr2TJ8edONkXm7UusLtRJAcXOiTnEc/lUuYEYlN40oUEdWO mms/0eH/FnkuoYdOiavtBmvumDrKuEVmeZy471r+P+m2UlW+l45v2axoScPEt2ubXyet i2lsBu3c60qhcMwokJ5pfNg2PN+tYy3agkQBEz8PtzN/wjplhM5xu/aca4HoEMX2riY7 9aYbtLE+Z/8G6p7/LpaNzMzrNwgBOgGcyoiXDn3ijRyrCPExu8xs9mAxdovqcRfKKyd/ CC7Q== X-Gm-Message-State: AOAM533pA9TrAS/nQ3sNwDY9huZ6xz0k8W1vTM4qKg/v//9HV2KEYIJt Qj8D1Z1/Qh5S10ca9t8DpBPefx+gOuNke6DCc24= X-Google-Smtp-Source: ABdhPJy2krzFIJwiZG2NBaeFOD++jHD67oTT+9go0vyiELWlPamuaAFjuJxCtM00wYW32jrHhTGb9Q== X-Received: by 2002:a63:8643:0:b0:3fb:aaf2:ae82 with SMTP id x64-20020a638643000000b003fbaaf2ae82mr1950494pgd.475.1653644856682; Fri, 27 May 2022 02:47:36 -0700 (PDT) Original-Received: from localhost ([38.75.137.92]) by smtp.gmail.com with ESMTPSA id 71-20020a17090a09cd00b001e25e3ba05csm2633750pjo.2.2022.05.27.02.47.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 May 2022 02:47:36 -0700 (PDT) In-Reply-To: <87k0a7gw3w.fsf@yahoo.com> 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:233167 Archived-At: Po Lu writes: > Ihor Radchenko writes: > >> Starting program: /home/yantar92/Git/emacs/src/emacs -q -xrm Emacs.synchronous:\ true -l /home/yantar92/bug.el > > Did you try using -xrm "Emacs.synchronous: true" instead? No difference. However, I tried to play around with alternative ways to pass parameters. Using run -q -xrm '...' appears to work. The new backtrace: > gdb ./emacs GNU gdb (Gentoo 12.1 vanilla) 12.1 Copyright (C) 2022 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-pc-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"... Reading symbols from ./emacs... SIGINT is used by the debugger. Are you sure you want to change it? (y or n) [answered Y; input not from terminal] DISPLAY = :0 TERM = xterm-kitty Breakpoint 1 at 0x2083b5: file emacs.c, line 420. Breakpoint 2 at 0x1cc1d1: file xterm.c, line 21573. (gdb) run -q -xrm 'Emacs.synchronous: true' Starting program: /home/yantar92/Git/emacs/src/emacs -q -xrm 'Emacs.synchronous: true' [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". [New Thread 0x7ffff049d640 (LWP 15165)] [Detaching after vfork from child process 15505] [Detaching after vfork from child process 15609] [Detaching after vfork from child process 15736] [Detaching after vfork from child process 15825] [Detaching after vfork from child process 15948] [Detaching after vfork from child process 16048] [Detaching after vfork from child process 16155] [Detaching after vfork from child process 16427] [Detaching after vfork from child process 16536] emacs: /var/tmp/portage/x11-libs/cairo-1.16.0-r5/work/cairo-1.16.0/src/cairo-xcb-screen.c:219: _get_screen_index: Assertion `!"reached"' failed. Thread 1 "emacs" received signal SIGABRT, Aborted. 0x00007ffff42e2ebc in ?? () from /lib64/libc.so.6 (gdb) bt #0 0x00007ffff42e2ebc in () at /lib64/libc.so.6 #1 0x00007ffff4296c72 in raise () at /lib64/libc.so.6 #2 0x00007ffff428146b in abort () at /lib64/libc.so.6 #3 0x00007ffff4281397 in () at /lib64/libc.so.6 #4 0x00007ffff428fe42 in () at /lib64/libc.so.6 #5 0x00007ffff6c7b2f1 in () at /usr/lib64/libcairo.so.2 #6 0x00007ffff6c7dcfe in cairo_xcb_surface_create () at /usr/lib64/libcairo.so.2 #7 0x00005555556fb83b in x_begin_cr_clip (f=0x5555571d4dd0, gc=0x0) at xterm.c:4681 #8 0x00005555556fd699 in x_clear_window (f=0x5555571d4dd0) at xterm.c:5408 #9 0x0000555555706751 in x_clear_frame (f=0x5555571d4dd0) at xterm.c:9297 #10 0x00005555556dae3a in clear_frame (f=0x5555571d4dd0) at terminal.c:141 #11 0x000055555559ff07 in redraw_frame (f=0x5555571d4dd0) at dispnew.c:3115 #12 0x00005555555f701b in clear_garbaged_frames () at xdisp.c:12739 #13 0x00005555555f7340 in echo_area_display (update_frame_p=true) at xdisp.c:12791 #14 0x00005555555f3109 in message3_nolog (m=XIL(0x5555598603f4)) at xdisp.c:11752 #15 0x00005555555f2db1 in message3 (m=XIL(0x5555598603f4)) at xdisp.c:11682 #16 0x00005555558498d4 in Fmessage (nargs=2, args=0x7fffffffae88) at editfns.c:2881 #17 0x000055555585dfc8 in funcall_subr (subr=0x555555e83120 , numargs=2, args=0x7fffffffae88) at eval.c:3008 #18 0x000055555585d863 in funcall_general (fun=XIL(0x555555e83125), numargs=2, args=0x7fffffffae88) at eval.c:2889 #19 0x000055555585db40 in Ffuncall (nargs=3, args=0x7fffffffae80) at eval.c:2943 #20 0x00007fffef4744c7 in F7365727665722d65786563757465_server_execute_0 () at /home/yantar92/.emacs.d/eln-cache/29.0.50-9c7bac46/server-0cc44189-d75986a8.eln #21 0x000055555585df1e in funcall_subr (subr=0x55555703a310, numargs=7, args=0x7ffff049e038) at eval.c:2993 #22 0x00005555558c613f in exec_byte_code (fun=XIL(0x5555570354dd), args_template=0, nargs=0, args=0x7fffffffb5c8) at bytecode.c:809 #23 0x000055555585e15c in fetch_and_exec_byte_code (fun=XIL(0x5555570354dd), args_template=0, nargs=0, args=0x7fffffffb5c8) at eval.c:3030 #24 0x000055555585e65b in funcall_lambda (fun=XIL(0x5555570354dd), nargs=0, arg_vector=0x7fffffffb5c8) at eval.c:3102 #25 0x000055555585d8af in funcall_general (fun=XIL(0x5555570354dd), numargs=0, args=0x7fffffffb5c8) at eval.c:2893 #26 0x000055555585db40 in Ffuncall (nargs=1, args=0x7fffffffb5c0) at eval.c:2943 #27 0x00007fffef47106f in F7365727665722d657865637574652d636f6e74696e756174696f6e_server_execute_continuation_0 () at /home/yantar92/.emacs.d/eln-cache/29.0.50-9c7bac46/server-0cc44189-d75986a8.eln #28 0x000055555585dd9d in funcall_subr (subr=0x55555703a260, numargs=1, args=0x7fffffffb7e8) at eval.c:2981 #29 0x000055555585d863 in funcall_general (fun=XIL(0x55555703a265), numargs=1, args=0x7fffffffb7e8) at eval.c:2889 #30 0x000055555585db40 in Ffuncall (nargs=2, args=0x7fffffffb7e0) at eval.c:2943 #31 0x00007fffef4723c9 in F7365727665722d70726f636573732d66696c746572_server_process_filter_0 () at /home/yantar92/.emacs.d/eln-cache/29.0.50-9c7bac46/server-0cc44189-d75986a8.eln #32 0x000055555585ddc1 in funcall_subr (subr=0x55555703a2b8, numargs=2, args=0x7fffffffb9b8) at eval.c:2983 #33 0x000055555585d863 in funcall_general (fun=XIL(0x55555703a2bd), numargs=2, args=0x7fffffffb9b8) at eval.c:2889 #34 0x000055555585db40 in Ffuncall (nargs=3, args=0x7fffffffb9b0) at eval.c:2943 #35 0x000055555585cd73 in Fapply (nargs=2, args=0x7fffffffba60) at eval.c:2614 #36 0x000055555585d49d in apply1 (fn=XIL(0x10a5af0), arg=XIL(0x5555574e4d93)) at eval.c:2830 #37 0x00005555558ed2e2 in read_process_output_call (fun_and_args=XIL(0x5555574e4da3)) at process.c:5999 #38 0x0000555555859349 in internal_condition_case_1 (bfun=0x5555558ed249 , arg=XIL(0x5555574e4da3), handlers=XIL(0x90), hfun=0x5555558ed2e4 ) at eval.c:1502 #39 0x00005555558edd04 in read_and_dispose_of_process_output (p=0x555557c8e308, chars=0x7fffffffbb70 "-env GCC_SPECS= -env GSETTINGS_BACKEND=dconf -env LC_COLLATE=C -env XDG_DATA_DIRS=/usr/local/share:/usr/share -env PATH=/home/yantar92/.pyenv/bin:/home/yantar92/.local/bin:/home/yantar92/.local/bin:/u"..., nbytes=819, coding=0x555555fee820) at process.c:6223 #40 0x00005555558ed8c4 in read_process_output (proc=XIL(0x555557c8e30d), channel=10) at process.c:6133 #41 0x00005555558ec953 in wait_reading_process_output (time_limit=30, nsecs=0, read_kbd=-1, do_display=true, wait_for_cell=XIL(0), wait_proc=0x0, just_wait_proc=0) at process.c:5817 #42 0x00005555555a9238 in sit_for (timeout=make_fixnum(30), reading=true, display_option=1) at dispnew.c:6201 #43 0x000055555576a803 in read_char (commandflag=1, map=XIL(0x5555574e5743), prev_event=XIL(0), used_mouse_menu=0x7fffffffd3ed, end_time=0x0) at keyboard.c:2835 #44 0x0000555555780154 in read_key_sequence --Type for more, q to quit, c to continue without paging--c (keybuf=0x7fffffffd5c0, prompt=XIL(0), dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=false) at keyboard.c:9957 #45 0x0000555555765a92 in command_loop_1 () at keyboard.c:1399 #46 0x0000555555859268 in internal_condition_case (bfun=0x5555557655db , handlers=XIL(0x90), hfun=0x5555557649a9 ) at eval.c:1478 #47 0x0000555555765194 in command_loop_2 (handlers=XIL(0x90)) at keyboard.c:1140 #48 0x000055555585834b in internal_catch (tag=XIL(0xf5d0), func=0x55555576516a , arg=XIL(0x90)) at eval.c:1208 #49 0x0000555555765126 in command_loop () at keyboard.c:1118 #50 0x000055555576444b in recursive_edit_1 () at keyboard.c:727 #51 0x0000555555764677 in Frecursive_edit () at keyboard.c:810 #52 0x000055555575f9dc in main (argc=4, argv=0x7fffffffda68) at emacs.c:2488 Lisp Backtrace: "message" (0xffffae88) "server-execute" (0xf049e038) 0x570354d8 PVEC_COMPILED "server-execute-continuation" (0xffffb7e8) "server-process-filter" (0xffffb9b8) (gdb) quit A debugging session is active. Inferior 1 [process 15152] will be killed. Quit anyway? (y or n) y