[BUG] Having workspaces, dashboard, and unicode modules enabled causes client to segfault

未关闭
#92 5 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
emacs-lisp
领域
backend

调研方向

The report narrows the crash to enabling the workspaces, unicode, and dashboard modules in init.el and launching emacsclient -c; it links info.txt for system details. Start by reproducing with those modules and compare which combination triggers the crash. Done means identifying and fixing the module interaction so the daemon survives client frame creation.

由索引模型根据 Issue 内容生成。

描述

Describe your issue

When I call emacsclient -c (this does not happen with just emacs or emacsclient -nw), the emacs daemon crashes. With emacs --fg-daemon open in a terminal, I can see the following output:

stack trace (long output)
Due to a limitation in GTK 3, Emacs built with PGTK will simply exit when a
display connection is closed.  The problem is especially difficult to fix,
such that Emacs on Wayland with multiple displays is unlikely ever to be able
to survive disconnects.
Starting Emacs daemon.
Doom loaded 21 packages across 6 modules in 0.068s
Gdk-Message: 11:24:36.346: Unable to load sb_v_double_arrow from the cursor theme
Gdk-Message: 11:24:36.346: Unable to load sb_h_double_arrow from the cursor theme
Gdk-Message: 11:24:36.365: Unable to load hand2 from the cursor theme
Gdk-Message: 11:24:36.365: Unable to load sb_h_double_arrow from the cursor theme
Gdk-Message: 11:24:36.365: Unable to load sb_v_double_arrow from the cursor theme
Fatal error 11: Segmentation fault
Backtrace:
emacs(+0x183616) [0x5a6e6a101616]
emacs(+0x4f7ca) [0x5a6e69fcd7ca]
emacs(+0x4fddd) [0x5a6e69fcdddd]
emacs(+0x4fde4) [0x5a6e69fcdde4]
emacs(+0x1812f1) [0x5a6e6a0ff2f1]
/nix/store/pqyiidz5mi73wv5f91d48s9plcqyj5bz-glibc-2.44-57/lib/libc.so.6(+0x429f0) [0x7ebddde429f0]
emacs(+0x2b165f) [0x5a6e6a22f65f]
emacs(+0x24e6ed) [0x5a6e6a1cc6ed]
emacs(+0x1fdd9e) [0x5a6e6a17bd9e]
emacs(+0x1fe3d9) [0x5a6e6a17c3d9]
emacs(+0x1fe3d9) [0x5a6e6a17c3d9]
/nix/store/yxmbl6xs6vz1ly49h8x8rd2s9f7lck46-emacs-pgtk-31.1/lib/emacs/31.1/native-lisp/31.1-e6359f46/cl-seq-f464c4e2-2e568bb4.eln(F636c2d72656d6f7665_cl_remove_0+0xaa3) [0x7ebdd3e88313]
emacs(+0x1fe3d9) [0x5a6e6a17c3d9]
emacs(+0x1fe967) [0x5a6e6a17c967]
/nix/store/yxmbl6xs6vz1ly49h8x8rd2s9f7lck46-emacs-pgtk-31.1/lib/emacs/31.1/native-lisp/31.1-e6359f46/cl-seq-f464c4e2-2e568bb4.eln(F636c2d72656d6f76652d69662d6e6f74_cl_remove_if_not_0+0x7f) [0x7ebdd3e88e1f]
emacs(+0x24e6ed) [0x5a6e6a1cc6ed]
emacs(+0x1fdd9e) [0x5a6e6a17bd9e]
emacs(+0x1fff4b) [0x5a6e6a17df4b]
emacs(+0x1fd222) [0x5a6e6a17b222]
emacs(+0x1fdac0) [0x5a6e6a17bac0]
emacs(+0x2008e2) [0x5a6e6a17e8e2]
emacs(+0x1fd739) [0x5a6e6a17b739]
emacs(+0x1fdac0) [0x5a6e6a17bac0]
emacs(+0x2008e2) [0x5a6e6a17e8e2]
emacs(+0x1fd739) [0x5a6e6a17b739]
emacs(+0x1fdac0) [0x5a6e6a17bac0]
emacs(+0x2008e2) [0x5a6e6a17e8e2]
emacs(+0x1fd739) [0x5a6e6a17b739]
emacs(+0x1fdac0) [0x5a6e6a17bac0]
emacs(+0x1fd739) [0x5a6e6a17b739]
emacs(+0x200079) [0x5a6e6a17e079]
emacs(+0x1fd739) [0x5a6e6a17b739]
emacs(+0x1fdac0) [0x5a6e6a17bac0]
emacs(+0x2008e2) [0x5a6e6a17e8e2]
emacs(+0x1fd739) [0x5a6e6a17b739]
emacs(+0x1fdac0) [0x5a6e6a17bac0]
emacs(+0x1fd739) [0x5a6e6a17b739]
emacs(+0x1fd739) [0x5a6e6a17b739]
emacs(+0x1fdac0) [0x5a6e6a17bac0]
emacs(+0x1fdeed) [0x5a6e6a17beed]
emacs(+0x1fff4b) [0x5a6e6a17df4b]
...
zsh: segmentation fault (core dumped)  emacs --fg-daemon
Steps to reproduce

I was able to find that this can be reproduced with just workspaces, unicode, and dashboard present in init.el and no other files present in ~/.config/doom/.

init.el
;;; init.el -*- lexical-binding: t; -*-
(doom! :input
       :ui
       dashboard    ; a nifty splash screen for Emacs
       unicode           ; extended unicode support for various languages
       workspaces)        ; tab emulation, persistence & separate workspaces

Removing any of these allows the client to launch perfectly fine, though I suspect the problem is more around unicode, and having the dashboard & workspaces modules enabled just allows that bug to pop up on frame creation.

System information

info.txt

Disclosures
  • This issue was written with/by AI.
主要语言
Emacs Lisp
星标
69
派生
47
平均合并
8 天 9 小时
30 天内合并 PR
2

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

doomemacs/modules 的其他 Issue

查看 doomemacs/modules 的全部 Issue

相似的 Issue

更多 Backend & API Design Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。