unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Investigating crash (Bug#11395) on Mac OS
@ 2012-05-04  2:32 Chong Yidong
  2012-05-04  2:58 ` Liang Wang
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Chong Yidong @ 2012-05-04  2:32 UTC (permalink / raw)
  To: emacs-devel

Could someone who is running on Mac OS please help investigate the crash
reported at

  http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11395

?  It's claimed to be reproducible, but I can't get it to crash on my
end (x86_64-unknown-linux-gnu), so maybe some part of the Nextstep code
is not GC-safe.

Thanks.



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Investigating crash (Bug#11395) on Mac OS
  2012-05-04  2:32 Investigating crash (Bug#11395) on Mac OS Chong Yidong
@ 2012-05-04  2:58 ` Liang Wang
  2012-05-07 17:36   ` Randal L. Schwartz
  2012-05-04  8:07 ` Ivan Andrus
  2012-05-04 16:50 ` Glenn Morris
  2 siblings, 1 reply; 11+ messages in thread
From: Liang Wang @ 2012-05-04  2:58 UTC (permalink / raw)
  To: Chong Yidong; +Cc: emacs-devel

On Fri, May 4, 2012 at 10:32 AM, Chong Yidong <cyd@gnu.org> wrote:
> Could someone who is running on Mac OS please help investigate the crash
> reported at
>
>  http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11395

I have experienced similar issue on Mac OS, but I haven't got crash either.

>
> ?  It's claimed to be reproducible, but I can't get it to crash on my
> end (x86_64-unknown-linux-gnu), so maybe some part of the Nextstep code
> is not GC-safe.
>
> Thanks.
>



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Investigating crash (Bug#11395) on Mac OS
  2012-05-04  2:32 Investigating crash (Bug#11395) on Mac OS Chong Yidong
  2012-05-04  2:58 ` Liang Wang
@ 2012-05-04  8:07 ` Ivan Andrus
  2012-05-04 10:38   ` Chong Yidong
  2012-05-04 16:50 ` Glenn Morris
  2 siblings, 1 reply; 11+ messages in thread
From: Ivan Andrus @ 2012-05-04  8:07 UTC (permalink / raw)
  To: Chong Yidong; +Cc: emacs-devel

On May 4, 2012, at 4:32 AM, Chong Yidong wrote:

> Could someone who is running on Mac OS please help investigate the crash
> reported at
> 
>  http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11395
> 
> ?  It's claimed to be reproducible, but I can't get it to crash on my
> end (x86_64-unknown-linux-gnu), so maybe some part of the Nextstep code
> is not GC-safe.
> 
> Thanks.

I was getting this quite regularly (about every 15 minutes) a week ago (from bzr head), but after I got done traveling (Tuesday) I updated and I haven't experienced it since.  I assumed someone had fixed it so I didn't bother reporting it.  In the past several years it has been very stable updating from bzr head every so often.  So at least for me it's been very version dependent.

When I debugged it once it was stuck in a loop with internal_condition_case returning 0 (instead of Qnil) or something like that.  I also remember one time when the window information got corrupted in some way so that point-min wasn't a marker.  The result was that I couldn't do anything including closing the window because it would error.

So it seems it's probably (random) memory corruption, but you probably knew that.  Why it's fixed now for me, I don't know.  If you would like I could try and bisect to see what changed. Hopefully it's not dependent on the phase of the moon. :-)  Is there anything else I could do to try and figure it out?  IIRC running it under valgrind, which would be my first instinct, isn't supported.

-Ivan


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Investigating crash (Bug#11395) on Mac OS
  2012-05-04  8:07 ` Ivan Andrus
@ 2012-05-04 10:38   ` Chong Yidong
  2012-05-09 19:23     ` Ivan Andrus
  0 siblings, 1 reply; 11+ messages in thread
From: Chong Yidong @ 2012-05-04 10:38 UTC (permalink / raw)
  To: Ivan Andrus; +Cc: emacs-devel

Ivan Andrus <darthandrus@gmail.com> writes:

> I was getting this quite regularly (about every 15 minutes) a week ago
> (from bzr head), but after I got done traveling (Tuesday) I updated
> and I haven't experienced it since.  I assumed someone had fixed it so
> I didn't bother reporting it.  In the past several years it has been
> very stable updating from bzr head every so often.  So at least for me
> it's been very version dependent.

If this is right, there may have been a fix committed to trunk but
missing from the release branch (since Bug#11395 was reported for the
24.0.96 pretest).

If you can, please try bisecting.  That would help tremendously.  The
(so far incomplete) recipe posted by Richard Stanton in the bug page for
Bug#11395 may help if you can reproduce it.

> IIRC running it under valgrind, which would be my first instinct,
> isn't supported.

Running `valgrind ./temacs -l loadup' works for me (apart from the usual
cloud of false positives due to GC).  But maybe it doesn't work on Mac
OS, I dunno.



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Investigating crash (Bug#11395) on Mac OS
  2012-05-04  2:32 Investigating crash (Bug#11395) on Mac OS Chong Yidong
  2012-05-04  2:58 ` Liang Wang
  2012-05-04  8:07 ` Ivan Andrus
@ 2012-05-04 16:50 ` Glenn Morris
  2012-05-05 16:53   ` chad
  2 siblings, 1 reply; 11+ messages in thread
From: Glenn Morris @ 2012-05-04 16:50 UTC (permalink / raw)
  To: Chong Yidong; +Cc: emacs-devel

Chong Yidong wrote:

> Could someone who is running on Mac OS please help investigate the crash
> reported at
>
>   http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11395

Note that #11395 seems to be running the same pre-built binary as:

http://debbugs.gnu.org/11257

Both are running on 10.7.3, and using a binary apparently built on
10.6.8. #11257 said his issues went away when he compiled Emacs himself:

http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11257#52



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Investigating crash (Bug#11395) on Mac OS
  2012-05-04 16:50 ` Glenn Morris
@ 2012-05-05 16:53   ` chad
  0 siblings, 0 replies; 11+ messages in thread
From: chad @ 2012-05-05 16:53 UTC (permalink / raw)
  To: Emacs developers

[-- Attachment #1: Type: text/plain, Size: 447 bytes --]

I am unable to reproduce the bug on a locally-built macosx 10.7.3 machine.

*Chad

On May 4, 2012, at 9:50 AM, Glenn Morris wrote:
> 
> Note that #11395 seems to be running the same pre-built binary as:
> 
> http://debbugs.gnu.org/11257
> 
> Both are running on 10.7.3, and using a binary apparently built on
> 10.6.8. #11257 said his issues went away when he compiled Emacs himself:
> 
> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11257#52
> 


[-- Attachment #2: Type: text/html, Size: 805 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Investigating crash (Bug#11395) on Mac OS
  2012-05-04  2:58 ` Liang Wang
@ 2012-05-07 17:36   ` Randal L. Schwartz
  2012-05-08  2:40     ` Chong Yidong
  0 siblings, 1 reply; 11+ messages in thread
From: Randal L. Schwartz @ 2012-05-07 17:36 UTC (permalink / raw)
  To: emacs-devel

>>>>> "Liang" == Liang Wang <netcasper@gmail.com> writes:

Liang> I have experienced similar issue on Mac OS, but I haven't got
Liang> crash either.

Ditto.  Recent builds seem to be occasionally just "freezing".

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.posterous.com/ for Smalltalk discussion




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Investigating crash (Bug#11395) on Mac OS
  2012-05-07 17:36   ` Randal L. Schwartz
@ 2012-05-08  2:40     ` Chong Yidong
  2012-05-09 16:59       ` Felix Geller
  0 siblings, 1 reply; 11+ messages in thread
From: Chong Yidong @ 2012-05-08  2:40 UTC (permalink / raw)
  To: Randal L. Schwartz, Liang Wang; +Cc: emacs-devel

merlyn@stonehenge.com (Randal L. Schwartz) writes:

>>>>>> "Liang" == Liang Wang <netcasper@gmail.com> writes:
>
> Liang> I have experienced similar issue on Mac OS, but I haven't got
> Liang> crash either.
>
> Ditto.  Recent builds seem to be occasionally just "freezing".

Then please run Emacs under gdb and post a backtrace when the freeze
occurs.



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Investigating crash (Bug#11395) on Mac OS
  2012-05-08  2:40     ` Chong Yidong
@ 2012-05-09 16:59       ` Felix Geller
  0 siblings, 0 replies; 11+ messages in thread
From: Felix Geller @ 2012-05-09 16:59 UTC (permalink / raw)
  To: Chong Yidong, Randal L. Schwartz, Liang Wang; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 1105 bytes --]

Hi,

perhaps this (cropped) trace helps: https://gist.github.com/2644938

(bt -100 after gdb -p 42)

I'm not very experienced with gdb and my Emacs has no symbol table for
debugging (bt full -100 is complaining). Any help on how to get the
symbol table would be great, then I could possibly provide more helpful
info.

I haven't encountered crashes so far, but after using Emacs for a day or
so, it often goes on short trips to GC nirvana for several seconds. My
version: 

GNU Emacs 24.1.50.2 (i386-apple-darwin11.3.0, NS apple-appkit-1138.32)
of 2012-05-04 on ryo.localdomain.de


Cheers,
Felix



On Tue, 08 May 2012 10:40:03 +0800, Chong Yidong <cyd@gnu.org> wrote:
> merlyn@stonehenge.com (Randal L. Schwartz) writes:
> 
> >>>>>> "Liang" == Liang Wang <netcasper@gmail.com> writes:
> >
> > Liang> I have experienced similar issue on Mac OS, but I haven't got
> > Liang> crash either.
> >
> > Ditto.  Recent builds seem to be occasionally just "freezing".
> 
> Then please run Emacs under gdb and post a backtrace when the freeze
> occurs.
> 

-- 
Felix Geller

[-- Attachment #2: Type: application/pgp-signature, Size: 242 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Investigating crash (Bug#11395) on Mac OS
  2012-05-04 10:38   ` Chong Yidong
@ 2012-05-09 19:23     ` Ivan Andrus
  2012-05-11 13:24       ` Chong Yidong
  0 siblings, 1 reply; 11+ messages in thread
From: Ivan Andrus @ 2012-05-09 19:23 UTC (permalink / raw)
  To: Emacs Dev

On May 4, 2012, at 12:38 PM, Chong Yidong wrote:

> Ivan Andrus <darthandrus@gmail.com> writes:
> 
>> I was getting this quite regularly (about every 15 minutes) a week ago
>> (from bzr head), but after I got done traveling (Tuesday) I updated
>> and I haven't experienced it since.  I assumed someone had fixed it so
>> I didn't bother reporting it.  In the past several years it has been
>> very stable updating from bzr head every so often.  So at least for me
>> it's been very version dependent.
> 
> If this is right, there may have been a fix committed to trunk but
> missing from the release branch (since Bug#11395 was reported for the
> 24.0.96 pretest).
> 
> If you can, please try bisecting.  That would help tremendously.  The
> (so far incomplete) recipe posted by Richard Stanton in the bug page for
> Bug#11395 may help if you can reproduce it.

My attempts at bisecting were an utter failure.  First I had problems building after using bzr bisect so I decided to bisect "manually".  I was able to easily reproduce the problem with some revisions e.g. 108034 by repeatedly exporting an org file to pdf (only required 3-5 exports).  I was unable (after 10-15 exports) to reproduce the problem with other revisions e.g. 108049.  I had to leave it though, and now that I come back to it I can't reproduce the problem with revision 108034.  So there's something weird going on.

FWIW I was trying to bisect "backwards" by finding the revision where it was fixed for me.  There were far fewer commits that way since I hadn't previously updated for about a month.

>> IIRC running it under valgrind, which would be my first instinct,
>> isn't supported.
> 
> Running `valgrind ./temacs -l loadup' works for me (apart from the usual
> cloud of false positives due to GC).  But maybe it doesn't work on Mac
> OS, I dunno.


That's good to know.  But `valgrind ./emacs` wouldn't work I assume?  Anyway, I'll try it later if I can reproduce the error.

-Ivan


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Investigating crash (Bug#11395) on Mac OS
  2012-05-09 19:23     ` Ivan Andrus
@ 2012-05-11 13:24       ` Chong Yidong
  0 siblings, 0 replies; 11+ messages in thread
From: Chong Yidong @ 2012-05-11 13:24 UTC (permalink / raw)
  To: Ivan Andrus; +Cc: Emacs Dev

Ivan Andrus <darthandrus@gmail.com> writes:

> I was able to easily reproduce the problem with some revisions
> e.g. 108034 by repeatedly exporting an org file to pdf (only required
> 3-5 exports).  I was unable (after 10-15 exports) to reproduce the
> problem with other revisions e.g. 108049.  I had to leave it though,
> and now that I come back to it I can't reproduce the problem with
> revision 108034.  So there's something weird going on.

Could you bisect using the emacs-24 branch rather than the trunk?  The
trunk will probably be "noiser" since there have been lots of changes
there since the freeze was lifted.



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-05-11 13:24 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-04  2:32 Investigating crash (Bug#11395) on Mac OS Chong Yidong
2012-05-04  2:58 ` Liang Wang
2012-05-07 17:36   ` Randal L. Schwartz
2012-05-08  2:40     ` Chong Yidong
2012-05-09 16:59       ` Felix Geller
2012-05-04  8:07 ` Ivan Andrus
2012-05-04 10:38   ` Chong Yidong
2012-05-09 19:23     ` Ivan Andrus
2012-05-11 13:24       ` Chong Yidong
2012-05-04 16:50 ` Glenn Morris
2012-05-05 16:53   ` chad

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).