GNU bug report logs - #37331
27.0.50; segfault when starting from pdump and using dbus

Previous Next

Package: emacs;

Reported by: Leonard Lausen <leonard <at> lausen.nl>

Date: Sat, 7 Sep 2019 15:50:02 UTC

Severity: normal

Tags: confirmed, moreinfo

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #26 received at 37331 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Leonard Lausen <leonard <at> lausen.nl>
Cc: Paul Eggert <eggert <at> cs.ucla.edu>, 37331 <at> debbugs.gnu.org
Subject: Re: bug#37331: 27.0.50; segfault when starting from pdump and using
 dbus
Date: Mon, 11 Oct 2021 16:28:10 +0200
Leonard Lausen <leonard <at> lausen.nl> writes:

> Content of $HOME/debug-init.el
>
>   (require 'dbus)
>
> Dump
>
>   emacs --batch -Q -l $HOME/debug-init.el -eval '(dump-emacs-portable "/tmp/dmp")
>
> Load
>
>   emacs -Q -l $HOME/debug-init.el --dump-file=/tmp/dmp
>
> Execute
>
>   (require 'dbus)
>   (dbus-get-unique-name :system)
>
> Error
>
>   Debugger entered--Lisp error: (dbus-error "No connection to bus" :system)
>     dbus-get-unique-name(:system)
>     (progn (dbus-get-unique-name :system))
>     eval((progn (dbus-get-unique-name :system)) t)

I can reproduce this in Emacs 29, too.  This is because dbus.el
initialises the buses like this:

;; Initialize `:system' and `:session' buses.  This adds their file
;; descriptors to input_wait_mask, in order to detect incoming
;; messages immediately.
(when (featurep 'dbusbind)
  (dbus-ignore-errors
    (dbus-init-bus :system))
  (dbus-ignore-errors
    (dbus-init-bus :session)))

But this isn't run when dbus.el was present in Emacs when it was dumped,
so these inits have to be run in a different way.  I'm not sure where
init code like this is supposed to happen in a pdumped Emacs, though.
Anybody?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 3 years and 281 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.