Re: [gdm-list] Gdm awaiting for network



Il giorno lun, 25/08/2008 alle 12.43 -0500, Brian Cameron ha scritto:

> The problem might be something relating to gethostname().  If you write
> a standalone program which makes similar calls as in the GDM code,
> does it also hang?

Sorry, I'm just a Linux user, how could I write such a standalone
program?


> You may need to recompile GDM with debug (-g) to get it to tell you
> the function names.  The info you provided, as you notice, isn't so
> useful.

Sorry again, but I have very limited space left on the small ssd of the
eeePC, and compiling gdm should require to install a lot of *-dev
packages...


However, being "/usr/sbin/gdm --config=/etc/gdm/gdm-cdd.conf" the
command I can read when I do:

$ ps ax | grep gdm
12108 ?        Ss     0:00 /usr/sbin/gdm --config=/etc/gdm/gdm-cdd.conf
12109 ?        S      0:00 /usr/sbin/gdm --config=/etc/gdm/gdm-cdd.conf


I've tried what follows:

# strace /usr/sbin/gdm -nodaemon --config=/etc/gdm/gdm-cdd.conf >
gdm-strace.txt 2>&1

[snip]

send(3, "<28>Aug 26 12:09:51 gdm[5129]: D"..., 55, MSG_NOSIGNAL) = 55
write(9, "A\n", 2)                      = 2
kill(5130, SIGUSR2)                     = 0
sched_yield()                           = 0
poll([{fd=4, events=POLLIN|POLLPRI}, {fd=7, events=POLLIN|POLLPRI},
{fd=5, events=POLLIN|POLLPRI, revents=POLLIN}], 3, -1) = 1
read(5, "\nGREETPID 5130 0\n", 4095)    = 17
time(NULL)                              = 1219745391
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2652, ...}) = 0
writev(2, [{"gdm[5129]: DEBUG: Attempting to "..., 69}], 1gdm[5129]:
DEBUG: Attempting to parse key string: debug/Enable=false
) = 69
send(3, "<28>Aug 26 12:09:51 gdm[5129]: D"..., 89, MSG_NOSIGNAL) = 89
time(NULL)                              = 1219745391
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2652, ...}) = 0
writev(2, [{"gdm[5129]: DEBUG: Handling messa"..., 54}], 1gdm[5129]:
DEBUG: Handling message: 'GREETPID 5130 0'
) = 54
send(3, "<28>Aug 26 12:09:51 gdm[5129]: D"..., 74, MSG_NOSIGNAL) = 74
time(NULL)                              = 1219745391
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2652, ...}) = 0
writev(2, [{"gdm[5129]: DEBUG: Got GREETPID ="..., 36}], 1gdm[5129]:
DEBUG: Got GREETPID == 0
) = 36
send(3, "<28>Aug 26 12:09:51 gdm[5129]: D"..., 56, MSG_NOSIGNAL) = 56
write(9, "A\n", 2)                      = 2
kill(5130, SIGUSR2)                     = 0
sched_yield()                           = 0
poll([{fd=4, events=POLLIN|POLLPRI}, {fd=7, events=POLLIN|POLLPRI},
{fd=5, events=POLLIN|POLLPRI, revents=POLLIN}], 3, -1) = 1
read(5, "\nWRITE_X_SERVERS 5130 0\n", 4095) = 24
time(NULL)                              = 1219745419
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2652, ...}) = 0
writev(2, [{"gdm[5129]: DEBUG: Attempting to "..., 69}], 1gdm[5129]:
DEBUG: Attempting to parse key string: debug/Enable=false
) = 69

[here is the delay]

send(3, "<28>Aug 26 12:10:19 gdm[5129]: D"..., 89, MSG_NOSIGNAL) = 89
time(NULL)                              = 1219745419
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2652, ...}) = 0
writev(2, [{"gdm[5129]: DEBUG: Handling messa"..., 61}], 1gdm[5129]:
DEBUG: Handling message: 'WRITE_X_SERVERS 5130 0'
) = 61
send(3, "<28>Aug 26 12:10:19 gdm[5129]: D"..., 81, MSG_NOSIGNAL) = 81
time(NULL)                              = 1219745419
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2652, ...}) = 0
writev(2, [{"gdm[5129]: DEBUG: Attempting to "..., 82}], 1gdm[5129]:
DEBUG: Attempting to parse key string: daemon/ServAuthDir=/var/lib/gdm
) = 82
send(3, "<28>Aug 26 12:10:19 gdm[5129]: D"..., 102, MSG_NOSIGNAL) = 102
unlink("/var/lib/gdm/:0.Xservers")      = -1 ENOENT (No such file or
directory)
open("/var/lib/gdm/:0.Xservers", O_WRONLY|O_CREAT|O_EXCL|O_NOCTTY|
O_TRUNC|O_NOFOLLOW, 0644) = 8
fcntl64(8, F_GETFL)                     = 0x20001 (flags O_WRONLY|
O_NOFOLLOW)
fstat64(8, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7309000
_llseek(8, 0, [0], SEEK_CUR)            = 0
write(8, ":0 local /usr/bin/X :0 -br -audi"..., 64) = 64
close(8)                                = 0
munmap(0xb7309000, 4096)                = 0
write(9, "A\n", 2)                      = 2
kill(5130, SIGUSR2)                     = 0
sched_yield()                           = 0
poll([{fd=4, events=POLLIN|POLLPRI}, {fd=7, events=POLLIN|POLLPRI},
{fd=5, events=POLLIN|POLLPRI, revents=POLLIN}], 3, -1) = 1
read(5, "\nSESSPID 5130 5155\n", 4095)  = 19
time(NULL)                              = 1219745419
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2652, ...}) = 0
writev(2, [{"gdm[5129]: DEBUG: Attempting to "..., 69}], 1gdm[5129]:
DEBUG: Attempting to parse key string: debug/Enable=false
) = 69


If perhaps the output I've pasted here is not enough, I attach the
bunzipped file (just 13.3kB) with all the output, hoping it should be
useful...

Bye


Attachment: gdm-strace.txt.bz2
Description: application/bzip



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]