Package: anything-el
Version: 1.287-2.1
Severity: critical

Problem description
-------------------
If for some unknown reason an emacs file lock of the file 
`~/.emacsd/anything-c-adaptive-history` existing, batch
operation of emacs will never be finished.


Reproducing the lock issue
--------------------------
I don't know what has cause the stale lock on my machine, but it can be easily 
recreated as described below.

    ```
    pkill emacs # ensure that emacs is not running
    cd /root/.emacs.d
    ln -s  ${USER}@${HOSTNAME}.${DOMAIN}.5423:1487632643 
.#anything-c-adaptive-history
    ```

Resulting problems
-------------------

Now start emacs. Everything seems to be fine, but on quitting emacs you will 
see the question concerning the lock
waiting for any user input.

This seems in normal cases a minor malaise, but the impact if emacs is used for 
batch processing.
Please try the following with and without the stale lock.
    `emacs  --no-init-file --batch`

Without the stale lock this command will finish after a short time.
With the lock, you will see the following output:

> Loading 00debian-vars...
> Loading 20apel...
> Loading 50a2ps...
> Loading 50anything-el...
> Loading 50auctex...
> Loading /usr/share/emacs/site-lisp/auctex.el (source)...
> Loading /usr/share/emacs/site-lisp/preview-latex.el (source)...
> Loading 50auto-complete-el...
> Loading 50auto-install-el...
> Loading 50autoconf...
> Loading 50develock-el...
> Loading 50devscripts-el...
> Loading 50dictionaries-common...
> Loading debian-ispell...
> Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)...
> Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...
> Loading 50dictionary-el...
> Loading dictionary-init...
> Loading 50dpkg-dev-el...
> Loading 50emacs-goodies-el...
> Loading 50erlang-mode...
> Loading 50flim...
> Loading 50gnuplot-mode...
> Loading 50oneliner-el...
> Loading 50org-mode...
> Loading 50php-elisp...
> Loading 50psvn...
> Loading 50pymacs...
> Loading 50python-docutils...
> Loading 50python-mode...
> Loading 50texlive-lang-english...
> Loading 51debian-el...
> Loading 51mu-cite...
> Loading 51oneliner-el...
> Loading 51semi...
> Loading 65wl-beta...
> Loading 95c42_defaults (compiled; note, source file is newer)...
> Loading log-edit...
> Trailing whitespace highlighting is now ON.
> TAB highlighting is now ON.
> Loading /home/dschmi/.recentf...
> Cleaning up the recentf list...
> Cleaning up the recentf list...done (0 removed)
> Loading /usr/local/share/emacs/site-lisp/ob-eukleides.el (source)...
> Loading /home/dschmi/.emacs.d/anything-c-adaptive-history...
> [yas] Prepared just-in-time loading of snippets successfully.
> Loading systemd...
> Loading crontab-mode...
> Loading json-mode...
> Loading ldap-mode...
> Loading nagios-mode...
> Loading org-journal...
> Loading 99c42_keymap...
> Local Ispell dictionary set to british
> Starting new Ispell process aspell with british dictionary...
> ...ing-c-adaptive-history locked by xxxxxx@xxxxxx... (pid 5423): (s, q, p, ?)?

At this point the emacs is hanging.
Trying to answer the „lock“ prompt is not possible. You have to terminate the 
processing *SIGINT* (Ctrl+C) or killing it.


Why is this bug critical?
-------------------------

This bug report is related to bug #886024 – which describes how an unexpected 
problem like this renders debian package
installation unusable.



Further information
-------------------
As requested by da...@tethera.net:
- /etc/emacs/site-start.d/50anything-el.el is not touched – the .deb 
distributed file is in charge.
- `ls -l  /etc/emacs/site-start.d/`
    > -rw-r--r-- 1 root root 1.8K May 21  2014 00debian-vars.el
    > -rw-r--r-- 1 root root 1.6K Apr  4  2014 50a2ps.el
    > -rw-r--r-- 1 root root 1021 Oct 24  2014 50anything-el.el
    > -rw-r--r-- 1 root root 1.3K Nov 19  2015 50auctex.el
    > -rw-r--r-- 1 root root  891 Mar 28  2012 50auto-complete-el.el
    > -rw-r--r-- 1 root root  729 Apr 28  2012 50autoconf.el
    > -rw-r--r-- 1 root root  887 May  1  2012 50auto-install-el.el
    > -rw-r--r-- 1 root root 1.2K Dec  2  2014 50develock-el.el
    > -rw-r--r-- 1 root root 1.8K Oct 23  2015 50dictionaries-common.el
    > -rw-r--r-- 1 root root  705 Nov  7  2011 50emacs-goodies-el.el
    > -rw-r--r-- 1 root root 1.3K Jan 25  2015 50php-elisp.el
    > -rw-r--r-- 1 root root  101 Dec 18  2015 50psvn.el
    > -rw-r--r-- 1 root root  927 Jul 16  2014 50pymacs.el
    > -rw-r--r-- 1 root root 1.6K Feb 11  2016 50python-mode.el
    > -rw-r--r-- 1 root root  618 May 27  2015 50yasnippet.el
    > -rw-r--r-- 1 root root  654 Nov  7  2011 51debian-el.el
    > lrwxrwxrwx 1 root root   58 Aug 24 13:03 99c42_defaults.el -> 
/etc/c42CfgRepos/data/emacs/site-start.d/99c42_defaults.el

Reply via email to