Discussion:
emacs-25.3 aborted
(too old to reply)
D4n1
2017-12-08 21:07:08 UTC
Permalink
Raw Message
Guix,

Follow gdb output on core dump when emacs crash returning error 6.
Guixs,
I updated my GuixSD and I'm use EXWM + Emacs like my desktop. So, in
version 25.3 of Emacs there's error when start it in X11 or console
(TTY). This error only appear in Emacs full installation but I did a
test using emacs-no-x and it work. Maybe there are a bug with GTK module
or other dependencies. Someone is there the same error?
Thanks,
--
Daniel Pimentel (d4n1)
Adonay Felipe Nogueira
2017-12-12 14:01:42 UTC
Permalink
Raw Message
I might have found a way to work around the issue, I don't know if it
solves the real problem, but might work for you.

See the message I wrote in [1].

[1] <https://lists.gnu.org/archive/html/help-guix/2017-11/msg00100.html>.
Post by D4n1
Guix,
Follow gdb output on core dump when emacs crash returning error 6.
--
- https://libreplanet.org/wiki/User:Adfeno
- Palestrante e consultor sobre /software/ livre (não confundir com
gratis).
- "WhatsApp"? Ele não é livre. Por favor, veja formas de se comunicar
instantaneamente comigo no endereço abaixo.
- Contato: https://libreplanet.org/wiki/User:Adfeno#vCard
- Arquivos comuns aceitos (apenas sem DRM): Corel Draw, Microsoft
Office, MP3, MP4, WMA, WMV.
- Arquivos comuns aceitos e enviados: CSV, GNU Dia, GNU Emacs Org, GNU
GIMP, Inkscape SVG, JPG, LibreOffice (padrão ODF), OGG, OPUS, PDF
(apenas sem DRM), PNG, TXT, WEBM.
Daniel Pimentel
2017-12-12 14:04:40 UTC
Permalink
Raw Message
The problem is in GTK modules with Emacs. I installed the
emacs-no-x-toolkit and it works.

---
Daniel Pimentel (d4n1)
Post by Adonay Felipe Nogueira
I might have found a way to work around the issue, I don't know if it
solves the real problem, but might work for you.
See the message I wrote in [1].
[1]
<https://lists.gnu.org/archive/html/help-guix/2017-11/msg00100.html>.
Post by D4n1
Guix,
Follow gdb output on core dump when emacs crash returning error 6.
Adonay Felipe Nogueira
2017-12-13 12:30:04 UTC
Permalink
Raw Message
Glad you found a work around. ;)
Post by Daniel Pimentel
The problem is in GTK modules with Emacs. I installed the
emacs-no-x-toolkit and it works.
---
Daniel Pimentel (d4n1)
Post by Adonay Felipe Nogueira
I might have found a way to work around the issue, I don't know if it
solves the real problem, but might work for you.
See the message I wrote in [1].
[1]
<https://lists.gnu.org/archive/html/help-guix/2017-11/msg00100.html>.
Post by D4n1
Guix,
Follow gdb output on core dump when emacs crash returning error 6.
--
- https://libreplanet.org/wiki/User:Adfeno
- Palestrante e consultor sobre /software/ livre (não confundir com
gratis).
- "WhatsApp"? Ele não é livre. Por favor, veja formas de se comunicar
instantaneamente comigo no endereço abaixo.
- Contato: https://libreplanet.org/wiki/User:Adfeno#vCard
- Arquivos comuns aceitos (apenas sem DRM): Corel Draw, Microsoft
Office, MP3, MP4, WMA, WMV.
- Arquivos comuns aceitos e enviados: CSV, GNU Dia, GNU Emacs Org, GNU
GIMP, Inkscape SVG, JPG, LibreOffice (padrão ODF), OGG, OPUS, PDF
(apenas sem DRM), PNG, TXT, WEBM.
Ricardo Wurmus
2017-12-13 23:15:23 UTC
Permalink
Raw Message
I can reproduce this on i686. After installing Emacs with “guix package
--no-grafts -u emacs”, however, there is no crash.

The crash only happens with the grafted Emacs.

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC
https://elephly.net
Adonay Felipe Nogueira
2017-12-13 23:55:43 UTC
Permalink
Raw Message
I'm using i686 here too. ;)
Post by Ricardo Wurmus
I can reproduce this on i686. After installing Emacs with “guix package
--no-grafts -u emacs”, however, there is no crash.
The crash only happens with the grafted Emacs.
--
Ricardo
GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC
https://elephly.net
Ludovic Courtès
2017-12-15 14:48:33 UTC
Permalink
Raw Message
Post by Ricardo Wurmus
I can reproduce this on i686. After installing Emacs with “guix package
--no-grafts -u emacs”, however, there is no crash.
The crash only happens with the grafted Emacs.
Indeed:

--8<---------------cut here---------------start------------->8---
$ ./pre-inst-env guix environment -s i686-linux --ad-hoc emacs --pure -- emacs -Q

** (emacs-25-3:10005): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
Fatal error 6: Aborted
Backtrace:
/gnu/store/d39xg06h35k91syyp7k3lhiprwxii2ii-emacs-25.3/bin/emacs-25.3[0x81393ec]
/gnu/store/d39xg06h35k91syyp7k3lhiprwxii2ii-emacs-25.3/bin/emacs-25.3[0x8121e63]
/gnu/store/d39xg06h35k91syyp7k3lhiprwxii2ii-emacs-25.3/bin/emacs-25.3[0x813947c]
/gnu/store/d39xg06h35k91syyp7k3lhiprwxii2ii-emacs-25.3/bin/emacs-25.3[0x8176e75]
/gnu/store/d39xg06h35k91syyp7k3lhiprwxii2ii-emacs-25.3/bin/emacs-25.3[0x8176e5d]
/gnu/store/d39xg06h35k91syyp7k3lhiprwxii2ii-emacs-25.3/bin/emacs-25.3[0x8176cce]
/gnu/store/d39xg06h35k91syyp7k3lhiprwxii2ii-emacs-25.3/bin/emacs-25.3[0x8176e5d]
/gnu/store/d39xg06h35k91syyp7k3lhiprwxii2ii-emacs-25.3/bin/emacs-25.3[0x8176c9e]
/gnu/store/d39xg06h35k91syyp7k3lhiprwxii2ii-emacs-25.3/bin/emacs-25.3[0x8176e5d]
/gnu/store/d39xg06h35k91syyp7k3lhiprwxii2ii-emacs-25.3/bin/emacs-25.3[0x8176e5d]
/gnu/store/d39xg06h35k91syyp7k3lhiprwxii2ii-emacs-25.3/bin/emacs-25.3[0x8176cce]
/gnu/store/d39xg06h35k91syyp7k3lhiprwxii2ii-emacs-25.3/bin/emacs-25.3[0x817705f]
/gnu/store/d39xg06h35k91syyp7k3lhiprwxii2ii-emacs-25.3/bin/emacs-25.3[0x8176e5d]
/gnu/store/d39xg06h35k91syyp7k3lhiprwxii2ii-emacs-25.3/bin/emacs-25.3[0x8176c9e]
/gnu/store/d39xg06h35k91syyp7k3lhiprwxii2ii-emacs-25.3/bin/emacs-25.3[0x8176e5d]
/gnu/store/d39xg06h35k91syyp7k3lhiprwxii2ii-emacs-25.3/bin/emacs-25.3[0x8176e5d]
/gnu/store/d39xg06h35k91syyp7k3lhiprwxii2ii-emacs-25.3/bin/emacs-25.3[0x8176c9e]
/gnu/store/d39xg06h35k91syyp7k3lhiprwxii2ii-emacs-25.3/bin/emacs-25.3[0x8176e5d]
/gnu/store/d39xg06h35k91syyp7k3lhiprwxii2ii-emacs-25.3/bin/emacs-25.3[0x8176e5d]
/gnu/store/d39xg06h35k91syyp7k3lhiprwxii2ii-emacs-25.3/bin/emacs-25.3[0x8176c9e]
/gnu/store/d39xg06h35k91syyp7k3lhiprwxii2ii-emacs-25.3/bin/emacs-25.3[0x8176e5d]
/gnu/store/d39xg06h35k91syyp7k3lhiprwxii2ii-emacs-25.3/bin/emacs-25.3[0x8176c9e]
/gnu/store/d39xg06h35k91syyp7k3lhiprwxii2ii-emacs-25.3/bin/emacs-25.3[0x8176e5d]
/gnu/store/d39xg06h35k91syyp7k3lhiprwxii2ii-emacs-25.3/bin/emacs-25.3[0x8176e5d]
/gnu/store/d39xg06h35k91syyp7k3lhiprwxii2ii-emacs-25.3/bin/emacs-25.3[0x8176c9e]
/gnu/store/d39xg06h35k91syyp7k3lhiprwxii2ii-emacs-25.3/bin/emacs-25.3[0x8176e5d]
/gnu/store/d39xg06h35k91syyp7k3lhiprwxii2ii-emacs-25.3/bin/emacs-25.3[0x8176e5d]
/gnu/store/d39xg06h35k91syyp7k3lhiprwxii2ii-emacs-25.3/bin/emacs-25.3[0x8176c9e]
/gnu/store/d39xg06h35k91syyp7k3lhiprwxii2ii-emacs-25.3/bin/emacs-25.3[0x8176e5d]
/gnu/store/d39xg06h35k91syyp7k3lhiprwxii2ii-emacs-25.3/bin/emacs-25.3[0x8176e5d]
/gnu/store/d39xg06h35k91syyp7k3lhiprwxii2ii-emacs-25.3/bin/emacs-25.3[0x8176c9e]
/gnu/store/d39xg06h35k91syyp7k3lhiprwxii2ii-emacs-25.3/bin/emacs-25.3[0x8176e5d]
/gnu/store/d39xg06h35k91syyp7k3lhiprwxii2ii-emacs-25.3/bin/emacs-25.3[0x8176cce]
/gnu/store/d39xg06h35k91syyp7k3lhiprwxii2ii-emacs-25.3/bin/emacs-25.3[0x817705f]
/gnu/store/d39xg06h35k91syyp7k3lhiprwxii2ii-emacs-25.3/bin/emacs-25.3[0x8176cce]
/gnu/store/d39xg06h35k91syyp7k3lhiprwxii2ii-emacs-25.3/bin/emacs-25.3[0x8176e5d]
/gnu/store/d39xg06h35k91syyp7k3lhiprwxii2ii-emacs-25.3/bin/emacs-25.3[0x817705f]
/gnu/store/d39xg06h35k91syyp7k3lhiprwxii2ii-emacs-25.3/bin/emacs-25.3[0x81770fd]
/gnu/store/d39xg06h35k91syyp7k3lhiprwxii2ii-emacs-25.3/bin/emacs-25.3[0x817841e]
/gnu/store/d39xg06h35k91syyp7k3lhiprwxii2ii-emacs-25.3/bin/emacs-25.3[0x8176e7f]
/gnu/store/d39xg06h35k91syyp7k3lhiprwxii2ii-emacs-25.3/bin/emacs-25.3[0x8176e5d]
...
$ git describe
v0.14.0-234-g583016820
--8<---------------cut here---------------end--------------->8---

The backtrace shows that it crashed during the mark phase:

--8<---------------cut here---------------start------------->8---
#0 0xf7f01df9 in __kernel_vsyscall ()
#1 0xf5fdd1d1 in raise () from /gnu/store/kzkgc8avgnanrv3ab2g3g8yj7l4bcavj-glibc-2.25/lib/libpthread.so.0
#2 0x08121e91 in terminate_due_to_signal ()
#3 0x0813947c in emacs_abort ()
#4 0x08176e75 in mark_object ()
#5 0x08176e5d in mark_object ()
#6 0x08176cce in mark_object ()
#7 0x08176e5d in mark_object ()
#8 0x08176c9e in mark_object ()
#9 0x08176e5d in mark_object ()
#10 0x08176e5d in mark_object ()
#11 0x08176cce in mark_object ()
#12 0x0817705f in mark_vectorlike ()
#13 0x08176e5d in mark_object ()

[...]

#167 0x0817748a in Fgarbage_collect ()
#168 0x081bf73a in exec_byte_code ()
#169 0x0818d87b in funcall_lambda ()
#170 0x0818dc39 in Ffuncall ()
#171 0x081bf42d in exec_byte_code ()
#172 0x0818d87b in funcall_lambda ()
--8<---------------cut here---------------end--------------->8---

And indeed --no-grafts doesn’t have this problem.

Could it be that grafting breaks the unexec’d image in subtle ways?

Ludo’.
Adonay Felipe Nogueira
2018-02-21 16:41:12 UTC
Permalink
Raw Message
I don't know what caused this, but something between Guix
0.14.0-6.0dcf675 and 0.14.0-8.bc880f9 forced my own computer attempt to
build Emacs, and resulted in a working Emacs version.

Store path name differences for Emacs:

- Old (working): b1nbgnpifkisz4szmasxrwzqlgqagy8w-emacs-25.3
- New (self-built, working): lh66vaxq3da6m8yz83lvgny4f4bwh760-emacs-25.3
Ludovic Courtès
2018-02-27 14:51:06 UTC
Permalink
Raw Message
Hello Adonay,
Post by Adonay Felipe Nogueira
I don't know what caused this, but something between Guix
0.14.0-6.0dcf675 and 0.14.0-8.bc880f9 forced my own computer attempt to
build Emacs, and resulted in a working Emacs version.
- Old (working): b1nbgnpifkisz4szmasxrwzqlgqagy8w-emacs-25.3
- New (self-built, working): lh66vaxq3da6m8yz83lvgny4f4bwh760-emacs-25.3
Weird, but thanks for letting us know!

On IRC people have reported Emacs crashes similar to what you had
recently, so it may be that there’s still an issue lurking.

Ludo’.

Daniel Pimentel
2017-12-20 18:19:07 UTC
Permalink
Raw Message
Wurmus and Guix,

I installed emacs with "--no-grafts" and emacs-exwm with this flag and
it works.

Thanks,

---
Daniel Pimentel (d4n1)
Post by Ricardo Wurmus
I can reproduce this on i686. After installing Emacs with “guix package
--no-grafts -u emacs”, however, there is no crash.
The crash only happens with the grafted Emacs.
--
Ricardo
GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC
https://elephly.net
Ludovic Courtès
2017-12-21 14:56:53 UTC
Permalink
Raw Message
Hi Daniel,
Post by Daniel Pimentel
I installed emacs with "--no-grafts" and emacs-exwm with this flag and
it works.
Be aware that using --no-grafts means that the resulting Emacs lacks
many security fixes:

https://www.gnu.org/software/guix/manual/html_node/Security-Updates.html

Thus it’s not a proper solution.

Ludo’.
Daniel Pimentel
2017-12-21 19:57:55 UTC
Permalink
Raw Message
Hi Ludo,
Post by Ludovic Courtès
Be aware that using --no-grafts means that the resulting Emacs lacks
https://www.gnu.org/software/guix/manual/html_node/Security-Updates.html
Thus it’s not a proper solution.
Yes, I agree because it isn't better solution. I'm using it now, but
I'll study more to fix and I'll send a patch.

Thanks,
Loading...