all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
Subject: Re: The emacs_backtrace "feature"
Date: Sat, 29 Sep 2012 22:31:27 +0300	[thread overview]
Message-ID: <874nmglvp4.fsf@mail.jurta.org> (raw)
In-Reply-To: <505CC1FA.4070300@cs.ucla.edu> (Paul Eggert's message of "Fri, 21 Sep 2012 12:37:30 -0700")

>>  . Many calls to emacs_backtrace in the current sources limit the
>>    number of backtrace frames to 10, but that is an arbitrary
>>    limitation which will be too small in most, if not all, situations.
>
> We can change that number if needed.  10 was enough for my use
> cases.  Of course no number will be ideal in all cases.  Still, 10
> is almost invariably better than 0.

10 is too small number.  I tried to visit an .ico file, and Emacs crashed
in the ImageMagick library.  I found the backtrace in ~/.xsession-errors:

Backtrace:
/usr/local/src/emacs/trunk/src/emacs[0x4f1bdb]
/usr/local/src/emacs/trunk/src/emacs[0x4d70dd]
/usr/local/src/emacs/trunk/src/emacs[0x4f1b4e]
/usr/local/src/emacs/trunk/src/emacs[0x4f28c3]
/lib/libpthread.so.0(+0xfb40)[0x7fa162357b40]
/lib/libc.so.6(gsignal+0x35)[0x7fa16136eba5]
/lib/libc.so.6(abort+0x180)[0x7fa1613726b0]
/lib/libc.so.6(__assert_fail+0xf1)[0x7fa161367a71]
/usr/lib/libMagickCore.so.3(DestroyLinkedList+0xea)[0x7fa1628939ba]
/usr/lib/libMagickCore.so.3(DestroyExceptionInfo+0x52)[0x7fa16287bdc2]
/usr/lib/libMagickWand.so.3(DestroyPixelWand+0x5b)[0x7fa162cee84b]
...

Running it through `addr2line' helps to see source-code lines of
crash-processing functions:

emacs_backtrace at /usr/local/src/emacs/trunk/src/sysdep.c:2034
terminate_due_to_signal at /usr/local/src/emacs/trunk/src/emacs.c:314
handle_fatal_signal at /usr/local/src/emacs/trunk/src/sysdep.c:1552
deliver_thread_signal at /usr/local/src/emacs/trunk/src/sysdep.c:1537
 (inlined by) deliver_fatal_thread_signal at /usr/local/src/emacs/trunk/src/sysdep.c:1564

But the most interesting part of the backtrace with information
about Emacs image functions is truncated.

Displaying more lines might help to understand whether the bug is caused
by the old version of ImageMagick or by a bug in src/image.c.

Would be better to increase the number of lines to 24 or 32
or any other round number.



  parent reply	other threads:[~2012-09-29 19:31 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-21  9:49 The emacs_backtrace "feature" Eli Zaretskii
2012-09-21  9:58 ` Andreas Schwab
2012-09-21 10:17   ` Eli Zaretskii
2012-09-21 12:00     ` Andreas Schwab
2012-09-21 19:29   ` Florian Weimer
2012-09-21 19:45     ` Paul Eggert
2012-09-24 15:52       ` Steinar Bang
2012-09-21 12:24 ` Óscar Fuentes
2012-09-21 16:35   ` Stefan Monnier
2012-09-21 16:49 ` Stephen J. Turnbull
2012-09-21 17:07   ` Tom Tromey
2012-09-21 17:41   ` Andreas Schwab
2012-09-21 19:37 ` Paul Eggert
2012-09-22 12:05   ` Richard Stallman
2012-09-22 13:54     ` Christoph Scholtes
2012-09-22 14:23       ` covici
2012-09-24 15:55     ` Steinar Bang
2012-09-24 17:29       ` Paul Eggert
2012-09-22 12:41   ` Eli Zaretskii
2012-09-22 19:28     ` Paul Eggert
2012-09-23 13:05     ` Stephen J. Turnbull
2012-09-23 14:19       ` Andreas Schwab
2012-09-23 19:30         ` Stephen J. Turnbull
2012-09-23 21:01           ` Nix
2012-09-24  5:00             ` Stephen J. Turnbull
2012-09-24  9:29               ` Nix
2012-09-24 23:55                 ` Stephen J. Turnbull
2012-09-29 19:31   ` Juri Linkov [this message]
2012-09-29 20:01     ` Eli Zaretskii
2012-09-29 20:51       ` Paul Eggert
2012-09-29 21:19         ` Eli Zaretskii
2012-09-30  1:30           ` Paul Eggert
2012-09-30  9:44             ` messages-buffer-max-lines (was: The emacs_backtrace "feature") Juri Linkov
2012-10-01  5:51               ` messages-buffer-max-lines Paul Eggert
2012-10-01  6:50                 ` messages-buffer-max-lines Chong Yidong
2012-09-30  1:48       ` The emacs_backtrace "feature" Stefan Monnier
2012-09-30  7:14         ` Eli Zaretskii
2012-09-30  7:24           ` Paul Eggert
2012-10-01  2:54         ` Chong Yidong
2012-10-01 11:43           ` Lars Magne Ingebrigtsen
2012-09-21 21:40 ` Richard Stallman
2012-09-22  6:53   ` Stephen J. Turnbull
2012-09-24 14:27   ` Lars Ingebrigtsen

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874nmglvp4.fsf@mail.jurta.org \
    --to=juri@jurta.org \
    --cc=eggert@cs.ucla.edu \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.