GNU bug report logs - #17411
24.4.50; emacs_backtrace.txt

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Mon, 5 May 2014 20:09:02 UTC

Severity: normal

Tags: moreinfo

Merged with 17340, 17347, 17436

Found in version 24.4.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

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 17411 in the body.
You can then email your comments to 17411 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#17411; Package emacs. (Mon, 05 May 2014 20:09:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Drew Adams <drew.adams <at> oracle.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 05 May 2014 20:09:03 GMT) Full text and rfc822 format available.

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

From: Drew Adams <drew.adams <at> oracle.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.4.50; emacs_backtrace.txt
Date: Mon, 5 May 2014 13:08:17 -0700 (PDT)

Backtrace:
012019c1
01201a32
010f43e6
01167502
011dd6fc
011dda0e
011dd9f4
011dd9f4
011dd9f4
011dd9f4
011dda06
011dd9f4
011dda06
011dd9f4
011dd9f4
011dda06
011dda2b
01167076
011670c7
0116509c
010f24e7
011c65d8
01186271
01185907
01185182
010f970e
0118262b
010f9b06
01185076
010f9b4a
010421cb
01041ed3
01045db5
01044c07
010faa21
01107e6e
010f8541
0118262b
010f7e76
01181bd8
010f7e2e
010f75c4
010f7780
010f5912
010010f9
75853386
76f09f6e
76f09f41




In GNU Emacs 24.4.50.1 (i686-pc-mingw32)
 of 2014-04-29 on ODIEONE
Bzr revision: 117031 monnier <at> iro.umontreal.ca-20140429151607-qnkgbymwfaj5ut08
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --prefix=/c/Devel/emacs/snapshot/trunk
 --enable-checking=yes,glyphs 'CFLAGS=-O0 -g3'
 LDFLAGS=-Lc:/Devel/emacs/lib 'CPPFLAGS=-DGC_MCHECK=1
 -Ic:/Devel/emacs/include''




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17411; Package emacs. (Wed, 07 May 2014 15:22:01 GMT) Full text and rfc822 format available.

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

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 17411 <at> debbugs.gnu.org
Subject: Re: bug#17411: 24.4.50; emacs_backtrace.txt
Date: Wed, 7 May 2014 17:20:13 +0200
??
??:0
w32_backtrace at w32fns.c:8476
emacs_abort at w32fns.c:8508
terminate_due_to_signal at emacs.c:382
die at alloc.c:6955
balance_an_interval at intervals.c:436
balance_intervals_internal at intervals.c:509
balance_intervals_internal at intervals.c:506
balance_intervals_internal at intervals.c:506
balance_intervals_internal at intervals.c:506
balance_intervals_internal at intervals.c:506
balance_intervals_internal at intervals.c:508
balance_intervals_internal at intervals.c:506
balance_intervals_internal at intervals.c:508
balance_intervals_internal at intervals.c:506
balance_intervals_internal at intervals.c:506
balance_intervals_internal at intervals.c:508
balance_intervals at intervals.c:517
sweep_buffers at alloc.c:6751
gc_sweep at alloc.c:6772
Fgarbage_collect at alloc.c:5680
maybe_gc at lisp.h:4527
exec_byte_code at bytecode.c:961
funcall_lambda at eval.c:3049
Ffuncall at eval.c:2864
call0 at eval.c:2599
safe_run_hooks_1 at keyboard.c:1872
internal_condition_case at eval.c:1354
safe_run_hook_funcall at keyboard.c:1927
run_hook_with_args at eval.c:2551
safe_run_hooks at keyboard.c:1944
update_menu_bar at xdisp.c:11733
prepare_menu_bars at xdisp.c:11634
redisplay_internal at xdisp.c:13437
redisplay at xdisp.c:13056
read_char at keyboard.c:2569
read_key_sequence at keyboard.c:9081
command_loop_1 at keyboard.c:1449
internal_condition_case at eval.c:1354
command_loop_2 at keyboard.c:1174
internal_catch at eval.c:1118
command_loop at keyboard.c:1153
recursive_edit_1 at keyboard.c:777
Frecursive_edit at keyboard.c:845
main at emacs.c:1654
?? at crt1.c:0
??
??:0
??
??:0
??
??:0




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17411; Package emacs. (Mon, 12 May 2014 02:39:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Juanma Barranquero <lekktu <at> gmail.com>
Cc: 17411 <at> debbugs.gnu.org, drew.adams <at> oracle.com
Subject: Re: bug#17411: 24.4.50; emacs_backtrace.txt
Date: Mon, 12 May 2014 05:37:52 +0300
> From: Juanma Barranquero <lekktu <at> gmail.com>
> Date: Wed, 7 May 2014 17:20:13 +0200
> Cc: 17411 <at> debbugs.gnu.org
> 
> w32_backtrace at w32fns.c:8476
> emacs_abort at w32fns.c:8508
> terminate_due_to_signal at emacs.c:382
> die at alloc.c:6955
> balance_an_interval at intervals.c:436
> balance_intervals_internal at intervals.c:509
> balance_intervals_internal at intervals.c:506
> balance_intervals_internal at intervals.c:506
> balance_intervals_internal at intervals.c:506
> balance_intervals_internal at intervals.c:506
> balance_intervals_internal at intervals.c:508
> balance_intervals_internal at intervals.c:506
> balance_intervals_internal at intervals.c:508
> balance_intervals_internal at intervals.c:506
> balance_intervals_internal at intervals.c:506
> balance_intervals_internal at intervals.c:508
> balance_intervals at intervals.c:517
> sweep_buffers at alloc.c:6751
> gc_sweep at alloc.c:6772
> Fgarbage_collect at alloc.c:5680
> maybe_gc at lisp.h:4527

A duplicate of 17340.




Merged 17340 17347 17411 17436. Request was from Eli Zaretskii <eliz <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 12 May 2014 02:39:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17411; Package emacs. (Mon, 12 May 2014 03:27:02 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Juanma Barranquero <lekktu <at> gmail.com>, 17411 <at> debbugs.gnu.org
Subject: Re: bug#17411: 24.4.50; emacs_backtrace.txt
Date: Sun, 11 May 2014 23:26:06 -0400
>> balance_an_interval at intervals.c:436
>> balance_intervals_internal at intervals.c:509
>> balance_intervals_internal at intervals.c:506
> A duplicate of 17340.

Indeed.  Both seemed to fail the "eassert (LENGTH (i) > 0);" and right
in the middle of a tree.  I tried to add this assertion everywhere where the
length of an interval can be changed, so we should never bump into
a case like the above, because such a non-positive length should have
been caught by an assertion earlier.

Evidence shows that I missed some cases, tho.  I'd be interested to see
the stack trace before we enter GC (in case it's in the middle of some
interval manipulation, maybe?).  It might also be interesting to look at
`i' to see whether it's hopelessly messed up, or if it looks "incorrect
but sanish".


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17411; Package emacs. (Mon, 12 May 2014 13:23:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
Cc: lekktu <at> gmail.com, 17411 <at> debbugs.gnu.org
Subject: Re: bug#17411: 24.4.50; emacs_backtrace.txt
Date: Mon, 12 May 2014 16:21:59 +0300
> From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
> Cc: Juanma Barranquero <lekktu <at> gmail.com>, 17411 <at> debbugs.gnu.org
> Date: Sun, 11 May 2014 23:26:06 -0400
> 
> >> balance_an_interval at intervals.c:436
> >> balance_intervals_internal at intervals.c:509
> >> balance_intervals_internal at intervals.c:506
> > A duplicate of 17340.
> 
> Indeed.  Both seemed to fail the "eassert (LENGTH (i) > 0);" and right
> in the middle of a tree.  I tried to add this assertion everywhere where the
> length of an interval can be changed, so we should never bump into
> a case like the above, because such a non-positive length should have
> been caught by an assertion earlier.
> 
> Evidence shows that I missed some cases, tho.  I'd be interested to see
> the stack trace before we enter GC (in case it's in the middle of some
> interval manipulation, maybe?).

You mean, this one:

   http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17411#8

> It might also be interesting to look at `i' to see whether it's
> hopelessly messed up, or if it looks "incorrect but sanish".

I was unable to convince Drew to run Emacs under GDB and leave the
crashed session running to allow us ask him to look around in the
crashed session.  So I think the only practical way of obtaining this
information is to add eassert's that will tell you which one is it.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17411; Package emacs. (Mon, 12 May 2014 18:20:02 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: lekktu <at> gmail.com, 17411 <at> debbugs.gnu.org
Subject: Re: bug#17411: 24.4.50; emacs_backtrace.txt
Date: Mon, 12 May 2014 14:18:36 -0400
>> Evidence shows that I missed some cases, tho.  I'd be interested to see
>> the stack trace before we enter GC (in case it's in the middle of some
>> interval manipulation, maybe?).
> You mean, this one:
>    http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17411#8

Ah, yes.
Sadly, this backtrace seems to say that the breakage doesn't come from
running GC in the middle of some interval manipulation.

> So I think the only practical way of obtaining this information is to
> add eassert's that will tell you which one is it.

But I don't know what to add where, at this point.


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17411; Package emacs. (Mon, 12 May 2014 18:34:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: lekktu <at> gmail.com, 17411 <at> debbugs.gnu.org
Subject: Re: bug#17411: 24.4.50; emacs_backtrace.txt
Date: Mon, 12 May 2014 21:33:06 +0300
> From: Stefan Monnier <monnier <at> iro.umontreal.ca>
> Cc: lekktu <at> gmail.com,  17411 <at> debbugs.gnu.org
> Date: Mon, 12 May 2014 14:18:36 -0400
> 
> > So I think the only practical way of obtaining this information is to
> > add eassert's that will tell you which one is it.
> 
> But I don't know what to add where, at this point.

Maybe I misunderstood.  You said:

> It might also be interesting to look at `i' to see whether it's
> hopelessly messed up, or if it looks "incorrect but sanish".

So I thought about an eassert that will catch something "hopelessly
messed up", for example.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17411; Package emacs. (Tue, 13 May 2014 19:33:02 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: lekktu <at> gmail.com, 17411 <at> debbugs.gnu.org
Subject: Re: bug#17411: 24.4.50; emacs_backtrace.txt
Date: Tue, 13 May 2014 15:32:13 -0400
>> > So I think the only practical way of obtaining this information is to
>> > add eassert's that will tell you which one is it.
>> But I don't know what to add where, at this point.
> Maybe I misunderstood.  You said:
>> It might also be interesting to look at `i' to see whether it's
>> hopelessly messed up, or if it looks "incorrect but sanish".
> So I thought about an eassert that will catch something "hopelessly
> messed up", for example.

The "eassert (length (i) > 0)" does catch this case already.  We could
add another assert which is looser (i.e. one that would not be caught by
a "somewhat sane interval with a non-positive length"), but I'm not sure
how to formally define "hopelessly messed up".


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17411; Package emacs. (Tue, 13 May 2014 19:55:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
Cc: lekktu <at> gmail.com, 17411 <at> debbugs.gnu.org
Subject: Re: bug#17411: 24.4.50; emacs_backtrace.txt
Date: Tue, 13 May 2014 22:54:08 +0300
> From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
> Cc: lekktu <at> gmail.com, 17411 <at> debbugs.gnu.org
> Date: Tue, 13 May 2014 15:32:13 -0400
> 
> The "eassert (length (i) > 0)" does catch this case already.  We could
> add another assert which is looser (i.e. one that would not be caught by
> a "somewhat sane interval with a non-positive length"), but I'm not sure
> how to formally define "hopelessly messed up".

You could display the values on your system in a debugger, and after
some time you should have a good idea what isn't messed up.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17411; Package emacs. (Tue, 13 May 2014 21:20:02 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: lekktu <at> gmail.com, 17411 <at> debbugs.gnu.org
Subject: Re: bug#17411: 24.4.50; emacs_backtrace.txt
Date: Tue, 13 May 2014 17:19:50 -0400
>> The "eassert (length (i) > 0)" does catch this case already.  We could
>> add another assert which is looser (i.e. one that would not be caught by
>> a "somewhat sane interval with a non-positive length"), but I'm not sure
>> how to formally define "hopelessly messed up".
> You could display the values on your system in a debugger, and after
> some time you should have a good idea what isn't messed up.

The problem is that it's not worth the trouble: knowing if the values are
sane or not isn't that interesting, so we'd really want to *see*
the values.  I'd "fprintf (stderr, ...)", but that wouldn't work under
w32 would it?


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17411; Package emacs. (Wed, 14 May 2014 02:48:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
Cc: lekktu <at> gmail.com, 17411 <at> debbugs.gnu.org
Subject: Re: bug#17411: 24.4.50; emacs_backtrace.txt
Date: Wed, 14 May 2014 05:47:03 +0300
> From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
> Cc: lekktu <at> gmail.com, 17411 <at> debbugs.gnu.org
> Date: Tue, 13 May 2014 17:19:50 -0400
> 
> I'd "fprintf (stderr, ...)", but that wouldn't work under w32 would
> it?

Not if Emacs was invoked by clicking the desktop icon, which is the
usual way, no.

Perhaps we should add a feature to write arbitrary text into the
emacs_backtrace.txt file, when Emacs crashes.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17411; Package emacs. (Wed, 14 May 2014 03:28:02 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: lekktu <at> gmail.com, 17411 <at> debbugs.gnu.org
Subject: Re: bug#17411: 24.4.50; emacs_backtrace.txt
Date: Tue, 13 May 2014 23:27:13 -0400
> Perhaps we should add a feature to write arbitrary text into the
> emacs_backtrace.txt file, when Emacs crashes.

In any case, a much better option is to run the thing under a debugger.


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17411; Package emacs. (Wed, 14 May 2014 14:39:03 GMT) Full text and rfc822 format available.

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

From: Drew Adams <drew.adams <at> oracle.com>
To: Eli Zaretskii <eliz <at> gnu.org>, Stefan Monnier <monnier <at> IRO.UMontreal.CA>
Cc: lekktu <at> gmail.com, 17411 <at> debbugs.gnu.org
Subject: RE: bug#17411: 24.4.50; emacs_backtrace.txt
Date: Wed, 14 May 2014 07:38:42 -0700 (PDT)
> > I'd "fprintf (stderr, ...)", but that wouldn't work under w32 would
> > it?
> 
> Not if Emacs was invoked by clicking the desktop icon, which is the
> usual way, no.

FWIW, I invoke Emacs from a shortcut (on the Desktop) that points to
runemacs.exe.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17411; Package emacs. (Wed, 14 May 2014 15:22:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: lekktu <at> gmail.com, monnier <at> IRO.UMontreal.CA, 17411 <at> debbugs.gnu.org
Subject: Re: bug#17411: 24.4.50; emacs_backtrace.txt
Date: Wed, 14 May 2014 18:21:38 +0300
> Date: Wed, 14 May 2014 07:38:42 -0700 (PDT)
> From: Drew Adams <drew.adams <at> oracle.com>
> Cc: lekktu <at> gmail.com, 17411 <at> debbugs.gnu.org
> 
> > > I'd "fprintf (stderr, ...)", but that wouldn't work under w32 would
> > > it?
> > 
> > Not if Emacs was invoked by clicking the desktop icon, which is the
> > usual way, no.
> 
> FWIW, I invoke Emacs from a shortcut (on the Desktop) that points to
> runemacs.exe.

Yes, that's what I meant.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17411; Package emacs. (Sat, 26 Dec 2015 14:18:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: lekktu <at> gmail.com, 17340 <at> debbugs.gnu.org,
 Stefan Monnier <monnier <at> IRO.UMontreal.CA>, 17411 <at> debbugs.gnu.org
Subject: Re: bug#17411: 24.4.50; emacs_backtrace.txt
Date: Sat, 26 Dec 2015 15:16:56 +0100
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
>> Cc: lekktu <at> gmail.com, 17411 <at> debbugs.gnu.org
>> Date: Tue, 13 May 2014 17:19:50 -0400
>> 
>> I'd "fprintf (stderr, ...)", but that wouldn't work under w32 would
>> it?
>
> Not if Emacs was invoked by clicking the desktop icon, which is the
> usual way, no.
>
> Perhaps we should add a feature to write arbitrary text into the
> emacs_backtrace.txt file, when Emacs crashes.

It's unclear what the conclusion was in this report -- whether there was
something more to investigate or not...

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17411; Package emacs. (Sat, 26 Dec 2015 14:24:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: lekktu <at> gmail.com, 17340 <at> debbugs.gnu.org, monnier <at> IRO.UMontreal.CA,
 17411 <at> debbugs.gnu.org
Subject: Re: bug#17411: 24.4.50; emacs_backtrace.txt
Date: Sat, 26 Dec 2015 16:24:05 +0200
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Cc: Stefan Monnier <monnier <at> IRO.UMontreal.CA>,  17340 <at> debbugs.gnu.org,  lekktu <at> gmail.com,  17411 <at> debbugs.gnu.org
> Date: Sat, 26 Dec 2015 15:16:56 +0100
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> >> From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
> >> Cc: lekktu <at> gmail.com, 17411 <at> debbugs.gnu.org
> >> Date: Tue, 13 May 2014 17:19:50 -0400
> >> 
> >> I'd "fprintf (stderr, ...)", but that wouldn't work under w32 would
> >> it?
> >
> > Not if Emacs was invoked by clicking the desktop icon, which is the
> > usual way, no.
> >
> > Perhaps we should add a feature to write arbitrary text into the
> > emacs_backtrace.txt file, when Emacs crashes.
> 
> It's unclear what the conclusion was in this report -- whether there was
> something more to investigate or not...

I think it should be closed.  These problems didn't happen in a long
while.




bug closed, send any further explanations to 17411 <at> debbugs.gnu.org and Drew Adams <drew.adams <at> oracle.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 26 Dec 2015 14:41:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 24 Jan 2016 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 143 days ago.

Previous Next


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