unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Liang Wang <netcasper@gmail.com>
To: emacs-devel@gnu.org
Subject: crash on MacOSX
Date: Sat, 18 Aug 2012 12:35:59 +0800	[thread overview]
Message-ID: <CAO+NnCbvM09wd_B5zfhXDuNeaN0Tf=j43phd+RfqKKWPOM_h+A@mail.gmail.com> (raw)

Hi,

I build latest trunk (--with-ns) on Mac OS X 10.7.4 but it fails to start.

Error message is

~/src/emacs/trunk$ ./nextstep/Emacs.app/Contents/MacOS/Emacs -Q
Arithmetic error

Here is backtrace.

~/src/emacs/trunk$ gdb --args ./nextstep/Emacs.app/Contents/MacOS/Emacs -Q
GNU gdb 6.3.50-20050815 (Apple version gdb-1708) (Thu Nov  3 21:59:02 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for
shared libraries .......... done

(gdb) r
Starting program:
/Users/wangliang/src/emacs/trunk/nextstep/Emacs.app/Contents/MacOS/Emacs
-Q
Reading symbols for shared libraries
+++++++++.............................................................................................................................
done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done

Program received signal EXC_ARITHMETIC, Arithmetic exception.
0x0000000100178c2f in compute_fringe_widths (f=0x102844460, redraw=1)
at fringe.c:1361
1361	      int cols = (left_wid + right_wid + font_wid-1) / font_wid;
(gdb) p font_wid
$1 = 0
(gdb) bt
#0  0x0000000100178c2f in compute_fringe_widths (f=0x102844460,
redraw=1) at fringe.c:1361
#1  0x0000000100193b12 in x_new_font (f=0x102844460, font_object=0,
fontset=15) at nsterm.m:6740
#2  0x0000000100012ea6 in x_set_font (f=0x102844460, arg=4317066305,
oldval=4320145466) at frame.c:3255
#3  0x00000001000133ca in x_set_frame_parameters (f=0x7fff5fbfead0,
alist=0) at frame.c:2845
#4  0x0000000100013b9f in x_default_parameter (f=0x102844460, alist=0,
prop=4370524474, deflt=4317066049, xprop=0x8 <Address 0x8 out of
bounds>, xclass=0x0, type=RES_TYPE_STRING) at frame.c:3900
#5  0x0000000100196940 in Fx_create_frame (parms=4374394230) at nsfns.m:1258
#6  0x000000010011a053 in Ffuncall (nargs=4337189984,
args=0x10011a20c) at eval.c:2823
#7  0x0000000100153688 in exec_byte_code (bytestr=15,
vector=140734799801600, maxdepth=48, args_template=4296357589,
nargs=4300727136, args=0x1004f2cc0) at bytecode.c:898
#8  0x000000010011cc42 in funcall_lambda (fun=140734799801696,
nargs=1, arg_vector=0x7fff5fbfed60) at eval.c:3055
#9  0x000000010011a137 in Ffuncall (nargs=2, args=0x1048cebba) at eval.c:2872
#10 0x0000000100153688 in exec_byte_code (bytestr=15,
vector=140734799802000, maxdepth=48, args_template=4299696432,
nargs=4300727136, args=0x1004f2cc0) at bytecode.c:898
#11 0x000000010011cc42 in funcall_lambda (fun=140734799802096,
nargs=1, arg_vector=0x7fff5fbfeef0) at eval.c:3055
#12 0x000000010011a137 in Ffuncall (nargs=2, args=0x1048d4ada) at eval.c:2872
#13 0x0000000100153688 in exec_byte_code (bytestr=15,
vector=140734799802416, maxdepth=64, args_template=4296367232,
nargs=4300727136, args=0x1004f2cc0) at bytecode.c:898
#14 0x000000010011cc42 in funcall_lambda (fun=140734799802512,
nargs=0, arg_vector=0x7fff5fbff090) at eval.c:3055
#15 0x000000010011a137 in Ffuncall (nargs=2, args=0x104863f6a) at eval.c:2872
#16 0x0000000100153688 in exec_byte_code (bytestr=15,
vector=140734799802928, maxdepth=0, args_template=4299928947,
nargs=4300727136, args=0x1004f2cc0) at bytecode.c:898
#17 0x000000010011a137 in Ffuncall (nargs=1, args=0x104863cfa) at eval.c:2872
#18 0x0000000100153688 in exec_byte_code (bytestr=15,
vector=140734799803264, maxdepth=0, args_template=4299931194,
nargs=4300727136, args=0x1004f2cc0) at bytecode.c:898
#19 0x000000010011c2e2 in apply_lambda (fun=140734799803360, args=0)
at eval.c:2932
#20 0x000000010011be74 in eval_sub (form=4297634341) at eval.c:2204
#21 0x000000010011992d in Feval (form=4370601462, lexical=4297634429)
at eval.c:2021
#22 0x000000010011d536 in internal_condition_case (bfun=0x1000a9d50
<top_level_2>, handlers=4320212330, hfun=0x1000b4f40 <cmd_error>) at
eval.c:1308
#23 0x00000001000b53ab in top_level_1 (ignore=4297634341) at keyboard.c:1221
#24 0x000000010011d63b in internal_catch (tag=4297634341,
func=0x1000b5370 <top_level_1>, arg=4297634341) at eval.c:1065
#25 0x00000001000b54c2 in command_loop [inlined] () at
/Users/wangliang/src/emacs/trunk/src/keyboard.c:1176
#26 0x00000001000b54c2 in recursive_edit_1 () at keyboard.c:804
#27 0x00000001000a590d in Frecursive_edit () at keyboard.c:868
#28 0x00000001000a256a in main (argc=25241098, argv=0x7fff5fbff920) at
emacs.c:1666
(gdb)



             reply	other threads:[~2012-08-18  4:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-18  4:35 Liang Wang [this message]
2012-08-18 10:33 ` crash on MacOSX Liang Wang
2012-08-18 11:33   ` Eli Zaretskii
2012-08-18 12:00     ` Liang Wang
2012-08-19  1:40       ` Alp Aker
2012-08-19  3:13         ` Liang Wang
     [not found]       ` <CACxch4qke-OGqER@mail.gmail.com>
2012-08-20 16:37         ` Adrian Robert
2012-08-18 12:32 ` Liang Wang

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='CAO+NnCbvM09wd_B5zfhXDuNeaN0Tf=j43phd+RfqKKWPOM_h+A@mail.gmail.com' \
    --to=netcasper@gmail.com \
    --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).