2329 |
*** Linux: Segfault during `make bootstrap' under certain recent versions of the Linux kernel. |
*** Linux: Segfault during `make bootstrap' under certain recent versions of the Linux kernel. |
2330 |
|
|
2331 |
With certain recent Linux kernels (like the one of Redhat Fedora Core |
With certain recent Linux kernels (like the one of Redhat Fedora Core |
2332 |
1), the new "Exec-shield" functionality is enabled by default, which |
1 and 2), the new "Exec-shield" functionality is enabled by default, which |
2333 |
creates a different memory layout that breaks the emacs dumper. |
creates a different memory layout that breaks the emacs dumper. |
2334 |
|
|
2335 |
|
Configure can overcome the problem of exec-shield if the architecture is |
2336 |
|
x86 and the program setarch is present. On other architectures no |
2337 |
|
workaround is known. |
2338 |
|
|
2339 |
You can check the Exec-shield state like this: |
You can check the Exec-shield state like this: |
2340 |
|
|
2341 |
cat /proc/sys/kernel/exec-shield |
cat /proc/sys/kernel/exec-shield |
2342 |
|
|
2343 |
It returns 1 or 2 when Exec-shield is enabled, 0 otherwise. Please |
It returns non-zero when Exec-shield is enabled, 0 otherwise. Please |
2344 |
read your system documentation for more details on Exec-shield and |
read your system documentation for more details on Exec-shield and |
2345 |
associated commands. |
associated commands. Exec-shield can be turned off with this command: |
2346 |
|
|
2347 |
|
echo "0" > /proc/sys/kernel/exec-shield |
2348 |
|
|
2349 |
When Exec-shield is enabled, building Emacs will segfault during the |
When Exec-shield is enabled, building Emacs will segfault during the |
2350 |
execution of this command: |
execution of this command: |
2351 |
|
|
2352 |
temacs --batch --load loadup [dump|bootstrap] |
./temacs --batch --load loadup [dump|bootstrap] |
2353 |
|
|
2354 |
To work around this problem, it is necessary to temporarily disable |
To work around this problem, it is necessary to temporarily disable |
2355 |
Exec-shield while building Emacs, using the `setarch' command like |
Exec-shield while building Emacs, or, on x86, by using the `setarch' |
2356 |
this: |
command when running temacs like this: |
2357 |
|
|
2358 |
|
setarch i386 ./temacs --batch --load loadup [dump|bootstrap] |
2359 |
|
|
|
setarch i386 ./configure <configure parameters> |
|
|
setarch i386 make <make parameters> |
|
2360 |
|
|
2361 |
*** Fatal signal in the command temacs -l loadup inc dump. |
*** Fatal signal in the command temacs -l loadup inc dump. |
2362 |
|
|