help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help debugging a backtrace


From: Kaushal Modi
Subject: Re: Help debugging a backtrace
Date: Fri, 29 Apr 2016 22:56:52 +0000

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 <address@hidden> 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]