Bug 17938 - KDM dumping core in 4.0-STABLE (!)
Summary: KDM dumping core in 4.0-STABLE (!)
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-04-11 23:40 UTC by jss
Modified: 2000-04-26 21:50 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jss 2000-04-11 23:40:02 UTC
When trying to run KDM, the display dies (and KDM dumps core) somewhere
after the sourcing of Xsetup_0 and before the login window appears.


---------- output of kdm -nodaemon -debug 1 ----------

DisplayManager.errorLogFile/DisplayManager.ErrorLogFile value  /usr/X11R6/lib/X11/xdm/xdm-errors
DisplayManager.daemonMode/DisplayManager.DaemonMode value  false
DisplayManager.pidFile/DisplayManager.PidFile value  /usr/X11R6/lib/X11/xdm/xdm-pid
DisplayManager.lockPidFile/DisplayManager.LockPidFile value true
DisplayManager.authDir/DisplayManager.authDir value /usr/X11R6/lib/X11/xdm/authdir
DisplayManager.autoRescan/DisplayManager.AutoRescan value true
DisplayManager.removeDomainname/DisplayManager.RemoveDomainname value true
DisplayManager.keyFile/DisplayManager.KeyFile value  /usr/X11R6/lib/X11/xdm/xdm-keys
DisplayManager.accessFile/DisplayManager.AccessFile value  /usr/X11R6/lib/X11/xdm/Xaccess
DisplayManager.exportList/DisplayManager.ExportList value
DisplayManager.randomFile/DisplayManager.RandomFile value /dev/mem
DisplayManager.greeterLib/DisplayManager.GreeterLib value
DisplayManager.choiceTimeout/DisplayManager.ChoiceTimeout value 15
 /usr/X11R6/bin/X
StartDisplay :0
DisplayManager._0.serverAttempts/DisplayManager._0.ServerAttempts value 1
DisplayManager._0.openDelay/DisplayManager._0.OpenDelay value 15
DisplayManager._0.openRepeat/DisplayManager._0.OpenRepeat value 5
DisplayManager._0.openTimeout/DisplayManager._0.OpenTimeout value 120
DisplayManager._0.startAttempts/DisplayManager._0.StartAttempts value 4
DisplayManager._0.pingInterval/DisplayManager._0.PingInterval value 5
DisplayManager._0.pingTimeout/DisplayManager._0.PingTimeout value 5
DisplayManager._0.terminateServer/DisplayManager._0.TerminateServer value false
DisplayManager._0.grabServer/DisplayManager._0.GrabServer value false
DisplayManager._0.grabTimeout/DisplayManager._0.GrabTimeout value 3
DisplayManager._0.resetSignal/DisplayManager._0.Signal value 1
DisplayManager._0.termSignal/DisplayManager._0.Signal value 15
DisplayManager._0.resetForAuth/DisplayManager._0.ResetForAuth value false
DisplayManager._0.authorize/DisplayManager._0.Authorize value  true
DisplayManager._0.authComplain/DisplayManager._0.AuthComplain value  false
DisplayManager._0.authName/DisplayManager._0.AuthName value MIT-MAGIC-COOKIE-1
DisplayManager._0.authFile/DisplayManager._0.AuthFile value
SetLocalAuthorization :0, auth MIT-MAGIC-COOKIE-1
GenerateAuthorization MIT-MAGIC-COOKIE-1
Got 0x8076dc0 (18 MIT-MAGIC-COOKIE-1)  74 c9 44 3a 1e d8 3b 44 5d bd b5 7a bd 13 1d d8
File: /usr/X11R6/lib/X11/xdm/authdir/A:0-QSm781 auth: 807a680
StartServer for :0
Server Started 784
display manager paused til SIGUSR1
pid: 785
WaitForSomething
signals blocked, mask was 0x0
Manager wait returns pid: 785 sig 139 core 0 code 0
Display exited with unknown status 35584
WaitForSomething
signals blocked, mask was 0x0
Manager wait returns pid: 784 sig 0 core 0 code 0
Zombie server reaped, removing display :0
Nothing left to do, exiting


---------- xdm-config file ----------

DisplayManager.errorLogFile:    /usr/X11R6/lib/X11/xdm/xdm-errors
DisplayManager.pidFile:         /usr/X11R6/lib/X11/xdm/xdm-pid
DisplayManager.keyFile:         /usr/X11R6/lib/X11/xdm/xdm-keys
DisplayManager.servers:         /usr/X11R6/lib/X11/xdm/Xservers
DisplayManager.accessFile:      /usr/X11R6/lib/X11/xdm/Xaccess
DisplayManager.requestPort:     0
DisplayManager._0.authorize:    true
DisplayManager._0.setup:        /usr/X11R6/lib/X11/xdm/Xsetup_0
DisplayManager._0.startup:      /usr/X11R6/lib/X11/xdm/GiveConsole
DisplayManager._0.reset:        /usr/X11R6/lib/X11/xdm/TakeConsole
DisplayManager._0.userPath:     /bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
DisplayManager._0.systemPath:   /sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin
DisplayManager*resources:       /usr/X11R6/lib/X11/xdm/Xresources
DisplayManager*session:         /usr/X11R6/lib/X11/xdm/Xsession
DisplayManager*authComplain:    false

How-To-Repeat: Install 4.0-RELEASE from CD.
CVSup cvs-all and ports-all to RELENG_4.
Install /usr/ports/x11/kde11
Try to run "kdm -nodaemon".
Comment 1 jss 2000-04-12 02:51:24 UTC
> Install 4.0-RELEASE from CD.
> CVSup cvs-all and ports-all to RELENG_4.
> Install /usr/ports/x11/kde11
> Try to run "kdm -nodaemon".
Duh, forgot:  Insert "make world" after the CVSup.

--
Jeffrey S. Sharp   (XorAxAx)
jss@subatomix.com

-----BEGIN GEEK CODE BLOCK-----
Version 3.12
GCS/IT/MU d-@ s-:+ a21 C++(++++) UBL+(+++$)> P L+(+++$)>
E+> W++ N+(++) o? K? w++$> !O M(-) !V PS+ PE Y PGP- t+ 
5 X+ R(+) tv+ b+ DI++(+++) G++ e> h--- r+++ y+++
------END GEEK CODE BLOCK------
Comment 2 jss 2000-04-17 22:59:34 UTC
The following is a possible workaround for ports/17938.  It worked for me
and at least one other person who was experiencing this
problem.  Basically, all one needs to to is recompile KDM without
optimization:

cd /usr/ports/x11/kdebase11
make configure
cd work/kdebase-1.1.2/kdm
# Edit Makefile and remove the three instances of "-O"
gmake
gmake install
cd ../../..
make clean

I hope this helps to narrow down where the problem is.

--
Jeffrey S. Sharp   (XorAxAx)
jss@subatomix.com

-----BEGIN GEEK CODE BLOCK-----
Version 3.12
GCS/IT/MU d-@ s-:+ a21 C++(++++) UBL+(+++$)> P L+(+++$)>
E+> W++ N+(++) o? K? w++$> !O M(-) !V PS+ PE Y PGP- t+ 
5 X+ R(+) tv+ b+ DI++(+++) G++ e> h--- r+++ y+++
------END GEEK CODE BLOCK------
Comment 3 cpiazza freebsd_committer freebsd_triage 2000-04-26 21:42:14 UTC
State Changed
From-To: open->closed

Workaround added, thanks! 

Comment 4 cpiazza 2000-04-26 21:42:15 UTC
On Mon, Apr 17, 2000 at 03:00:03PM -0700, Jeffrey S. Sharp wrote:
> The following reply was made to PR ports/17938; it has been noted by GNATS.

>  The following is a possible workaround for ports/17938.  It worked for me
>  and at least one other person who was experiencing this
>  problem.  Basically, all one needs to to is recompile KDM without
>  optimization:
>  
>  I hope this helps to narrow down where the problem is.

Worked for me.  I'm going to add a patch to the port to put -O0 after
CFLAGS/CXXFLAGS in kdm/Makefile which should fix this problem.

You can add this patch below as ports/x11/kdebase/patches/patch-az
or just cvsup in a little while.

-Chris