Bug 499035
| Summary: | emacs coredumps if you try to kill a modified buffer | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | ritz <rkhadgar> | ||||||
| Component: | emacs | Assignee: | Karel Klíč <kklic> | ||||||
| Status: | CLOSED ERRATA | QA Contact: | Ondrej Moriš <omoris> | ||||||
| Severity: | medium | Docs Contact: | |||||||
| Priority: | medium | ||||||||
| Version: | 5.4 | CC: | bkyoung, ebenes, jakub, paul, rvokal, sopwith, spoyarek, thoger, vbenes | ||||||
| Target Milestone: | rc | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | i386 | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | emacs-21.4-24.el5 | Doc Type: | Bug Fix | ||||||
| Doc Text: |
Previously, the emacs-nox program was compiled with variable argument function calls, which caused the program to terminate because it violated stack protection boundaries. This occurred, for example, when the user tried to kill a buffer with modifications. This update changes the emacs-nox package to call the variable argument functions without triggering the stack protection. This update also enables the stack protection for the emacs package.
|
Story Points: | --- | ||||||
| Clone Of: | 174730 | Environment: | |||||||
| Last Closed: | 2011-04-27 10:11:35 UTC | Type: | --- | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Bug Depends On: | 174730 | ||||||||
| Bug Blocks: | |||||||||
| Attachments: |
|
||||||||
|
Description
ritz
2009-05-04 21:14:20 UTC
This request was evaluated by Red Hat Product Management for inclusion, but this component is not scheduled to be updated in the current Red Hat Enterprise Linux release. If you would like this request to be reviewed for the next minor release, ask your support representative to set the next rhel-x.y flag to "?". Hi, this problem seems to be already fixed since 2005-12-14 in the Emacs spec file. And I cannot reproduce it. Can you reproduce it on RHEL-5.5, please? It was fixed for emacs, not for emacs-nox. The patch fixes this for emacs-nox. Thank you. Reproduced using emacs-nox. Created attachment 490316 [details]
Better fix
Here is a better fix. Emacs has a compile-time option which makes the code to use stack properly.
I have tested it, and the crash seems to be gone.
GUI version should also be recompiled with the option and the stack protector enabled.
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
New Contents:
Previously, the emacs-nox program was compiled with variable argument function calls, which caused the program to terminate because it violated stack protection boundaries. This occurred, for example, when the user tried to kill a buffer with modifications. This update changes the emacs-nox package to call the variable argument functions without triggering the stack protection. This update also enables the stack protection for the emacs package.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2011-0468.html |