Bug 21906 - New glibc-2.2 break down Xconfigurator
Summary: New glibc-2.2 break down Xconfigurator
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: Xconfigurator   
(Show other bugs)
Version: 7.0
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Trond Eivind Glomsrxd
QA Contact: Aaron Brown
: 21829 (view as bug list)
Depends On:
TreeView+ depends on / blocked
Reported: 2000-12-07 20:41 UTC by Milan Kerslager
Modified: 2007-04-18 16:30 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-12-08 22:01:55 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Milan Kerslager 2000-12-07 20:41:23 UTC
I found that glibc-2.2 from RH's update break down Xconfigurator. No
testing screen at the end, only message about failed test of the new
configuration (but configuration is OK when trying to start X manually
after this).

Xconfigurator leave then empty X server running so next X session go to the
next free console.

Downgrading to glibc-2.1.92-14 from vanilla 7.0 solve the problem.
Recompilation desn't help at all.

Comment 1 Jakub Jelinek 2000-12-08 11:03:47 UTC
I believe this is a bug in Xconfigurator (well, Xtest) and the fact that with
different glibcs it works differently is just a pure timing/memory layout issue.
Basically, Xtest does:
    if (!nostart) {
        waitpid(childpid, &status, WNOHANG);
        if (WIFEXITED(status)){
            return ERROR;
where status is uninitialized local variable. waitpid, if it returns anything
<= 0, does not modify the int pointed by second argument though, so this code
(in this case waitpid returns 0) worked by pure luck.
As I don't know exactly what this code is trying to do, I can only suggest
either if (waitpid() > 0 && WIFEXITED(status)) { return ERROR; }
or pid = waitpid(); if (pid < 0 || (pid > 0 && WIFEXITED(status))) { return ERROR; }
Trond, this would be probably worth issuing a bugfix errata I think.

Comment 2 Trond Eivind Glomsrxd 2000-12-08 22:01:52 UTC
I've made some changes to CVS which should fix it...

Comment 3 Trond Eivind Glomsrxd 2000-12-11 03:24:45 UTC
And built it - Xconfigurator 4.4.6. Currently available from
http://people.redhat.com/teg/ , soon from Rawhide and mirrors. Errata later.

Comment 4 Milan Kerslager 2000-12-13 23:09:07 UTC
*** Bug 21829 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.