Gentoo Archives: gentoo-desktop

From: Liu Chuan <chuan.sam@×××××.com>
To: gentoo-desktop@l.g.o
Subject: [gentoo-desktop] Re: strange problem with kdm
Date: Sun, 28 Aug 2005 11:04:06
Message-Id: 19f373bf05082804001fe9cd47@mail.gmail.com
In Reply to: [gentoo-desktop] Re: strange problem with kdm by Duncan <1i5t5.duncan@cox.net>
1 After unset all environment variable, it can still start kdm from command line.
2 What are the some other factors that may cause the problem?
3 It there any info that can be deduced from following error message.
4 > > kdm[5526]: unknow session exit code 0 (sig 9) from manager process
5
6
7 Chuan
8
9 On 8/27/05, Duncan <1i5t5.duncan@×××.net> wrote:
10 > Liu Chuan posted <19f373bf05082622587a2f8410@××××××××××.com>, excerpted
11 > below, on Sat, 27 Aug 2005 13:58:20 +0800:
12 >
13 > > After installing kde through "emerge kdebase-meta" and test with
14 > > "startx" of no problem, I add xdm to default runlevel with modifying
15 > > display manager to kdm in "rc.conf". However when I reboot the
16 > > computer, the screen turn black for a second and then up without kdm
17 > > start. The log file only contain following info about kdm:
18 > >
19 > > kdm[5526]: x server for display: 0 terminated unexpectedly
20 > > kdm[5526]: unknow session exit code 0 (sig 9) from manager process
21 > >
22 > > "ps -ef" show kdm[5526] are still running.
23 > > However when I del xdm from default runlevel or kill 5526 then type:
24 > > /etc/init.d/xdm start
25 > > the kdm just turn out to run smoothly.
26 > >
27 > > Start with default xdm in rc.conf also had no problem.
28 > > It is so strange that there is no problem to start kdm after login
29 > > from command line, and only to fail at start-up in default runlevel.
30 > >
31 > > Any idea about the problem appreciated.
32 > > Actually I want to know what is the difference between running
33 > > "/etc/init.d/script start" and running from default level.
34 >
35 > This could very likely be a real-world example of something that came up
36 > on the dev list recently. As currently implemented, stuff started from a
37 > runlevel doesn't get the normal environment that something started from
38 > the command line will inherit. There was at least one other bug relating
39 > to this as discussed in that thread, tho I don't remember what the package
40 > was.
41 >
42 > In any case, everyone in the discussion agreed that the environments
43 > should /not/ differ if an init.d script is run directly from the command
44 > line, and that the start-stop daemon or init script /should/ clear the
45 > environment of anything it wouldn't have if started by the runlevel, to
46 > avoid exactly this type of issue with varying behavior one way as opposed
47 > to the other.
48 >
49 > Therefore, if the KDE guys don't step in and say something different
50 > within a day or two, I'd suggest filing a bug on it. Meanwhile, you can
51 > take a look at your exported environment and start whiddling down the
52 > candidates. Perhaps it'd be useful to try clearing the (exported)
53 > environment altogether, then trying to invoke the xdm init script, to see
54 > if it still works that way or not. If this /is/ the issue, it should then
55 > fail from the command line as well, and you can start the whiddling
56 > process on the exported environment you normally run. If it doesn't fail
57 > with an empty exported environment, then it's some other factor, but I'm
58 > guessing it will. Of course, mentioning your findings on the bug when you
59 > file it should be helpful, as well.
60 >
61 > --
62 > Duncan - List replies preferred. No HTML msgs.
63 > "Every nonfree program has a lord, a master --
64 > and if you use the program, he is your master." Richard Stallman in
65 > http://www.linuxdevcenter.com/pub/a/linux/2004/12/22/rms_interview.html
66 >
67 >
68 > --
69 > gentoo-desktop@g.o mailing list
70 >
71 >
72
73 --
74 gentoo-desktop@g.o mailing list

Replies

Subject Author
[gentoo-desktop] Re: strange problem with kdm Duncan <1i5t5.duncan@×××.net>