From nobody@FreeBSD.ORG  Tue Nov 28 21:40:46 2000
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 8474337B400; Tue, 28 Nov 2000 21:40:46 -0800 (PST)
Message-Id: <20001129054046.8474337B400@hub.freebsd.org>
Date: Tue, 28 Nov 2000 21:40:46 -0800 (PST)
From: richw@webcom.com
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@FreeBSD.org
Subject: xconsole dumps core (XFree86 3.3.6)
X-Send-Pr-Version: www-1.0

>Number:         23168
>Category:       misc
>Synopsis:       xconsole dumps core (XFree86 3.3.6)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 28 21:50:00 PST 2000
>Closed-Date:    Sat Dec 2 18:12:20 PST 2000
>Last-Modified:  Wed Dec  6 11:00:02 PST 2000
>Originator:     Rich Wales
>Release:        4.2-RELEASE
>Organization:
>Environment:
FreeBSD jekyll.richw.org 4.2-RELEASE FreeBSD 4.2-RELEASE #2: Fri Nov 24 23:46:49 PST 2000     richw@jekyll.richw.org:/misc/4.2/usr/src/sys/compile/JEKYLL  i386
>Description:
The "xconsole" call in /usr/X11R6/lib/X11/xdm/Xsetup_0 dumps core:

xconsole -geometry 480x130-0-0 -daemon -notify -verbose -fn fixed -exitOnFail

Backtrace from "gdb":

#0  0x28224885 in strcpy () from /usr/lib/libc.so.4
#1  0x8059865 in ?? ()
#2  0x280ccc70 in XtScreenDatabase () from /usr/X11R6/lib/libXt.so.6
#3  0x280cd6a8 in _XtDisplayInitialize () from /usr/X11R6/lib/libXt.so.6
#4  0x280c45a0 in XtOpenDisplay () from /usr/X11R6/lib/libXt.so.6
#5  0x280c46e4 in _XtAppInit () from /usr/X11R6/lib/libXt.so.6
#6  0x280cd9ae in XtOpenApplication () from /usr/X11R6/lib/libXt.so.6
#7  0x280cdb02 in XtAppInitialize () from /usr/X11R6/lib/libXt.so.6
#8  0x280cdb4b in XtInitialize () from /usr/X11R6/lib/libXt.so.6
#9  0x8049c6b in free ()
#10 0x804921d in free ()

Someone else reported this same problem on freebsd-stable about a month
ago (late October 2000).  He was using "wdm" and attributed the problem
to the use of a DES-encrypted root password.  I'm using MD5 passwords,
however.

>How-To-Repeat:
Start up "xdm" in its default configuration.
>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: dougb 
State-Changed-When: Sat Dec 2 18:12:20 PST 2000 
State-Changed-Why:  

You need to bring this up with the XFree folks. X is 
not part of the FreeBSD base system. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=23168 

From: Rich Wales <richw@webcom.com>
To: freebsd-gnats-submit@freebsd.org
Cc:  
Subject: Re: misc/23168: xconsole dumps core (XFree86 3.3.6)
Date: Wed, 6 Dec 2000 10:58:37 -0800 (PST)

 I've found a workaround to this problem.  Put the following lines in
 /usr/X11R6/lib/X11/xdm/Xsetup_0, before the call to "xconsole":
 
 export USER=root
 export HOME=/root
 
 The problem seems to have something to do with XFree86's _XGetpwuid()
 macro (defined in include/Xos_r.h).  Defining the home directory (in
 this case, root's home) in the environment should cause the broken
 _XGetpwuid() call to be sidestepped.
 
 I'll bring this problem up with the XFree people.
 
 Rich Wales         richw@webcom.com         http://www.webcom.com/richw/
 
 
>Unformatted:
