unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: emacs-devel@gnu.org
Subject: segfault with wubi library
Date: Thu, 22 Aug 2013 10:00:22 +0800	[thread overview]
Message-ID: <8761uyxz61.fsf@ericabrahamsen.net> (raw)

I've got two version of emacs on my machine -- one is the Arch package,
version 24.3-4, and the other is a git checkout (at 0e2a4d5b53b15a9).
I'm also using this wubi library, an input method for Chinese.
(http://www.emacswiki.org/emacs/WritingChineseWithWuBi)

One of the wubi functions lets you define your own phrases and put them
in a local file, to be read on startup. Currently, the Arch emacs
version reads this file fine, but the git version segfaults.

The file is a single sexp that looks like this:

(wubi-batch-add nil
"派出所"
"工期"
.....
)

There are almost thirteen thousand phrase lines in there.
`wubi-batch-add' calls `wubi-add' for each phrase, which calls
`quail-defrule-internal'. I've stepped through `wubi-add' with edebug,
and the rules are added fine (as far as I had patience to go), but if I
hit `q' to escape the tracing, emacs segfaults. It also segfaults if I
just try to read the file normally. I see this on the console:

Fatal error 11: Segmentation fault
Backtrace:
emacs[0x812e343]
emacs[0x8115a71]
.....
linux-gate.so.1(__kernel_sigreturn+0x0)[0xb7fdd400]
/usr/lib/libc.so.6(cfree+0x26)[0xb6788fa6]
emacs[0x816a29b]
emacs[0x8183837]
.....
Segmentation fault (core dumped)

Should I report this directly as a bug, and is this enough information
to go on?

Thanks!
Eric




                 reply	other threads:[~2013-08-22  2:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=8761uyxz61.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --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 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).