From: Paul Eggert <eggert@cs.ucla.edu>
To: "Jan Synáček" <jsynacek@redhat.com>
Cc: Florian Weimer <fweimer@redhat.com>, 23726@debbugs.gnu.org
Subject: bug#23726: emacs 25.0.94 crashes
Date: Wed, 8 Jun 2016 10:32:06 -0700 [thread overview]
Message-ID: <489b54c6-1d39-4f47-9c35-36eea32c7b6c@cs.ucla.edu> (raw)
In-Reply-To: <m6fwpm09e1h.fsf@jsynacek-ntb.brq.redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1137 bytes --]
Has Rawhide incorporated some of Florian Weimer's malloc patches? If so,
this is almost surely causing the problem. I will CC: Florian to give
him a heads-up. See:
https://sourceware.org/ml/libc-alpha/2016-06/msg00211.html
https://sourceware.org/bugzilla/show_bug.cgi?id=19564
I am surprised that you can use valgrind. Valgrind does not work on
Emacs in Fedora 23 because it mishandles the way Emacs dumps and
restores. I can use Valgrind only on temacs, not on Emacs itself. The
fact that you can use Valgrind on a dumped Emacs suggests that some of
the malloc patches have been installed on Rawhide.
For what it's worth, when I try to use valgrind on Fedora 23, I run into
what appears to be a valgrind bug that prevents Emacs from working. I
just now filed it here:
https://bugzilla.redhat.com/show_bug.cgi?id=1344082
I ran valgrind as follows:
valgrind --log-fd=3 --suppressions=valgrind.supp ./temacs 3>/tmp/vg.log
with the attached valgrind.supp file, and Emacs (emacs-25 branch, built
with 'configure --with-x=no') says "Failed select: Bad address" due to
the valgrind bug. How do you use valgrind on Rawhide?
[-- Attachment #2: valgrind.supp --]
[-- Type: text/plain, Size: 1337 bytes --]
# valgrind suppression file
# Usage:
# valgrind --suppressions=valgrind.supp ./temacs
# Conservative garbage collection inherently looks at uninitialized values,
# and Fgarbage_collect and its callees all depend on this.
# It's hard to separate out exactly which callees need to be listed here,
# since the C compiler can inline them. Also, valgrind doesn't care
# about the use of uninitialized variables directly, only when their values
# are eventually used. So just list Fgarbage_collect and its callees.
{
Fgarbage_collect Cond - conservative garbage collection
Memcheck:Cond
...
fun:Fgarbage_collect
}
{
Fgarbage_collect Value8 - conservative garbage collection
Memcheck:Value8
...
fun:Fgarbage_collect
}
# valgrind only looks at the last few callees on the stack, but
# mark_object can call itself recursively and deeply. So list
# it too, in case Fgarbage_collect is a long way from the stack top.
{
Fgarbage_collect Cond - conservative garbage collection
Memcheck:Cond
...
fun:mark_object
}
{
Fgarbage_collect Value8 - conservative garbage collection
Memcheck:Value8
...
fun:mark_object
}
# On one circa-2011 x86-64 GNU/Linux platform, strlen is inlined to
# something that loads 4 bytes at a time.
{
init_buffer optimized strlen
Memcheck:Addr4
fun:init_buffer
}
next prev parent reply other threads:[~2016-06-08 17:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-08 10:21 bug#23726: 25.0.94; emacs 25.0.94 crashes Jan Synáček
2016-06-08 16:49 ` Eli Zaretskii
2016-06-08 17:32 ` Paul Eggert [this message]
2016-06-08 18:34 ` bug#23726: " Florian Weimer
2016-06-08 18:52 ` Florian Weimer
2016-06-08 18:57 ` Paul Eggert
2016-06-09 6:17 ` Jan Synacek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=489b54c6-1d39-4f47-9c35-36eea32c7b6c@cs.ucla.edu \
--to=eggert@cs.ucla.edu \
--cc=23726@debbugs.gnu.org \
--cc=fweimer@redhat.com \
--cc=jsynacek@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).