From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Assertion failures at start Date: Sat, 14 Jun 2008 15:36:59 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1213472237 7035 80.91.229.12 (14 Jun 2008 19:37:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Jun 2008 19:37:17 +0000 (UTC) Cc: emacs-devel@gnu.org To: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 14 21:37:59 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K7bZU-0005TG-No for ged-emacs-devel@m.gmane.org; Sat, 14 Jun 2008 21:37:57 +0200 Original-Received: from localhost ([127.0.0.1]:46245 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K7bYg-00070W-KX for ged-emacs-devel@m.gmane.org; Sat, 14 Jun 2008 15:37:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K7bYb-000701-Rm for emacs-devel@gnu.org; Sat, 14 Jun 2008 15:37:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K7bYa-0006zi-Re for emacs-devel@gnu.org; Sat, 14 Jun 2008 15:37:01 -0400 Original-Received: from [199.232.76.173] (port=59877 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K7bYa-0006ze-Ng for emacs-devel@gnu.org; Sat, 14 Jun 2008 15:37:00 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:65378 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K7bYa-0001UX-Gw for emacs-devel@gnu.org; Sat, 14 Jun 2008 15:37:00 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhcFABy6U0jO+KWv/2dsb2JhbACBW6sN X-IronPort-AV: E=Sophos;i="4.27,645,1204520400"; d="scan'208";a="22554491" Original-Received: from smtp.pppoe.ca (HELO smtp.teksavvy.com) ([65.39.196.238]) by ironport2-out.teksavvy.com with ESMTP; 14 Jun 2008 15:36:59 -0400 Original-Received: from pastel.home ([206.248.165.175]) by smtp.teksavvy.com (Internet Mail Server v1.0) with ESMTP id UZY35959; Sat, 14 Jun 2008 15:36:59 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 1481D8336; Sat, 14 Jun 2008 15:36:59 -0400 (EDT) In-Reply-To: (Kenichi Handa's message of "Tue, 10 Jun 2008 13:11:14 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:99209 Archived-At: >> I get an assertion failure right at the start. After commenting out >> 2 assertions (see patch at the end), the programs starts up and runs >> fine. Are these assertions out-of-date or something? > I don't think so. Perhaps, there's a bug somewhere else. > Could you find which attribute is not specified? See the session below if I re-enable the assertion in realize_default_face. Stefan (gdb) r -Q Starting program: /home/monnier/src/emacs/cvs/trunk/src/emacs -Q [Thread debugging using libthread_db enabled] [New Thread 0xb73a2720 (LWP 20245)] [Switching to Thread 0xb73a2720 (LWP 20245)] Breakpoint 1, abort () at emacs.c:427 (gdb) up #1 0x081c502d in realize_default_face (f=0x886c918) at xfaces.c:5643 (gdb) p lface $1 = { i = 2295805648, s = { val = 148322000, type = Lisp_Vectorlike }, u = { val = 148322000, type = Lisp_Vectorlike } } (gdb) pr [face "default" "default" normal 1 normal normal nil nil "unspecified-fg" "unspecified-bg" nil nil nil nil unspecified unspecified unspecified] (gdb) bt #0 abort () at emacs.c:427 #1 0x081c502d in realize_default_face (f=0x886c918) at xfaces.c:5643 #2 0x081c41f4 in realize_basic_faces (f=0x886c918) at xfaces.c:5514 #3 0x081b6143 in recompute_basic_faces (f=0x886c918) at xfaces.c:922 #4 0x0808d091 in init_iterator (it=0xbfb9eba8, w=0x886d028, charpos=1, bytepos=1, row=0x0, base_face_id=DEFAULT_FACE_ID) at xdisp.c:2567 #5 0x080a3eb2 in resize_mini_window (w=0x886d028, exact_p=1) at xdisp.c:8543 #6 0x0806cf0b in do_switch_frame (frame= {i = 2294721144, s = {val = 147237496, type = Lisp_Vectorlike}, u = {val = 147237496, type = Lisp_Vectorlike}}, track=1, for_deletion=0) at frame.c:866 #7 0x0806dc72 in Fselect_frame (frame= {i = 2294721144, s = {val = 147237496, type = Lisp_Vectorlike}, u = {val = 147237496, type = Lisp_Vectorlike}}) at frame.c:908 #8 0x080fec71 in run_window_configuration_change_hook (f=0x8c6aa78) at window.c:3323 #9 0x08065e6b in change_frame_size_1 (f=0x8c6aa78, newheight=40, newwidth=80, pretend=1, delay=0, safe=0) at dispnew.c:6399 #10 0x08065742 in change_frame_size (f=0x8c6aa78, newheight=40, newwidth=80, pretend=1, delay=0, safe=0) at dispnew.c:6286 #11 0x081e80be in Fx_create_frame (parms= {i = 2832754592, s = {val = 148400032, type = Lisp_Cons}, u = {val = 148400032, type = Lisp_Cons}}) at xfns.c:3419 #12 0x0833e4a5 in Ffuncall (nargs=2, args=0xbfb9f2e4) at eval.c:3042 #13 0x083e0676 in Fbyte_code (bytestr= {i = 1751253088, s = {val = 140640352, type = Lisp_String}, u = {val = 140640352, type = Lisp_String}}, vector= {i = 2288124096, s = {val = 140640448, type = Lisp_Vectorlike}, u = {val = 140640448, type = Lisp_Vectorlike}}, maxdepth= {i = 4, s = {val = 4, type = Lisp_Int}, u = {val = 4, type = Lisp_Int}}) at bytecode.c:678 #14 0x0833f504 in funcall_lambda (fun= {i = 2288123956, s = {val = 140640308, type = Lisp_Vectorlike}, u = {val = 140640308, type = Lisp_Vectorlike}}, nargs=1, arg_vector=0xbfb9f604) at eval.c:3229 #15 0x0833eb24 in Ffuncall (nargs=2, args=0xbfb9f600) at eval.c:3088 #16 0x083e0676 in Fbyte_code (bytestr= {i = 1751570676, s = {val = 140957940, type = Lisp_String}, u = {val = 140957940, type = Lisp_String}}, vector= {i = 2288441728, s = {val = 140958080, type = Lisp_Vectorlike}, u = {val = 140958080, type = Lisp_Vectorlike}}, maxdepth= {i = 6, s = {val = 6, type = Lisp_Int}, u = {val = 6, type = Lisp_Int}}) at bytecode.c:678 #17 0x0833f504 in funcall_lambda (fun= {i = 2288441540, s = {val = 140957892, type = Lisp_Vectorlike}, u = {val = 140957892, type = Lisp_Vectorlike}}, nargs=1, arg_vector=0xbfb9f934) at eval.c:3229 #18 0x0833eb24 in Ffuncall (nargs=2, args=0xbfb9f930) at eval.c:3088 #19 0x083e0676 in Fbyte_code (bytestr= {i = 1751566840, s = {val = 140954104, type = Lisp_String}, u = {val = 140954104, type = Lisp_String}}, vector= {i = 2288437872, s = {val = 140954224, type = Lisp_Vectorlike}, u = {val = 140954224, type = Lisp_Vectorlike}}, maxdepth= {i = 6, s = {val = 6, type = Lisp_Int}, u = {val = 6, type = Lisp_Int}}) at bytecode.c:678 #20 0x0833f504 in funcall_lambda (fun= {i = 2288437724, s = {val = 140954076, type = Lisp_Vectorlike}, u = {val = 140954076, type = Lisp_Vectorlike}}, nargs=0, arg_vector=0xbfb9fc64) at eval.c:3229 #21 0x0833eb24 in Ffuncall (nargs=1, args=0xbfb9fc60) at eval.c:3088 #22 0x083e0676 in Fbyte_code (bytestr= {i = 1751293716, s = {val = 140680980, type = Lisp_String}, u = {val = 140680980, type = Lisp_String}}, vector= {i = 2288165520, s = {val = 140681872, type = Lisp_Vectorlike}, u = {val = 140681872, type = Lisp_Vectorlike}}, maxdepth= {i = 7, s = {val = 7, type = Lisp_Int}, u = {val = 7, type = Lisp_Int}}) at bytecode.c:678 #23 0x0833f504 in funcall_lambda (fun= {i = 2288164604, s = {val = 140680956, type = Lisp_Vectorlike}, u = {val = 140680956, type = Lisp_Vectorlike}}, nargs=0, arg_vector=0xbfb9ff94) at eval.c:3229 #24 0x0833eb24 in Ffuncall (nargs=1, args=0xbfb9ff90) at eval.c:3088 #25 0x083e0676 in Fbyte_code (bytestr= {i = 1751289604, s = {val = 140676868, type = Lisp_String}, u = {val = 140676868, type = Lisp_String}}, vector= {i = 2288160736, s = {val = 140677088, type = Lisp_Vectorlike}, u = {val = 140677088, type = Lisp_Vectorlike}}, maxdepth= {i = 6, s = {val = 6, type = Lisp_Int}, u = {val = 6, type = Lisp_Int}}) at bytecode.c:678 #26 0x0833f504 in funcall_lambda (fun= {i = 2288160492, s = {val = 140676844, type = Lisp_Vectorlike}, u = {val = 140676844, type = Lisp_Vectorlike}}, nargs=0, arg_vector=0xbfba0200) at eval.c:3229 #27 0x0833edff in apply_lambda (fun= {i = 2288160492, s = {val = 140676844, type = Lisp_Vectorlike}, u = {val = 140676844, type = Lisp_Vectorlike}}, args= {i = 679791896, s = {val = 142920984, type = Lisp_Symbol}, u = {val = 142920984, type = Lisp_Symbol}}, eval_flag=1) at eval.c:3153 #28 0x0833c7de in Feval (form= {i = 2827812424, s = {val = 143457864, type = Lisp_Cons}, u = {val = 143457864, type = Lisp_Cons}}) at eval.c:2415 #29 0x0822e278 in top_level_2 () at keyboard.c:1376 #30 0x0833990b in internal_condition_case (bfun=0x822e25d , handlers= {i = 679835024, s = {val = 142964112, type = Lisp_Symbol}, u = {val = 142964112, type = Lisp_Symbol}}, hfun=0x822dcb3 ) at eval.c:1511 #31 0x0822e2bd in top_level_1 () at keyboard.c:1384 #32 0x08339196 in internal_catch (tag= {i = 679831008, s = {val = 142960096, type = Lisp_Symbol}, u = {val = 142960096, type = Lisp_Symbol}}, func=0x822e284 , arg= {i = 679791896, s = {val = 142920984, type = Lisp_Symbol}, u = {val = 142920984, type = Lisp_Symbol}}) at eval.c:1247 #33 0x0822e1b3 in command_loop () at keyboard.c:1339 #34 0x0822d315 in recursive_edit_1 () at keyboard.c:955 #35 0x0822d88a in Frecursive_edit () at keyboard.c:1017 #36 0x0822b3cf in main (argc=2, argv=0xbfba0a64) at emacs.c:1772 Lisp Backtrace: "x-create-frame" (0xbfb9f2e8) "x-create-frame-with-faces" (0xbfb9f604) "make-frame" (0xbfb9f934) "frame-initialize" (0xbfb9fc64) "command-line" (0xbfb9ff94) "normal-top-level" (0xbfba0200) (gdb)