GNU bug report logs - #20660
25.0.50; Window pops now issue "Args out of range" with popwin mode enabled

Previous Next

Package: emacs;

Reported by: Kaushal <kaushal.modi <at> gmail.com>

Date: Tue, 26 May 2015 14:32:02 UTC

Severity: normal

Found in version 25.0.50

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 20660 in the body.
You can then email your comments to 20660 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#20660; Package emacs. (Tue, 26 May 2015 14:32:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Kaushal <kaushal.modi <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 26 May 2015 14:32:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Kaushal <kaushal.modi <at> gmail.com>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>, m2ym.pub <at> gmail.com
Subject: 25.0.50;
 Window pops now issue "Args out of range" with popwin mode enabled
Date: Tue, 26 May 2015 14:31:16 +0000
[Message part 1 (text/plain, inline)]
In GNU Emacs 25.0.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.10.4)
 of 2015-05-26 on ...
Windowing system distributor `The X.Org Foundation', version 11.0.60900000
System Description: Red Hat Enterprise Linux Client release 5.10 (Tikanga)

*Emacs
build: http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=45c92ddd99f5d3ceb520f9a27678bbedde83589b
<http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=45c92ddd99f5d3ceb520f9a27678bbedde83589b>*

Configured using:
 `configure --prefix=/home/kmodi/usr_local/apps/emacs/master
 CPPFLAGS=-fgnu89-inline'

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS
NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE LIBOTF XFT ZLIB

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Emacs-Lisp


I started getting the "Args out of range" messages in the *Messages* buffer
after I built emacs using the latest master today. My previous build was
about a week back.

Only after this build, I started getting "Args out of range" every time I
use something like "C-h v" that uses the popwin-mode (
https://github.com/m2ym/popwin-el ).

I don't get these Args out of range messages if I do not load popwin; but
also these messages did not appear a week ago with popwin enabled.

I did not get any informative backtrace with

M-x debug-on-error

or

(setq debug-on-message "Args out of range")

Is this a bug or some change incompatible with popwin-mode?
Minor modes in effect:
  yas-minor-mode: t
  minibuffer-line-mode: t
  flyspell-mode: t
  guide-key-mode: t
  popwin-mode: t
  desktop-save-mode: t
  nlinum-mode: t
  pdf-occur-global-minor-mode: t
  global-anzu-mode: t
  anzu-mode: t
  recentf-mode: t
  winner-mode: t
  yafolding-mode: t
  wrap-region-mode: t
  global-undo-tree-mode: t
  undo-tree-mode: t
  rainbow-delimiters-mode: t
  projectile-global-mode: t
  projectile-mode: t
  global-page-break-lines-mode: t
  page-break-lines-mode: t
  keyfreq-autosave-mode: t
  keyfreq-mode: t
  diff-hl-mode: t
  diff-auto-refine-mode: t
  ido-ubiquitous-mode: t
  ido-vertical-mode: t
  flx-ido-mode: t
  ido-everywhere: t
  global-hungry-delete-mode: t
  hungry-delete-mode: t
  volatile-highlights-mode: t
  global-hi-lock-mode: t
  hi-lock-mode: t
  global-hardcore-mode: t
  hardcore-mode: t
  fci-mode: t
  elisp-slime-nav-mode: t
  drag-stuff-global-mode: t
  drag-stuff-mode: t
  aggressive-indent-mode: t
  ace-window-display-mode: t
  global-adaptive-wrap-prefix-mode: t
  adaptive-wrap-prefix-mode: t
  display-time-mode: t
  which-function-mode: t
  shell-dirtrack-mode: t
  outline-minor-mode: t
  ctags-auto-update-mode: t
  global-modi-mode: t
  modi-mode: t
  override-global-mode: t
  save-place-mode: t
  show-paren-mode: t
  delete-selection-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  abbrev-mode: t

Recent messages:
Wrote /home/kmodi/.emacs.d/init.el
Searching for setup-popwin...
Mark set [2 times]
Indenting region...done
Saving file /home/kmodi/.emacs.d/setup-files/setup-popwin.el...
Wrote /home/kmodi/.emacs.d/setup-files/setup-popwin.el
t
 [2 times]
Args out of range: 812
Revert buffer from file /home/kmodi/.emacs.d/setup-files/setup-popwin.el?
(y or n) y
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20660; Package emacs. (Tue, 26 May 2015 14:39:02 GMT) Full text and rfc822 format available.

Message #8 received at 20660 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Kaushal <kaushal.modi <at> gmail.com>, 20660 <at> debbugs.gnu.org, m2ym.pub <at> gmail.com
Subject: Re: bug#20660: 25.0.50; Window pops now issue "Args out of range"
 with popwin mode enabled
Date: Tue, 26 May 2015 17:38:38 +0300
On 05/26/2015 05:31 PM, Kaushal wrote:

> I don't get these Args out of range messages if I do not load popwin;
> but also these messages did not appear a week ago with popwin enabled.

Same here, but I don't use popwin. 'emacs -Q' doesn't show these errors, 
so it must be some other package I have installed.

I haven't investigated yet which one it is.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20660; Package emacs. (Tue, 26 May 2015 17:04:02 GMT) Full text and rfc822 format available.

Message #11 received at 20660 <at> debbugs.gnu.org (full text, mbox):

From: Kaushal <kaushal.modi <at> gmail.com>
To: Dmitry Gutov <dgutov <at> yandex.ru>, 20660 <at> debbugs.gnu.org, m2ym.pub <at> gmail.com
Subject: Re: bug#20660: 25.0.50; Window pops now issue "Args out of range"
 with popwin mode enabled
Date: Tue, 26 May 2015 17:03:14 +0000
[Message part 1 (text/plain, inline)]
Also,to add to what I posted originally, `toggle-debug-on-error` does not
help  in this case as all I get in the *Backtrace* is:

Debugger entered--Lisp error: (args-out-of-range 1519)

Here's some new info:
- The Args out of range error seems to appear randomly.. I repeated doing
`C-h v save-place-mode`. At times the errors happened and at times it
didn;t.
- Also the integer in the argument to `args-out-of-range` showed up to be
different every time the error happened on doing C-h v on the same variable.

And "(setq debug-on-message "Args out of range")" does not trigger the
debug.
Is that because that message is printed by a C function?

On Tue, May 26, 2015 at 10:38 AM Dmitry Gutov <dgutov <at> yandex.ru> wrote:

> On 05/26/2015 05:31 PM, Kaushal wrote:
>
> > I don't get these Args out of range messages if I do not load popwin;
> > but also these messages did not appear a week ago with popwin enabled.
>
> Same here, but I don't use popwin. 'emacs -Q' doesn't show these errors,
> so it must be some other package I have installed.
>
> I haven't investigated yet which one it is.
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20660; Package emacs. (Thu, 11 Jun 2015 15:12:01 GMT) Full text and rfc822 format available.

Message #14 received at 20660 <at> debbugs.gnu.org (full text, mbox):

From: Kaushal <kaushal.modi <at> gmail.com>
To: Dmitry Gutov <dgutov <at> yandex.ru>, 20660 <at> debbugs.gnu.org, m2ym.pub <at> gmail.com
Subject: Re: bug#20660: 25.0.50; Window pops now issue "Args out of range"
 with popwin mode enabled
Date: Thu, 11 Jun 2015 15:10:44 +0000
[Message part 1 (text/plain, inline)]
@Dmitry
Any hints on how I can debug this more?

On Tue, May 26, 2015 at 1:03 PM Kaushal <kaushal.modi <at> gmail.com> wrote:

> Also,to add to what I posted originally, `toggle-debug-on-error` does not
> help  in this case as all I get in the *Backtrace* is:
>
> Debugger entered--Lisp error: (args-out-of-range 1519)
>
> Here's some new info:
> - The Args out of range error seems to appear randomly.. I repeated doing
> `C-h v save-place-mode`. At times the errors happened and at times it
> didn;t.
> - Also the integer in the argument to `args-out-of-range` showed up to be
> different every time the error happened on doing C-h v on the same variable.
>
> And "(setq debug-on-message "Args out of range")" does not trigger the
> debug.
> Is that because that message is printed by a C function?
>
> On Tue, May 26, 2015 at 10:38 AM Dmitry Gutov <dgutov <at> yandex.ru> wrote:
>
>> On 05/26/2015 05:31 PM, Kaushal wrote:
>>
>> > I don't get these Args out of range messages if I do not load popwin;
>> > but also these messages did not appear a week ago with popwin enabled.
>>
>> Same here, but I don't use popwin. 'emacs -Q' doesn't show these errors,
>> so it must be some other package I have installed.
>>
>> I haven't investigated yet which one it is.
>>
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20660; Package emacs. (Thu, 11 Jun 2015 15:59:02 GMT) Full text and rfc822 format available.

Message #17 received at 20660 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Kaushal <kaushal.modi <at> gmail.com>
Cc: 20660 <at> debbugs.gnu.org, m2ym.pub <at> gmail.com, dgutov <at> yandex.ru
Subject: Re: bug#20660: 25.0.50;
 Window pops now issue "Args out of range" with popwin mode enabled
Date: Thu, 11 Jun 2015 18:56:58 +0300
> From: Kaushal <kaushal.modi <at> gmail.com>
> Date: Thu, 11 Jun 2015 15:10:44 +0000
> 
> Any hints on how I can debug this more?

I'm not Dmitry, but I will give advice nonetheless.

Try running Emacs under GDB, setting a breakpoint in the function
named args_out_of_range.  When it breaks, the command "xbacktrace"
(defined in src/.gdbinit) will display a Lisp-level backtrace, whuch
might give you enough hints to find the culprit.  If not, the command
"backtrace" will show a C-level backtrace; post it here if you cannot
figure it out.

If the breakpoint in args_out_of_range breaks too much in situations
not related to your problem, you can make the breakpoint continue the
execution automatically:

  (gdb) break args_out_of_range
  (gdb) commands
    > xbacktrace
    > continue
    >end

Then only look at the output of GDB when you see the problem
happening.




Reply sent to Stefan Kangas <stefan <at> marxist.se>:
You have taken responsibility. (Sun, 29 Sep 2019 23:51:01 GMT) Full text and rfc822 format available.

Notification sent to Kaushal <kaushal.modi <at> gmail.com>:
bug acknowledged by developer. (Sun, 29 Sep 2019 23:51:01 GMT) Full text and rfc822 format available.

Message #22 received at 20660-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 20660-done <at> debbugs.gnu.org, Dmitry Gutov <dgutov <at> yandex.ru>,
 m2ym.pub <at> gmail.com, Kaushal <kaushal.modi <at> gmail.com>
Subject: Re: bug#20660: 25.0.50; Window pops now issue "Args out of range"
 with popwin mode enabled
Date: Mon, 30 Sep 2019 01:50:32 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Kaushal <kaushal.modi <at> gmail.com>
>> Date: Thu, 11 Jun 2015 15:10:44 +0000
>>
>> Any hints on how I can debug this more?
>
> I'm not Dmitry, but I will give advice nonetheless.
>
> Try running Emacs under GDB, setting a breakpoint in the function
> named args_out_of_range.  When it breaks, the command "xbacktrace"
> (defined in src/.gdbinit) will display a Lisp-level backtrace, whuch
> might give you enough hints to find the culprit.  If not, the command
> "backtrace" will show a C-level backtrace; post it here if you cannot
> figure it out.
>
> If the breakpoint in args_out_of_range breaks too much in situations
> not related to your problem, you can make the breakpoint continue the
> execution automatically:
>
>   (gdb) break args_out_of_range
>   (gdb) commands
>     > xbacktrace
>     > continue
>     >end
>
> Then only look at the output of GDB when you see the problem
> happening.

This seems to be an error related to a third party package, and there
have been no further update in 4 years.  I'm therefore closing this
bug.  If this is indeed a bug in Emacs, please ropen.

Best regards,
Stefan Kangas




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 28 Oct 2019 11:24:14 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 241 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.