On Wed, May 10, 2023 at 5:52 PM Mark C. Allman via users <
users(a)lists.fedoraproject.org> wrote:
On 5/10/23 16:43, Ranjan Maitra wrote:
> Hi,
>
> Ever since upgrading to F38, I have been getting emacs crashes
(Segmentation faults) quite frequently, but not always. Specifically, I get
the following message on the screen when emacs crashes.
>
> Any ideas as to what the remedy is? The version I have is:
>
> emacs-1:28.2-4.fc38.x86_64
>
> Many thanks and best wishes,
> Ranjan
>
> Here is the error I get:
>
> $ Backtrace:
> emacs(emacs_backtrace+0x5c)[0x5889dc]
> emacs(terminate_due_to_signal+0xa1)[0x46533c]
emacs was working for me up to today after installing updates using Gnome
Software. Running emacs
in an ssh session:
% emacs
Fatal error 11: Segmentation fault
Backtrace:
emacs(emacs_backtrace+0x5c)[0x5889dc]
emacs(terminate_due_to_signal+0xa1)[0x46533c]
"emacs -nw" works. I have another f38 system that was not updated where
emacs is working.
I would use strace: strace -o /tmp/emacs.log /usr/bin/emacs. Whatever
happens should be captured at/near the bottom if /tmp/emacs.log
It has been many years since I last had a problem with emacs, but guessing
the relevant bit is:
poll([{fd=4, events=POLLIN}], 1, -1) = 1 ([{fd=4, revents=POLLIN}])
--- SIGIO {si_signo=SIGIO, si_code=SI_KERNEL} ---
rt_sigreturn({mask=[]}) = 1
recvmsg(4, {msg_name=NULL, msg_namelen=0,
msg_iov=[{iov_base="\1\0\326\10\0\0\0\0\314\314\314\314\314\314\314\314\314\31
4\314\314\0\0\0\0\0\0\0\0\0\0\0\0", iov_len=4096}], msg_iovlen=1,
msg_controllen=0, msg_flags=0}, 0) = 32
recvmsg(4, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily
unavailable)
recvmsg(4, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily
unavailable)
recvmsg(4, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily
unavailable)
recvmsg(4, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily
unavailable)
poll([{fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=7, events=POLLIN}],
3, 0) = 0 (Timeout)
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x1c} ---
rt_sigaction(SIGSEGV, {sa_handler=SIG_DFL, sa_mask=[SEGV],
sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f547d83bb70},
{sa_handler=0x587a50, sa_mask=~[KILL STOP RTMIN RT_1],
sa_flags=SA_RESTORER|SA_ONSTACK|SA_SIGINFO, sa_restorer=0x7f547d83bb70}, 8)
= 0
ioctl(0, TIOCGPGRP, [16074]) = 0
getpgrp() = 16074
openat(AT_FDCWD, "/proc/self/maps", O_RDONLY|O_CLOEXEC) = 14
newfstatat(14, "", {st_mode=S_IFREG|0444, st_size=0, ...}, AT_EMPTY_PATH) =
0
read(14, "00400000-00453000 r--p 00000000 "..., 1024) = 1024
close(14) = 0
write(2, "Fatal error 11: Segmentation fau"..., 35) = 35
--
George N. White III