On Sep 27, 2006, at 9:38 AM, Martin Dietze wrote:

> Adrian,
>
>  I ran across the same problems as discussed in [1]. Like the
> original poster I am running a Debian-based Linux system. After
> having tried a number of things I seem to have found a way to
> reproduce this error. As soon as your gcc/gobjc is of version
> 4.x the segmentation fault occurs. Downgrading to a version 3.x
> did the trick.
>
> Now the question of course is wheather we are dealing with a
> compiler bug or there's a problem with the application code.
> Experience tells us that the compiler is only seldomly to blame
> *g*, so I am including a backtrace from gdb which you might
> find helpful if there indeed is a problem with the code. The
> script `doit.sh' was run from ./leim and resulted in the output
> you find in `bt.log' when running the code in gdb.

Thanks, from the trace it looks like the crash happens deep in emacs  
core internal memory management code.  Not easy to debug, but the  
bottom line is there could be some memory corruption happening  
earlier on, although if this is happening  during the BUILD phase the  
Emacs.app-specific code should not even be involved, since emacs runs  
in batch (non-gui) mode at that point.

FWIW, I haven't observed this building with apple-gcc-4.0 on OS X.   
I've also built on a Linux machine with gcc-4.1.2 with success.  It's  
probably a bug that gets uncovered under certain memory organization  
conditions.

BTW, one small hiccup I discovered recently in builds on all systems  
is that under the 'leim/' subdirectory two files:

changed.misc
changed.tit

will sometimes get created with the wrong contents and left in place  
when emacs crashes during a failed build.  Then crashes happen later  
in the next build even if the first problem is solved.  The solution  
is to DELETE these files after each failed build.  The new nextstep/ 
compile script in pre3b now does this.


Adrian




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Emacs-app-dev- mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emacs-app-dev-

Reply via email to