From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.help Subject: Re: Help debugging a backtrace Date: Fri, 29 Apr 2016 22:56:52 +0000 Message-ID: References: <87wpniyiy6.fsf@gmail.com> <87mvoccdht.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1461970681 11808 80.91.229.3 (29 Apr 2016 22:58:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Apr 2016 22:58:01 +0000 (UTC) To: Michael Heerdegen , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 30 00:58:01 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1awHMF-0000pD-0C for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Apr 2016 00:57:59 +0200 Original-Received: from localhost ([::1]:56715 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awHMB-00058W-95 for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Apr 2016 18:57:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37125) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awHLr-0004lx-2B for help-gnu-emacs@gnu.org; Fri, 29 Apr 2016 18:57:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1awHLe-00014P-5I for help-gnu-emacs@gnu.org; Fri, 29 Apr 2016 18:57:29 -0400 Original-Received: from mail-ob0-x235.google.com ([2607:f8b0:4003:c01::235]:33045) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awHLc-0000rq-SP for help-gnu-emacs@gnu.org; Fri, 29 Apr 2016 18:57:22 -0400 Original-Received: by mail-ob0-x235.google.com with SMTP id x1so39447574obt.0 for ; Fri, 29 Apr 2016 15:57:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=55WypO8e21HlQqFvuebNLbNxVs+KfL51dHvVf/EGJlA=; b=tOL0XlpFepSe7CsTChaHdtmNaD17fsUrQu0t+y5pipbTGM9JO6AmuXI0H8q5HKpnY2 kXmVqpNYxRnHQyxnEVeRcWZ6leRROshT458z+ECLc+1dEZH+D6e+C5QBDvVbugOikqnm xKw/x/wIP++/28MDlNQL1JIXe8GaVHcN4eUroRQA7361iV0zt4MIatNWzFcVfGcZ/l7Z ZqbZvGyo4019k1RZM2eVf5n2DDXmUOWfO8Hj1fUXj7Y2I+7trvjGYvbS7O86lxUtbzDb O7raIAV1j8+bHv3CBsbZChWNwzuOEXVishp0V69YAfKHSREFSozuPHOLjrZHJl3FRiWN nusQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=55WypO8e21HlQqFvuebNLbNxVs+KfL51dHvVf/EGJlA=; b=StZ3VUfq4uJLMGmEyCo2Vxx/0b7nTPuTB39GSePEc7mGJqVOa5sRcxFnZFbHHb9tGL ki9qq7NDXhlvQU0Fe1wFkO6uQ3SRHCf2h2GWknE+VNdfwBPJkMXFJL01J0BsVGLJzSPZ a+UiQ1jlk7r5CYGgHX/RE2783fHywVrmkRc7G0oFspvxyZONUnboBG9Y9vixpcebqZr7 vC+HvqH8AyfppBnbeUf/c5T1kiinL1VfMjFIWisKXjfAkVYxLaiSpPnFNm/K/ReN5Wo0 g7PfLd9JZ4aDXuR1XyBRG/8qLHKWhhvbHUKfqDAZshcDHGjVQArTbNlm6nMCAMLZhl6l +mMg== X-Gm-Message-State: AOPr4FVeo/l3tZBHEc6G24SvjZ7ubtHpdUvEpAPDZU8kTrrrcy/ZRGXozhtb04y3cjmh6AcfzrjC6T4imXEzBg== X-Received: by 10.182.66.116 with SMTP id e20mr10525183obt.42.1461970623039; Fri, 29 Apr 2016 15:57:03 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4003:c01::235 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:109841 Archived-At: Thanks for this tip: *BTW, `load-history' is in chronological order, the position of thefaulty entry in the list might give some hints as well.* The problem is not yet resolved, but looks like I made some debug progress. If I launch emacs with my config, this problem exists (of course). *But if I launch "emacs -Q" or "emacs -q" and then evaluate my init.el, this problem goes away.* Below is a part of load-history value after I started emacs with all my config commented out except for the package requiring part. Looks like something is messed up in emacs autoloading? - lisp/thingatpt/elc is loaded - Then lisp/help-fns.elc is loaded - Then something is loaded that tries to require finder-inf - Then lisp/term/xterm.elc is loaded *Where can I find the order of where these inbuilt packages are loaded? >From what I see, that order is not alphabetical.* Value: (( *"/data/data/com.termux/files/usr/share/emacs/25.0.93/lisp/thingatpt.elc"* (provide . thingatpt) (t . forward-thing) (defun . forward-thing) (t . bounds-of-thing-at-point) < -- snip --> (defun . sexp-at-point) (t . symbol-at-point) (defun . symbol-at-point) (t . number-at-point) (defun . number-at-point) (t . list-at-point) (defun . list-at-point)) (*"/data/data/com.termux/files/usr/share/emacs/25.0.93/lisp/help-fns.elc"* (require . cl-lib) (require . help-mode) help-fns-describe-function-functions describe-function-orig-buffer (t . describe-function) (defun . describe-function) < -- snip --> (defun . describe-syntax) (defun . help-describe-category-set) (t . describe-categories) (defun . describe-categories) (t . doc-file-to-man) (defun . doc-file-to-man) (t . doc-file-to-info) (defun . doc-file-to-info) (provide . help-fns)) * ((require . finder-inf)) ; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<* (*"/data/data/com.termux/files/usr/share/emacs/25.0.93/lisp/term/xterm.elc"* xterm--extra-capabilities-type xterm-extra-capabilities xterm-extra-capabilities xterm-max-cut-length xterm-max-cut-length xterm-paste-ending-sequence (defun . xterm-paste) xterm-rxvt-function-map xterm-function-map xterm-alternatives-map xterm-standard-colors (defun . xterm--report-background-handler) (defun . xterm--version-handler) xterm-query-timeout (defun . xterm--query) (defun . xterm--push-map) On Fri, Apr 29, 2016 at 5:36 PM Kaushal Modi wrote: > Looking for some code that `require's finder-inf would be a start. >> > > There's no occurrence of (require 'finder-inf) in my ~/.emacs.d/ (so that > includes the installed packages too). I had one package help-fns+ that had > that. So I uninstalled that, and I still get this error. > > Then the only occurrences of that form are in the emacs elisp source code: > > lisp/emacs-lisp/package.el > 629: (require 'finder-inf nil t) ; For `package--builtins'. > 1295: (require 'finder-inf nil t) > 2167: (require 'finder-inf nil t) > 3356: (require 'finder-inf nil t) > 3394: (require 'finder-inf nil t) > > lisp/finder.el > 36:(require 'finder-inf nil t) > > test/automated/package-test.el > 404: (require 'finder-inf) > > That makes sense because that error shows up after I (require 'package). > But that does not explain why the same is fine on my linux machine but not > on my phone. What dependencies could be missing on my phone's build that's > causing this. > > Here is the build info for emacs built for Termux: > > Emacs version: GNU Emacs 25.0.93 (aarch64-unknown-linux-android) > of 2016-04-29, built using commit . > > ./configure options: > --disable-dependency-tracking --prefix=/data/data/com.termux/files/usr > --disable-rpath --disable-rpath-hack --host=aarch64-linux-android > --without-x --with-xpm=no --with-jpeg=no --with-png=no --with-gif=no > --with-tiff=no --without-gconf --without-gsettings --with-gnutls > --with-xml2 emacs_cv_sanitize_address=yes emacs_cv_prog_cc_nopie=no > --disable-nls --enable-shared --disable-static > --libexecdir=/data/data/com.termux/files/usr/libexec > 'CFLAGS=-specs=/home/fornwall/dc/termux.spec -Os' > CPPFLAGS=-I/data/data/com.termux/files/usr/include > 'LDFLAGS=-specs=/home/fornwall/dc/termux.spec > -L/data/data/com.termux/files/usr/lib > -Wl,-rpath-link,/data/data/com.termux/files/usr/lib > -Wl,-rpath-link,/home/fornwall/lib/android-standalone-toolchain-aarch64-api21-gcc4.9/sysroot/usr/lib' > > Features: > NOTIFY GNUTLS LIBXML2 ZLIB > > Does that ./configure have any red flags? > > >> BTW, `load-history' is in chronological order, the position of the >> faulty entry in the list might give some hints as well. >> > > I know that the problem occurs as soon as I require package, even before I do > package-initialize or require any of my installed packages (I commented > out everything in my config after requiring package). If I comment out even > the (require 'package), which means that my config is as good as emacs -Q, > this problem goes away. > > So debugging this seems to be out of reach of my basic elisp debugging fu. > -- > > -- > Kaushal Modi > -- -- Kaushal Modi