From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#1077: bug#670: bug#1077: 23.0.60; x-create-frame: (wrong-type-argument number-or-marker-p nil) Date: Sun, 28 Nov 2010 02:21:32 -0500 Message-ID: References: <003e01c9257c$a385d800$0200a8c0@us.oracle.com> <009701c9263f$9cce7120$0200a8c0@us.oracle.com> <000001c94cc1$e10e9c40$0200a8c0@us.oracle.com> <8F1F8998D60341099C4204B7BDD8AD4F@us.oracle.com> <96BC00F728B94AC18A15EA95B66C5248@us.oracle.com> <83zksv5g7j.fsf@gnu.org> <0A475933984F4CDA855D91C8B7639E3B@us.oracle.com> <83fwum5xzk.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1290930306 13387 80.91.229.12 (28 Nov 2010 07:45:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 28 Nov 2010 07:45:06 +0000 (UTC) Cc: 1077@debbugs.gnu.org To: "Drew Adams" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 28 08:45:01 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PMbwS-0002gw-HE for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Nov 2010 08:45:01 +0100 Original-Received: from localhost ([127.0.0.1]:47930 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PMbwR-0001pF-TB for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Nov 2010 02:44:59 -0500 Original-Received: from [140.186.70.92] (port=37435 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PMbwN-0001p7-1m for bug-gnu-emacs@gnu.org; Sun, 28 Nov 2010 02:44:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PMbwL-0003u0-KE for bug-gnu-emacs@gnu.org; Sun, 28 Nov 2010 02:44:54 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41047) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PMbwL-0003tu-IT for bug-gnu-emacs@gnu.org; Sun, 28 Nov 2010 02:44:53 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PMbVO-0005Iv-E8; Sun, 28 Nov 2010 02:17:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Nov 2010 07:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 1077 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 1077-submit@debbugs.gnu.org id=B1077.129092856620322 (code B ref 1077); Sun, 28 Nov 2010 07:17:02 +0000 Original-Received: (at 1077) by debbugs.gnu.org; 28 Nov 2010 07:16:06 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PMbUT-0005Hj-MF for submit@debbugs.gnu.org; Sun, 28 Nov 2010 02:16:05 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PMbUS-0005HH-BI for 1077@debbugs.gnu.org; Sun, 28 Nov 2010 02:16:05 -0500 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1PMbZk-00012j-Cm; Sun, 28 Nov 2010 02:21:32 -0500 In-reply-to: (drew.adams@oracle.com) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 28 Nov 2010 02:17:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:41945 Archived-At: > From: "Drew Adams" > Cc: <1077@debbugs.gnu.org> > Date: Sat, 27 Nov 2010 15:32:49 -0800 > > (Note: there is a reproducible recipe from emacs -Q at the end.) Thanks. I tried it, but couldn't reproduce the problem. Details below. > No, I cannot install GDB, but if you point me to a Windows binary for it I will > be glad to try that. Installing a Windows binary is what I meant. You can find it here: http://sourceforge.net/projects/mingw/files/MinGW/BaseSystem/GDB/GDB-7.2/gdb-7.2-1-mingw32-bin.tar.lzma/download Let me know once you have it installed. > (I also get multiple crashes per day for the latest dev builds It would be good to know a recipe for that. If that's impossible, perhaps after installing GDB you will be able to provide more info. > why does the question asking whether I want to debug with GDB have > `Yes' as the default value if I don't have GDB installed? Because it doesn't check whether GDB is available. Feel free to submit a bug report about that. > That obliges users to pick up the mouse and click `No' instead of > just hitting RET. Can't you do that with arrow keys? > If you try to answer `Yes' you just get into trouble: That provokes > a Microsoft error, letting you send lots of interesting info to MS > for `GNU Emacs: The extensible self-documenting text editor'. I.e., > `Yes' => `Send Error Report' or `Don't Send'.) That's the default Windows GIT debugger in action. You can download and install DrMinGW, a JIT debugger that knows about MinGW, from here: http://code.google.com/p/jrfonseca/wiki/DrMingw and then, if you answer NO, you will get a meaningful C-level backtrace that you can save to a text file and attach to a mail message. > I guess you're speaking for yourself. So I guess you already checked the > possible places in that code where a `>' comparison is made, and could not see > how any of them could end up trying to compare a nil arg. There are too many possibilities, and I couldn't easily figure out which one of the possible code paths would be taken by x-create-frame in your setup. Some of them call Lisp, but I couldn't find any calls to < from the functions thus called, probably because I didn't look in the right places. > I tried that (looking at all occurrences of `>' in w32fns.c). If the problem is > really in that file (it isn't necessarily), then maybe one of the following > lines is where the error gets raised. (I'm using the C source code from the > 23.2 release.) No, C code cannot signal a Lisp error from native C comparisons with < or >. It must be some Lisp code, called directly or indirectly by x-create-frame. > runemacs.exe -Q --debug-init -l "hexrgb.el" -l "oneonone.el" -f "1on1-emacs" > > 3. M-: (add-to-list 'load-path ".") > > 4. M-x load-library icicles > > 5. M-x icy-mode > > 6. M-: (setq debug-on-error t) > > 7. C-h f f o r w TAB down down C-M-down What is C-M-down? On my Windows box I don't get any key event if I press and hold Alt+Ctrl and type the down-arrow key. Do you have some non-default keyboard setup? I used ESC C-down instead, is that the right key? does ESC C-down trigger the bug on your machine? Anyway, on my machine, with stock Emacs 23.2, I get a Lisp backtrace, but a different one: Debugger entered--Lisp error: (scan-error "Unbalanced parentheses" 31 32) scan-lists(28 1 -1) down-list(1) call-interactively(down-list nil nil) [...] <<<<<<<<<<<<<<<<<< few levels omitted here (setq val (completing-read (if fn ... "Describe function: ") obarray (quote fboundp) t nil nil (and fn ...))) (let ((fn ...) (enable-recursive-minibuffers t) val) (setq val (completing-read ... obarray ... t nil nil ...)) (list (if ... fn ...))) call-interactively(describe-function nil nil) > That should be enough to bring up the backtrace. Well, it doesn't for me, unfortunately. I tried both Emacs 23.2 and a recent build of 24.0.50, with the same result: I get the error about unbalanced parentheses. Are you sure that the exact Lisp files downloaded from the links you posted reproduce the problem on your machine? Maybe you have modified versions of them.