Subject: 23.0.60; OSX: Wrong type argument: wholenump, -1

From: Markus Triska <[email-masked]>
Date: Thu, 25 Dec 2008 02:43:02 +0100 (CET)

On OSX 10.4 with X11, when I do:

   $ emacs -Q -f server-start

and in another terminal do exactly the same:

   $ emacs -Q -f server-start

then the second Emacs instance shows the following error message:

   Wrong type argument: wholenump, -1

When I do M-x toggle-debug-on-error before calling `server-start' in
the second instance, then the Lisp backtrace is (byte-code omitted):

   Debugger entered--Lisp error: (wrong-type-argument wholenump -1)
     make-network-process(:name "server-client-test" :family local :server nil :noquery t :service "/tmp/emacs502/server")
     byte-code("<omitted>" [server-use-tcp temp-buffer name server-auth-dir server-socket-dir generate-new-buffer " *temp*" ((byte-code "<omitted>" [temp-buffer buffer-name kill-buffer] 2)) insert-file-contents-literally expand-file-name looking-at "127.0.0.1:[0-9]+ \\([0-9]+\\)" comm system-process-attributes string-to-number match-string 1 t :other delete-process make-network-process :name "server-client-test" :family local :server nil :noquery :service] 14)
     server-running-p("server")
     server-start(nil)
     call-interactively(server-start t nil)
     execute-extended-command(nil)
     call-interactively(execute-extended-command nil nil)

The file /tmp/emacs502/server is:

  srwx------   1 mt    wheel    0 25 Dec 02:27 server

In GNU Emacs 23.0.60.1 (i386-apple-darwin8.11.1, GTK+ Version 2.12.9)
 of 2008-12-25 on mt-computer.local
Windowing system distributor `The XFree86 Project, Inc', version 11.0.40400000
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_GB.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: nil
  default-enable-multibyte-characters: t