From: Ben Key <bkey76@gmail.com>
To: 8437@debbugs.gnu.org
Subject: bug#8437: Emacs crash when building with --enable-checking on Mac OS X
Date: Wed, 6 Apr 2011 21:37:42 -0500 [thread overview]
Message-ID: <BANLkTi=yuAdsT3BWBYTgb-JT7pscUXNajQ@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2413 bytes --]
When Emacs is configured with --enable-checking=xmallocoverrun on Mac OS X,
Emacs crashes during the build process. The error is as follows.
temacs(20348,0x7fff70e01ca0) malloc: *** error for object 0x10076c010:
Non-aligned pointer being freed (2)
*** set a breakpoint in malloc_error_break to debug
/bin/sh: line 1: 20348 Abort trap `/bin/pwd`/temacs --batch
--load loadup bootstrap
make[1]: *** [bootstrap-emacs] Error 1
Note that I set attempted to debug the problem with gdb. I set a breakpoint
in malloc_error_break as directed by the error message. The resulting
backtrace is as follows.
#0 0x00007fff86eed779 in malloc_error_break ()
#1 0x00007fff86eee8d0 in szone_error ()
#2 0x000000010020205a in unexec_free (ptr=0x10076c018) at unexmacosx.c:1384
#3 0x0000000100091387 in Fclear_charset_maps () at charset.c:2141
#4 0x00000001001a4b7a in eval_sub (form=4337996870) at eval.c:2360
#5 0x00000001001d7241 in readevalloop (readcharfun=4320321402,
stream=0x7fff70e03f40, sourcename=4320479449, printflag=0,
unibyte=4320145482, readfun=4320145482, start=4320145482, end=4320145482) at
lread.c:1806
#6 0x00000001001d5722 in Fload (file=4320479193, noerror=4320145482,
nomessage=4320145482, nosuffix=4320145482, must_suffix=4320145482) at
lread.c:1284
#7 0x00000001001a4c5a in eval_sub (form=4320150710) at eval.c:2377
#8 0x00000001001a439b in Feval (form=4320150710, lexical=4320145482) at
eval.c:2213
#9 0x00000001000f06c1 in top_level_2 () at keyboard.c:1137
#10 0x00000001001a2a83 in internal_condition_case (bfun=0x1000f06a0
<top_level_2>, handlers=4320211690, hfun=0x1000f0169 <cmd_error>) at
eval.c:1491
#11 0x00000001000f0709 in top_level_1 (ignore=4320145482) at keyboard.c:1145
#12 0x00000001001a23b1 in internal_catch (tag=4320206362, func=0x1000f06c3
<top_level_1>, arg=4320145482) at eval.c:1238
#13 0x00000001000f0603 in command_loop () at keyboard.c:1100
#14 0x00000001000efbf1 in recursive_edit_1 () at keyboard.c:730
#15 0x00000001000efded in Frecursive_edit () at keyboard.c:792
#16 0x00000001000edd46 in main (argc=5, argv=0x7fff5fbff9c8) at emacs.c:1685
Steps to reproduce:
1. Configure Emacs using the following command on Mac OS X.
./configure --enable-checking=xmallocoverrun --with-ns CFLAGS='-g3 -O0'
2. Build Emacs using the following command.
make install
3. Emacs crashes when " `/bin/pwd`/temacs --batch --load loadup bootstrap"
is called.
[-- Attachment #2: Type: text/html, Size: 2615 bytes --]
next reply other threads:[~2011-04-07 2:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-07 2:37 Ben Key [this message]
2011-04-07 7:31 ` bug#8437: Emacs crash when building with --enable-checking on Mac OS X Eli Zaretskii
2011-04-12 6:17 ` Ben Key
2011-04-12 10:24 ` Andreas Schwab
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='BANLkTi=yuAdsT3BWBYTgb-JT7pscUXNajQ@mail.gmail.com' \
--to=bkey76@gmail.com \
--cc=8437@debbugs.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.