Ah I see, Emacs.app just terminates when it runs into a problem.  That  
is not very useful, indeed.

Let's see.  I can reproduce such an out-of-the-blue termination by  
just typing C-z.

To look more closely, I fire up a gdb session that attaches to the  
running Emacs.
First I need to find the process id of the Emacs I want to test:

> ull:tmp cabo$ ps auxwww | egrep Emacs
> cabo     10350   0.5  0.0   599780    436 s007  R+   12:29PM    
> 0:00.01 egrep Emacs
> cabo       825   0.3  0.7   464288  28616   ??  S    Fri08AM    
> 3:40.54 /Applications/Emacs-Carbon.app/Contents/MacOS/Emacs - 
> psn_0_237626
> cabo     10341   0.1  1.1   494280  47204   ??  S    12:28PM    
> 0:03.97 /Applications/Emacs.app/Contents/MacOS/Emacs -psn_0_872661

There it is, 10341.
Now let's start the gdb in parallel to the Emacs:

> ull:tmp cabo$ gdb -p 10341
> GNU gdb 6.3.50-20050815 (Apple version gdb-768) (Tue Oct  2 04:07:49  
> UTC 2007)
> ...

It takes a while while all the libraries are read by gdb.
At the gdb prompt, I type "cont":

> (gdb) cont
> Continuing.

Now Emacs runs normally again.
I'm replicating the behavior, in this case by by typing C-z to the  
Emacs.
Gdb immediately notices:

> Program received signal SIGABRT, Aborted.
> 0x94b330ea in __kill ()
> (gdb)

To find out where that happens, I type "where":

> (gdb) where
> #0  0x94b330ea in __kill ()
> #1  0x94b330dd in kill$UNIX2003 ()
> #2  0x94baa3f2 in raise ()
> #3  0x94bb99af in abort ()
> #4  0x000b3ad1 in Fsuspend_emacs (stuffstring=41944073) at  
> keyboard.c:10934
> #5  0x0012f831 in Ffuncall (nargs=1, args=0xbffff460) at eval.c:3037
> ...

OK, now I know that there is a problem in suspend_emacs, even with a  
line number to look at.
You could do the same to isolate the character set problem.

Gruesse, Carsten


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Emacs-app-dev- mailing list
Emacs-app-dev-@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emacs-app-dev-

Reply via email to