annoyingly, this seems to only happen on the s390 system. the s390x system builds emacs-23.3-r2 just fine. Dumping under the name emacs ************************************************** Warning: Your system has a gap between BSS and the heap (5507560 bytes). This usually means that exec-shield or something similar is in effect. The dump may fail because of this. See the section about exec-shield in etc/PROBLEMS for more information. ************************************************** make[1]: *** [bootstrap-emacs] Segmentation fault (core dumped)
Created attachment 289573 [details] build.log
Created attachment 289575 [details] emerge --info app-editors/emacs
Does it build with the recipe from bug 345001 comment #5?
Created attachment 289603 [details] config.log i ran the following ... it did not help ... still crashed: # echo 0 > /proc/sys/kernel/randomize_va_space # make wrt the code, HAVE_PERSONALITY_LINUX32 is defined, so that should have executed. see attached config.log for more info.
I guess this needs to be debugged on the platform where it fails, so the Emacs team can't help much. You could try again with emacs-vcs-24.0.90; the machine dependent configuration has considerably changed between versions 23 and 24. If this also fails then please report the bug upstream. (In reply to comment #0) > ************************************************** > Warning: Your system has a gap between BSS and the > heap (5507560 bytes). Is this number the same every time?
hrm, when i tried to write 0 to randomize_va_space, i failed at life. once i fixed that, the dump worked fine. i added a call to personality() in the process that got exec-ed and it seems that its flags are back to not having ADD_NO_RANDOMIZE set.
FYI happens the same with emacs-24
i wonder if the patch merged to the s390 kernel (in linux-3.1) fixes this: [S390] Do not clobber personality flags on exec Analog to git commit 59e4c3a2fe9cb1681bb2cff508ff79466f7585ba do not clear the additional personality flags on exec. We need to inherit the personality bits in PER_MASK across exec. we're running 2.6.38.x on those vms, and with 3.4.x being the latest LTS, i'll see about updating to that ...
(In reply to comment #8) doesn't seem to have helped. upgraded to 3.4.10 and 23.4-r1 fails same way.
yeah, turned out to be a kernel bug. i'll update our kernel again.
i've applied that patch, rebooted, and emacs looks good now