From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jake Goulding Newsgroups: gmane.emacs.bugs Subject: bug#30320: 26.0.91; Crash when using lsp-ui-doc-mode Date: Sun, 4 Feb 2018 16:08:37 -0500 Message-ID: References: <83po5oeil8.fsf@gnu.org> <83a7wrer8i.fsf@gnu.org> <5A757B30.9070402@gmx.at> <83y3ka9gmg.fsf@gnu.org> <83mv0pal74.fsf@gnu.org> <83y3k88ux5.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1517778484 17205 195.159.176.226 (4 Feb 2018 21:08:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 4 Feb 2018 21:08:04 +0000 (UTC) To: 30320@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 04 22:08:00 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eiRVm-00032o-25 for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Feb 2018 22:07:42 +0100 Original-Received: from localhost ([::1]:39776 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eiRXl-0001oE-LY for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Feb 2018 16:09:45 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60215) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eiRX7-0001Lg-9d for bug-gnu-emacs@gnu.org; Sun, 04 Feb 2018 16:09:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eiRX4-00082E-3Y for bug-gnu-emacs@gnu.org; Sun, 04 Feb 2018 16:09:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49495) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eiRX3-00081g-Ut for bug-gnu-emacs@gnu.org; Sun, 04 Feb 2018 16:09:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eiRX3-0001uS-Pc for bug-gnu-emacs@gnu.org; Sun, 04 Feb 2018 16:09:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jake Goulding Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Feb 2018 21:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30320 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30320-submit@debbugs.gnu.org id=B30320.15177785277320 (code B ref 30320); Sun, 04 Feb 2018 21:09:01 +0000 Original-Received: (at 30320) by debbugs.gnu.org; 4 Feb 2018 21:08:47 +0000 Original-Received: from localhost ([127.0.0.1]:57392 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eiRWn-0001ty-EV for submit@debbugs.gnu.org; Sun, 04 Feb 2018 16:08:47 -0500 Original-Received: from mail-oi0-f41.google.com ([209.85.218.41]:44269) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eiRWl-0001th-Mx for 30320@debbugs.gnu.org; Sun, 04 Feb 2018 16:08:44 -0500 Original-Received: by mail-oi0-f41.google.com with SMTP id b3so16940489oib.11 for <30320@debbugs.gnu.org>; Sun, 04 Feb 2018 13:08:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=xRVxN7GPPWQFJGaG4jMEun/OOG2abLzaVOZAjg6dqbU=; b=PwW8mNaDvCFHyhWdkKcsyzmhP79dxoofK34g/o6/IaLv7kG0BInLNGcXgbqE71aOjd GOu5/cywQBH0YfdrY9BxVkjxmIWW5003JclA1YOgx6kbanReiy0hRdc4oyBE8YZMnpz/ 6QnlzwO2qLWoK6aPSAQLdh+ET+IggMSZUhUkA2M7+Tw4oOdqVdQWG0+UrE89BE6siFLQ 2p2/PWe8Wl66E41Iinz+rH6YYbiGLq5M4kSbTdRgrMKka4NaMEKGe5PfjwGsicswBZNw ohDDlzXHBgLE5STN5Wdsvaze1vEtW4+gi5vK2ILSDOH305IcoMhkJG1nRVbvqJrABrnn jRMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=xRVxN7GPPWQFJGaG4jMEun/OOG2abLzaVOZAjg6dqbU=; b=gvvlwGQLXEDNVxPeZeEl6qjYazfRNWdqi6lE6SI/cxyURG94csj7/q7FyV8V3h5TTQ rTvGG1sPvZWkUksuXQJlSXvXFiwmYt2CIQ2/qnHZi+qiVOrWpzhqz5YDaZRrJ0CdD9/9 R9ODl0bs9TVr0rqMj4T+PJ4dbLyQR1dte3Y31m9jisPGa3o1rYhFDeW05jVqa6LSwZAk VZKmZfjQEnqMV58WeFDJVi7BaLMqvaptSBvhW+uMVbQQ95z0kPsp8bTPNKIS2vJHdFra cLoExDIetafphmNVR6xYl/+x8aksZPMswj0UfVZNrwCQOKh1WFSgWZRyFFmj+SjeWi8r R8ig== X-Gm-Message-State: AKwxytd1/RTnaDtch1lQ8PXnIf4dxFnswukLeKLxlug8RDXON+EU6/Co oCmSA8BFRQAGfEKqO4qQptMyPWpgllevjT+sn3S0cQ== X-Google-Smtp-Source: AH8x224S+pUx6QuAq11zeR6MLSNfs5QHJl1WJSc0E28/vrInodHXY3DeqJWoQ24t+amT+/+MdDJe3S7i/E5XqKnKG54= X-Received: by 10.202.0.200 with SMTP id 191mr31137683oia.206.1517778517964; Sun, 04 Feb 2018 13:08:37 -0800 (PST) Original-Received: by 10.157.60.238 with HTTP; Sun, 4 Feb 2018 13:08:37 -0800 (PST) In-Reply-To: <83y3k88ux5.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:142907 Archived-At: > the first > element of the args[] array passed to Ffuncall is the symbol of the > function that is being called. To display the name of that symbol, > you will have to emulate by hand what the xsymbol command, defined on > .gdbinit, does. I cannot find a way to just use the GDB `define`d helpers in LLDB, so it looks like I need to re-create them. Unfortunately, I'm getting values that don't make sense; I'm sure I'm not translating something correctly but it's not obvious what: (lldb) frame info frame #36: 0x00000001002e4105 Emacs`Ffuncall(nargs=3, args=0x00007ffeefbfb610) at eval.c:2768 (lldb) p args (Lisp_Object *) $76 = 0x00007ffeefbfb610 (lldb) p args[0] (Lisp_Object) $77 = 48784336 # Attempting equivalent to `xgetptr` (lldb) p args[0] & VALMASK (long) $78 = 48784336 # Attempting equivalent to `xgetsym` (lldb) p ((struct Lisp_Symbol *) ((char *)lispsym + (args[0] & VALMASK))) (struct Lisp_Symbol *) $79 = 0x0000000110340d80 (lldb) p *((struct Lisp_Symbol *) ((char *)lispsym + (args[0] & VALMASK))) error: Couldn't apply expression side effects : Couldn't dematerialize a result variable: couldn't read its memory For reference, here are the GDB definitions I see in src/.gdbinit define xgetptr if (CHECK_LISP_OBJECT_TYPE) set $bugfix = $arg0.i else set $bugfix = $arg0 end set $ptr = $bugfix & VALMASK end define xgetsym xgetptr $arg0 set $ptr = ((struct Lisp_Symbol *) ((char *)lispsym + $ptr)) end define xsymbol set $sym = $ xgetsym $sym print (struct Lisp_Symbol *) $ptr xprintsym $sym echo \n end And the value of VALMASK: (lldb) p VALMASK (EMACS_INT) $83 = -8