Bug 118554
Summary: | mc segfaults when returning from console view | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | floba <florian_bachmann> |
Component: | gpm | Assignee: | Eido Inoue <havill> |
Status: | CLOSED RAWHIDE | QA Contact: | |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | rawhide | CC: | leonard-rh-bugzilla |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i686 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | 1.20.1-48 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2004-05-04 21:19:55 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: | |||
Bug Blocks: | 114963 |
Description
floba
2004-03-17 17:54:46 UTC
This is a gpm issue, probably the same issue as bug 121845. The segmentation in the Gpm_Open routine, line 251, strlen( consolename). The problem is that this pointer is initialized to NULL every time you call this routine in the line 203 but get valid value only in the first call ( checked_con 0 in that time). To fix it, please modify the gpm-evdev-cumulative.patch file: line 4025, original: +static char *consolename; new : +static char *consolename = NULL; line 4042, original: + consolename = NULL; new : +// consolename = NULL; This very much reminds me of bug 101104. The patch attached to that bug report already got rid of this assignment. Why did this got reintroduced?? Because the evdev patch was supposed to have been cumulative and I could've sworn when I integrated it patch claimed it was already present. Apparently not. :( It might have been you integrated an incomplete version. Use the one from bug 101104, comm. #15. The earlier attached versions are flawed/incomplete. comment 5: fyi, patch in bug 101104 no longer works as is; consolename is no longer a field with the options struct var-- only the static char* version exists. modified patch so that it checks the global consolename rather than the field struct |