Bug 23168

Summary: xconsole dumps core (XFree86 3.3.6)
Product: Base System Reporter: richw <richw>
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.2-RELEASE   
Hardware: Any   
OS: Any   

Description richw 2000-11-29 05:50:00 UTC
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.
Comment 1 Doug Barton freebsd_committer freebsd_triage 2000-12-03 02:12:20 UTC
State Changed
From-To: open->closed


You need to bring this up with the XFree folks. X is 
not part of the FreeBSD base system.
Comment 2 richw 2000-12-06 18:58:37 UTC
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/