Version: (using KDE KDE 3.4.3) Installed from: Compiled From Sources Compiler: gcc 3.4.4 OS: Linux When trying to start a new session from a non-local X client by XDMCP, kdm segfaults and the x-server is reset. The problem was traced to the display-configuration not being read from the kdmrc file. The 'LoadDisplayResources' call was removed from 'StartDisplay', but not added to the 'manage' function in xdmcp.c. The patch below corrects this problem. --- kdebase-3.4.3/kdm/backend/xdmcp.c 2005-10-05 15:39:11.000000000 +0200 +++ kdebase-3.4.3/kdm/backend/xdmcp.c 2005-10-14 10:25:17.000000000 +0200 @@ -940,7 +940,13 @@ } DisposeProtoDisplay( pdpy ); Debug( "starting display %s,%s\n", d->name, d->class2 ); - StartDisplay( d ); + if (d->status == notRunning) + if (LoadDisplayResources( d ) < 0 ) { + LogError( "Unable to read configuration for display %s; " + "stopping it.\n", d->name ); + StopDisplay( d ); + else + StartDisplay( d ); CloseGetter(); } }
small error in the patch, below is one that compiles -- kdebase-3.4.3/kdm/backend/xdmcp.c 2005-10-05 15:39:11.000000000 +0200 +++ kdebase-3.4.3/kdm/backend/xdmcp.c 2005-10-14 10:25:17.000000000 +0200 @@ -940,7 +940,14 @@ } DisposeProtoDisplay( pdpy ); Debug( "starting display %s,%s\n", d->name, d->class2 ); - StartDisplay( d ); + if (d->status == notRunning) + if (LoadDisplayResources( d ) < 0 ) { + LogError( "Unable to read configuration for display %s; " + "stopping it.\n", d->name ); + StopDisplay( d ); + } + else + StartDisplay( d ); CloseGetter(); } }
thx, fixed in 3.4 and 3.5 branches. fwiw, the status check is superfluous, as the display was just created in notRunning state. and the compiler might have warned about missing braces.
*** Bug 115592 has been marked as a duplicate of this bug. ***
*** Bug 116143 has been marked as a duplicate of this bug. ***
I had exactly the same problem: when contacting the server via VNC or XDMCP kdm 3.4.3-2 crashed (x86-64 , suse 10.0 with updates). Here I read that it should be fixed by now, so downloaded kdebase3-kdm-3.4.92-1.x86_64.rpm and installed this rpm package and rebooted. The problem still occurs! After trying to contact the server via VNC, the log shows: bernie kernel: kdm[6287]: segfault at 0000000000000000 rip 0000000000418221 rsp 00007fffffb7f790 error 4 Nov 14 11:34:55 bernie kdm[5564]: Unknown session exit code 0 (sig 11) from manager process rpm -qa | grep kdm --> kdebase3-kdm-3.4.92-1 Help! Bernard
*** Bug 116363 has been marked as a duplicate of this bug. ***
*** Bug 117305 has been marked as a duplicate of this bug. ***
*** Bug 123790 has been marked as a duplicate of this bug. ***