emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: emacsclient can't connect to socket


From: Mario Domgörgen
Subject: Re: emacsclient can't connect to socket
Date: Mon, 28 Jul 2003 23:44:22 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (gnu/linux)

"Stefan Monnier" <monnier+gnu/emacs/address@hidden> writes:

>> Please describe exactly what actions triggered the bug
>> and the precise symptoms of the bug:
> Which Emacs did you use to write this bug report ?
> [ I thought CVS versions stripped this text before sending the report,
>   so maybe there's a bug in the stripping code. ]

I used the cvs version 20030717 or 20030720, not totally sure as i
compile every two or three days ...

>> When i use emacsclient from a xterm i get the following error:
>> ,----
>> | address@hidden:drache$ emacsclient ~/.emacs 
>> | emacsclient: can't find socket; have you started the server?
>> | To start the server in Emacs, type "M-x server-start".
>> `----
> Which `emacsclient' is this ?
> Could you `strace' it to see which socket it tries to connect to
> in /tmp ?

,---- address@hidden:drache$ /usr/local/bin/emacsclient -V
| emacsclient 21.3.50
`----

,address@hidden:drache$ strace emacsclient ~/.bashrc
| execve("/usr/local/bin/emacsclient", ["emacsclient", "/home/drache/.bashrc", 
"2"], [/* 30 vars */]) = 0
| uname({sys="Linux", node="debian", ...}) = 0
| brk(0)                                  = 0x804aa28
| open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or 
directory)
| open("/etc/ld.so.cache", O_RDONLY)      = 3
| fstat64(3, {st_mode=S_IFREG|0644, st_size=49624, ...}) = 0
| old_mmap(NULL, 49624, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40014000
| close(3)                                = 0
| open("/lib/libc.so.6", O_RDONLY)        = 3
| read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\30\222"..., 1024) = 
1024
| fstat64(3, {st_mode=S_IFREG|0755, st_size=1153784, ...}) = 0
| old_mmap(NULL, 1166560, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40021000
| mprotect(0x40134000, 40160, PROT_NONE)  = 0
| old_mmap(0x40134000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 
0x113000) = 0x40134000
| old_mmap(0x4013a000, 15584, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4013a000
| close(3)                                = 0
| munmap(0x40014000, 49624)               = 0
| socket(PF_UNIX, SOCK_STREAM, 0)         = 3
| brk(0)                                  = 0x804aa28
| brk(0x804aa60)                          = 0x804aa60
| brk(0x804b000)                          = 0x804b000
| uname({sys="Linux", node="debian", ...}) = 0
| geteuid32()                             = 1001
| stat64("/tmp/emacs1001-debian/server", 0xbfffd80c) = -1 ENOENT (No such file 
or directory)
| socket(PF_UNIX, SOCK_STREAM, 0)         = 4
| connect(4, {sa_family=AF_UNIX, path="/var/run/.nscd_socket"}, 110) = -1 
ENOENT (No such file or directory)
| close(4)                                = 0
| open("/etc/nsswitch.conf", O_RDONLY)    = 4
| brk(0x804c000)                          = 0x804c000
| fstat64(4, {st_mode=S_IFREG|0644, st_size=465, ...}) = 0
| old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) 
= 0x40014000
| read(4, "# /etc/nsswitch.conf\n#\n# Example"..., 4096) = 465
| read(4, "", 4096)                       = 0
| close(4)                                = 0
| munmap(0x40014000, 4096)                = 0
| open("/etc/ld.so.cache", O_RDONLY)      = 4
| fstat64(4, {st_mode=S_IFREG|0644, st_size=49624, ...}) = 0
| old_mmap(NULL, 49624, PROT_READ, MAP_PRIVATE, 4, 0) = 0x40014000
| close(4)                                = 0
| open("/lib/libnss_compat.so.2", O_RDONLY) = 4
| read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\25"..., 1024) = 
1024
| fstat64(4, {st_mode=S_IFREG|0644, st_size=40152, ...}) = 0
| old_mmap(NULL, 43256, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x4013e000
| mprotect(0x40148000, 2296, PROT_NONE)   = 0
| old_mmap(0x40148000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 
0x9000) = 0x40148000
| close(4)                                = 0
| open("/lib/libnsl.so.1", O_RDONLY)      = 4
| read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 ;\0\000"..., 1024) = 
1024
| fstat64(4, {st_mode=S_IFREG|0644, st_size=69472, ...}) = 0
| old_mmap(NULL, 80988, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x40149000
| mprotect(0x4015a000, 11356, PROT_NONE)  = 0
| old_mmap(0x4015a000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 
0x10000) = 0x4015a000
| old_mmap(0x4015b000, 7260, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4015b000
| close(4)                                = 0
| munmap(0x40014000, 49624)               = 0
| uname({sys="Linux", node="debian", ...}) = 0
| open("/etc/passwd", O_RDONLY)           = 4
| fcntl64(4, F_GETFD)                     = 0
| fcntl64(4, F_SETFD, FD_CLOEXEC)         = 0
| fstat64(4, {st_mode=S_IFREG|0644, st_size=1217, ...}) = 0
| old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) 
= 0x40014000
| _llseek(4, 0, [0], SEEK_CUR)            = 0
| read(4, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 1217
| close(4)                                = 0
| munmap(0x40014000, 4096)                = 0
| geteuid32()                             = 1001
| write(2, "emacsclient: can\'t find socket; "..., 116emacsclient: can't find 
socket; have you started the server?
| To start the server in Emacs, type "M-x server-start".
| ) = 116
| _exit(1)                                = ?
`----

I posted the whole strace as it wasn't so much and i'm not very used to
that kind of output ... Could that be the important part?

stat64("/tmp/emacs1001-debian/server", 0xbfffd80c) = -1 ENOENT (No such
file or directory)

There are really no such file as it was /tmp/emacs1001-ID-97899/server
...

Mario

-- 
One Editor to rule them all.  One Editor to find them,
One Editor to bring them all and in the darkness bind them.

(do ((a 1 b) (b 1 (+ a b))) (nil a) (print a))





reply via email to

[Prev in Thread] Current Thread [Next in Thread]