all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Jingtao Xu <jingtaozf@gmail.com>
Cc: 13245@debbugs.gnu.org
Subject: bug#13245: 24.2; emacs24.2 crashed in gentoo.
Date: Fri, 21 Dec 2012 11:07:05 +0200	[thread overview]
Message-ID: <83mwx7n58m.fsf@gnu.org> (raw)
In-Reply-To: <CALopY-mnUU263sR25nBP_fd2NV9rQZWMoRJAXFMkQi7HRH0qag@mail.gmail.com>

> Date: Fri, 21 Dec 2012 11:26:59 +0800
> From: Jingtao Xu <jingtaozf@gmail.com>
> 
> I am editing a remote file with tramp, and use org-mode recording my
> work,some timer runs in background.
> the backtrack in gdb shows this
> 
> ,----
> | Program received signal SIGSEGV, Segmentation fault.
> | 0x000000000043a7a9 in compute_line_metrics ()
> |
> | (gdb) bt
> | #0  0x000000000043a7a9 in compute_line_metrics ()
> | #1  0x00000000004466ea in display_mode_line ()
> `----
> 
> and my emacs configuration is very complex with about 10000 lines.

Can you reproduce this with an Emacs compiled without optimizations?
If so, please show the source line where it crashes, and the values of
relevant variables from that source line.  The information you
provided is insufficient for guessing what could be the problem,
because compute_line_metrics is a non-trivial function of substantial
size.

> I also find that emacs will crash(just sometime) when show tooltip with
> following codes:

Can you give a precise recipe for the crashes, starting from "emacs -Q"?

> (defun kid-star-dict-internal (&optional word)
>   (interactive)
>   (let ((word (if word
>                 word
>                 (let ((word (if mark-active
>                               (buffer-substring-no-properties
>                                (region-beginning)
>                                (region-end))
>                               (current-word nil t))))
>                   (if word
>                     word
>                     (read-string
>                      (format "Search the dictionary for (default %s): "
> word)
>                      nil nil word))))))
>     (message "searching for %s ..." word)
>     (cond (windows-os-p
>            (let ((coding-system-for-read (coding-system-from-name "utf-8"))
>                  (coding-system-for-write (coding-system-from-name "utf-8"))
>                  (shell-file-name "d:\\emacs\\bin\\cmdproxy.exe")
>                  (explicit-shell-file-name nil)
>                  (default-directory "~"))
>              (shell-command-to-string
>               (concat "d:/sdcv/sdcv.exe " (kid-sdcv-dictory)
>                       " --non-interactive --utf8-input --utf8-output
> --data-dir D:/sdcv -n "
>                       word))))
>           (t
>            (let ((default-directory "~"))
>              (shell-command-to-string
>               (if (file-exists-p "/usr/bin/sdcv")
>                 (concat "sdcv --non-interactive " (kid-sdcv-dictory) "
> --utf8-input --utf8-output -n " word)
>                 (concat "env WINEPREFIX=~/.wine.org wine
> /home/local/sdcv/sdcv.exe --non-interactive "
>                         (kid-sdcv-dictory) " --utf8-input --utf8-output
> --data-dir /home/local/sdcv"
>                         "-n " word))))))))

Does this cause crashes on Windows or on Unix?





  reply	other threads:[~2012-12-21  9:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-21  3:26 bug#13245: 24.2; emacs24.2 crashed in gentoo Jingtao Xu
2012-12-21  9:07 ` Eli Zaretskii [this message]
2014-02-05  2:15   ` 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=83mwx7n58m.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=13245@debbugs.gnu.org \
    --cc=jingtaozf@gmail.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 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.