all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#44285: 27.1; Invalid function: make-local-variable
@ 2020-10-28 15:50 noosphere
  2020-10-28 17:21 ` Eli Zaretskii
  0 siblings, 1 reply; 15+ messages in thread
From: noosphere @ 2020-10-28 15:50 UTC (permalink / raw)
  To: 44285

When trying to start emacs with "emacs --daemon" (with or without the
 -Q option, I immediately get an error:

  emacs: Invalid function: make-local-variable
  Error: server did not start correctly

No other information is shown, and adding a --debug-init option does not
yield any more information.

Starting emacs without the --daemon option works fine.

This emacs was installed on Windows 8.1 on Cygwin, using Cygwin's
"setup-x86_64.exe" tool, but I've also been able to reproduce
the issue under an Emacs I compiled from scratch myself under Cygwin.

Here is some information about the Cygwin Emacs I originally had the
 issue on:

In GNU Emacs 27.1 (build 1, x86_64-pc-cygwin)
 of 2020-08-11 built on moufang2
Repository revision: cd26579a2b4e9d78b6b39bd6fb4b4536d02c0b8b
Repository branch: master
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Making completion list...

Configured using:
 'configure
 --srcdir=/home/kbrown/src/cygpackages/emacs/emacs-27.1-1.x86_64/src/emacs-27.1
 --prefix=/usr --exec-prefix=/usr --localstatedir=/var --sysconfdir=/etc
 --docdir=/usr/share/doc/emacs --htmldir=/usr/share/doc/emacs/html -C
 --with-x=no 'CFLAGS=-ggdb -O2 -pipe -Wall -Werror=format-security
 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong
 --param=ssp-buffer-size=4
 -fdebug-prefix-map=/home/kbrown/src/cygpackages/emacs/emacs-27.1-1.x86_64/build=/usr/src/debug/emacs-27.1-1
 -fdebug-prefix-map=/home/kbrown/src/cygpackages/emacs/emacs-27.1-1.x86_64/src/emacs-27.1=/usr/src/debug/emacs-27.1-1'
 CPPFLAGS= LDFLAGS='

Configured features:
SOUND DBUS GLIB NOTIFY GFILENOTIFY ACL GNUTLS LIBXML2 ZLIB XIM MODULES
THREADS JSON PDUMPER LCMS2 GMP

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  electric-indent-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs
format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg
epg-config gnus-util rmail tool-bar rmail-loaddefs text-property-search
time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils regexp-opt tooltip eldoc electric uniquify
ediff-hook vc-hooks lisp-float-type tabulated-list replace newcomment
text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar
rfn-eshadow isearch timer select mouse jit-lock font-lock syntax
facemenu font-core term/tty-colors frame minibuffer cl-generic cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese composite charscript charprop
case-table epa-hook jka-cmpr-hook help simple abbrev obarray
cl-preloaded nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote threads dbusbind
gfilenotify lcms2 multi-tty make-network-process emacs)

Memory information:
((conses 16 43114 8598)
 (symbols 48 5906 1)
 (strings 32 15564 1982)
 (string-bytes 1 513096)
 (vectors 16 7501)
 (vector-slots 8 84178 6320)
 (floats 8 18 347)
 (intervals 56 207 1)
 (buffers 1000 12))





^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#44285: 27.1; Invalid function: make-local-variable
  2020-10-28 15:50 bug#44285: 27.1; Invalid function: make-local-variable noosphere
@ 2020-10-28 17:21 ` Eli Zaretskii
       [not found]   ` <874kmexn4d.fsf@mailc.net>
  0 siblings, 1 reply; 15+ messages in thread
From: Eli Zaretskii @ 2020-10-28 17:21 UTC (permalink / raw)
  To: noosphere; +Cc: 44285

> From: noosphere@mailc.net
> Date: Wed, 28 Oct 2020 08:50:24 -0700
> 
> When trying to start emacs with "emacs --daemon" (with or without the
>  -Q option, I immediately get an error:
> 
>   emacs: Invalid function: make-local-variable
>   Error: server did not start correctly
> 
> No other information is shown, and adding a --debug-init option does not
> yield any more information.
> 
> Starting emacs without the --daemon option works fine.

Can you run Emacs under GDB and show the backtrace from the error
locus?





^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#44285: 27.1; Invalid function: make-local-variable
       [not found]   ` <874kmexn4d.fsf@mailc.net>
@ 2020-10-28 17:47     ` Eli Zaretskii
  2020-10-28 18:46       ` noosphere
  0 siblings, 1 reply; 15+ messages in thread
From: Eli Zaretskii @ 2020-10-28 17:47 UTC (permalink / raw)
  To: noosphere; +Cc: 44285

[Please use Reply All to keep the bug tracker oon the CC list.]

> From: <noosphere@mailc.net>
> Date: Wed, 28 Oct 2020 10:43:14 -0700
> 
> On Wed 28 Oct 2020 07:21:50 PM +02, Eli Zaretskii wrote:
> >
> > Can you run Emacs under GDB and show the backtrace from the error
> > locus?
> 
> Could someone tell me what commands I'd need to give GDB to have it
> break at the point of interest?

  $ gdb ./emacs.exe
  ...
  (gdb) break Fsignal
  (gdb) r -Q --daemon






^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#44285: 27.1; Invalid function: make-local-variable
  2020-10-28 17:47     ` Eli Zaretskii
@ 2020-10-28 18:46       ` noosphere
  2020-10-28 19:23         ` Eli Zaretskii
  0 siblings, 1 reply; 15+ messages in thread
From: noosphere @ 2020-10-28 18:46 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 44285

%  gdb /usr/local/apps/emacs-27.1/bin/emacs-27.1.exe
GNU gdb (GDB) (Cygwin 8.3.1-1) 8.3.1
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-cygwin".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/apps/emacs-27.1/bin/emacs-27.1.exe...
(gdb) break Fsignal
Breakpoint 1 at 0x1005d712f: file eval.c, line 1565.
(gdb) r -Q --daemon
Starting program: /usr/local/apps/emacs-27.1/bin/emacs-27.1.exe -Q --daemon
[New Thread 1876.0xe28]
warning: Application "\??\C:\cygwin64\usr\local\apps\emacs-27.1\bin\emacs-27.1.exe" found in cache
[New Thread 1876.0xbd4]
emacs: Invalid function: make-local-variable
Error: server did not start correctly
[Thread 1876.0xbd4 exited with code 0]
[Thread 1876.0x71c exited with code 1]
[Inferior 1 (process 1876) exited with code 01]
(gdb) bt
No stack.


On Wed, Oct 28, 2020, at 10:47 AM, Eli Zaretskii wrote:
> [Please use Reply All to keep the bug tracker oon the CC list.]
> 
> > From: <noosphere@mailc.net>
> > Date: Wed, 28 Oct 2020 10:43:14 -0700
> > 
> > On Wed 28 Oct 2020 07:21:50 PM +02, Eli Zaretskii wrote:
> > >
> > > Can you run Emacs under GDB and show the backtrace from the error
> > > locus?
> > 
> > Could someone tell me what commands I'd need to give GDB to have it
> > break at the point of interest?
> 
>   $ gdb ./emacs.exe
>   ...
>   (gdb) break Fsignal
>   (gdb) r -Q --daemon
> 
>





^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#44285: 27.1; Invalid function: make-local-variable
  2020-10-28 18:46       ` noosphere
@ 2020-10-28 19:23         ` Eli Zaretskii
  2020-10-28 19:31           ` noosphere
  0 siblings, 1 reply; 15+ messages in thread
From: Eli Zaretskii @ 2020-10-28 19:23 UTC (permalink / raw)
  To: noosphere; +Cc: 44285

> Date: Wed, 28 Oct 2020 11:46:45 -0700
> From: noosphere@mailc.net
> Cc: 44285@debbugs.gnu.org
> 
> (gdb) break Fsignal
> Breakpoint 1 at 0x1005d712f: file eval.c, line 1565.
> (gdb) r -Q --daemon
> Starting program: /usr/local/apps/emacs-27.1/bin/emacs-27.1.exe -Q --daemon
> [New Thread 1876.0xe28]
> warning: Application "\??\C:\cygwin64\usr\local\apps\emacs-27.1\bin\emacs-27.1.exe" found in cache
> [New Thread 1876.0xbd4]
> emacs: Invalid function: make-local-variable
> Error: server did not start correctly
> [Thread 1876.0xbd4 exited with code 0]
> [Thread 1876.0x71c exited with code 1]
> [Inferior 1 (process 1876) exited with code 01]
> (gdb) bt
> No stack.

OK, now try the same, but instead of

  (gdb) break Fsignal

say

  (gdb) break vfatal

Thanks.





^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#44285: 27.1; Invalid function: make-local-variable
  2020-10-28 19:23         ` Eli Zaretskii
@ 2020-10-28 19:31           ` noosphere
  2020-10-28 19:52             ` Eli Zaretskii
  0 siblings, 1 reply; 15+ messages in thread
From: noosphere @ 2020-10-28 19:31 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 44285

%  gdb /usr/local/apps/emacs-27.1/bin/emacs-27.1.exe
GNU gdb (GDB) (Cygwin 8.3.1-1) 8.3.1
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-cygwin".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/apps/emacs-27.1/bin/emacs-27.1.exe...
(gdb) break vfatal
Breakpoint 1 at 0x1005d1444: file term.c, line 4404.
(gdb) r -Q --daemon
Starting program: /usr/local/apps/emacs-27.1/bin/emacs-27.1.exe -Q --daemon
[New Thread 4008.0xc10]
warning: Application "\??\C:\cygwin64\usr\local\apps\emacs-27.1\bin\emacs-27.1.exe" found in cache
[New Thread 4008.0xd2c]
emacs: Invalid function: make-local-variable
Error: server did not start correctly
[Thread 4008.0xd2c exited with code 0]
[Thread 4008.0x9a8 exited with code 1]
[Inferior 1 (process 4008) exited with code 01]
(gdb) bt
No stack.


On Wed, Oct 28, 2020, at 12:23 PM, Eli Zaretskii wrote:
> > Date: Wed, 28 Oct 2020 11:46:45 -0700
> > From: noosphere@mailc.net
> > Cc: 44285@debbugs.gnu.org
> > 
> > (gdb) break Fsignal
> > Breakpoint 1 at 0x1005d712f: file eval.c, line 1565.
> > (gdb) r -Q --daemon
> > Starting program: /usr/local/apps/emacs-27.1/bin/emacs-27.1.exe -Q --daemon
> > [New Thread 1876.0xe28]
> > warning: Application "\??\C:\cygwin64\usr\local\apps\emacs-27.1\bin\emacs-27.1.exe" found in cache
> > [New Thread 1876.0xbd4]
> > emacs: Invalid function: make-local-variable
> > Error: server did not start correctly
> > [Thread 1876.0xbd4 exited with code 0]
> > [Thread 1876.0x71c exited with code 1]
> > [Inferior 1 (process 1876) exited with code 01]
> > (gdb) bt
> > No stack.
> 
> OK, now try the same, but instead of
> 
>   (gdb) break Fsignal
> 
> say
> 
>   (gdb) break vfatal
> 
> Thanks.
>





^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#44285: 27.1; Invalid function: make-local-variable
  2020-10-28 19:31           ` noosphere
@ 2020-10-28 19:52             ` Eli Zaretskii
  2020-10-28 19:57               ` noosphere
  0 siblings, 1 reply; 15+ messages in thread
From: Eli Zaretskii @ 2020-10-28 19:52 UTC (permalink / raw)
  To: noosphere; +Cc: 44285

> Date: Wed, 28 Oct 2020 12:31:36 -0700
> From: noosphere@mailc.net
> Cc: 44285@debbugs.gnu.org
> 
> (gdb) break vfatal
> Breakpoint 1 at 0x1005d1444: file term.c, line 4404.
> (gdb) r -Q --daemon
> Starting program: /usr/local/apps/emacs-27.1/bin/emacs-27.1.exe -Q --daemon
> [New Thread 4008.0xc10]
> warning: Application "\??\C:\cygwin64\usr\local\apps\emacs-27.1\bin\emacs-27.1.exe" found in cache
> [New Thread 4008.0xd2c]
> emacs: Invalid function: make-local-variable
> Error: server did not start correctly
> [Thread 4008.0xd2c exited with code 0]
> [Thread 4008.0x9a8 exited with code 1]
> [Inferior 1 (process 4008) exited with code 01]

Sorry, forgot one tricky bit.  Try this instead:

 $ gdb ./emacs.exe
 ...
 (gdb) break vfatal
 (gdb) set follow-fork-mode child
 (gdb r -Q --daemon






^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#44285: 27.1; Invalid function: make-local-variable
  2020-10-28 19:52             ` Eli Zaretskii
@ 2020-10-28 19:57               ` noosphere
  2020-10-28 20:00                 ` Eli Zaretskii
  0 siblings, 1 reply; 15+ messages in thread
From: noosphere @ 2020-10-28 19:57 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 44285

Still no luck.

%  gdb /usr/local/apps/emacs-27.1/bin/emacs-27.1.exe
GNU gdb (GDB) (Cygwin 8.3.1-1) 8.3.1
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-cygwin".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/apps/emacs-27.1/bin/emacs-27.1.exe...
(gdb) break vfatal
Breakpoint 1 at 0x1005d1444: file term.c, line 4404.
(gdb) set follow-fork-mode child
(gdb) r -Q --daemon
Starting program: /usr/local/apps/emacs-27.1/bin/emacs-27.1.exe -Q --daemon
[New Thread 4044.0x1780]
warning: Application "\??\C:\cygwin64\usr\local\apps\emacs-27.1\bin\emacs-27.1.exe" found in cache
[New Thread 4044.0x1794]
emacs: Invalid function: make-local-variable
Error: server did not start correctly
[Thread 4044.0x1794 exited with code 0]
[Thread 4044.0x1738 exited with code 1]
[Inferior 1 (process 4044) exited with code 01]
(gdb) bt
No stack.


On Wed, Oct 28, 2020, at 12:52 PM, Eli Zaretskii wrote:
> > Date: Wed, 28 Oct 2020 12:31:36 -0700
> > From: noosphere@mailc.net
> > Cc: 44285@debbugs.gnu.org
> > 
> > (gdb) break vfatal
> > Breakpoint 1 at 0x1005d1444: file term.c, line 4404.
> > (gdb) r -Q --daemon
> > Starting program: /usr/local/apps/emacs-27.1/bin/emacs-27.1.exe -Q --daemon
> > [New Thread 4008.0xc10]
> > warning: Application "\??\C:\cygwin64\usr\local\apps\emacs-27.1\bin\emacs-27.1.exe" found in cache
> > [New Thread 4008.0xd2c]
> > emacs: Invalid function: make-local-variable
> > Error: server did not start correctly
> > [Thread 4008.0xd2c exited with code 0]
> > [Thread 4008.0x9a8 exited with code 1]
> > [Inferior 1 (process 4008) exited with code 01]
> 
> Sorry, forgot one tricky bit.  Try this instead:
> 
>  $ gdb ./emacs.exe
>  ...
>  (gdb) break vfatal
>  (gdb) set follow-fork-mode child
>  (gdb r -Q --daemon
> 
>





^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#44285: 27.1; Invalid function: make-local-variable
  2020-10-28 19:57               ` noosphere
@ 2020-10-28 20:00                 ` Eli Zaretskii
  2020-10-28 21:24                   ` noosphere
  0 siblings, 1 reply; 15+ messages in thread
From: Eli Zaretskii @ 2020-10-28 20:00 UTC (permalink / raw)
  To: noosphere; +Cc: 44285

> Date: Wed, 28 Oct 2020 12:57:12 -0700
> From: noosphere@mailc.net
> Cc: 44285@debbugs.gnu.org
> 
> Still no luck.

Sorry, I guess I'm too stupid.

How about asking about this on the Cygwin list?





^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#44285: 27.1; Invalid function: make-local-variable
  2020-10-28 20:00                 ` Eli Zaretskii
@ 2020-10-28 21:24                   ` noosphere
  2020-10-29  1:46                     ` noosphere
  0 siblings, 1 reply; 15+ messages in thread
From: noosphere @ 2020-10-28 21:24 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 44285

Thank you for trying.

For the record, I just started a thread on the Cygwin mailing list here:

  https://cygwin.com/pipermail/cygwin/2020-October/246613.html

On Wed, Oct 28, 2020, at 1:00 PM, Eli Zaretskii wrote:
> > Date: Wed, 28 Oct 2020 12:57:12 -0700
> > From: noosphere@mailc.net
> > Cc: 44285@debbugs.gnu.org
> > 
> > Still no luck.
> 
> Sorry, I guess I'm too stupid.
> 
> How about asking about this on the Cygwin list?
>





^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#44285: 27.1; Invalid function: make-local-variable
  2020-10-28 21:24                   ` noosphere
@ 2020-10-29  1:46                     ` noosphere
  2020-10-29  3:00                       ` noosphere
  0 siblings, 1 reply; 15+ messages in thread
From: noosphere @ 2020-10-29  1:46 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 44285

I've managed to get a backtrace by breaking on "exit".  I also had to recompile Emacs with debugging symbols in order to get full debugging information (installing emacs-debuginfo was not enough).

Here's how I configured Emacs:  ./configure CFLAGS='-O0 -ggdb3 -rdynamic' --prefix=/usr/local/apps/emacs --with-x-toolkit=no --with-xpm=ifavailable --with-jpeg=ifavailable --with-gif=ifavailable --with-tiff=ifavailable --with-gnutls=ifavailable

Here is the backtrace:

%  gdb /usr/local/apps/emacs-27.1/bin/emacs-27.1.exe
GNU gdb (GDB) (Cygwin 10.1-1) 10.1
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-cygwin".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/apps/emacs-27.1/bin/emacs-27.1.exe...
(gdb) b exit
Breakpoint 1 at 0x10081c950
(gdb) run -Q --daemon
Starting program: /usr/local/apps/emacs-27.1/bin/emacs-27.1.exe -Q --daemon
[New Thread 3220.0x16ec]
warning: Application "\??\C:\cygwin64\usr\local\apps\emacs-27.1\bin\emacs-27.1.exe" found in cache
[New Thread 3220.0x16b0]
emacs: Invalid function: make-local-variable
Error: server did not start correctly

Thread 1 "emacs-27.1" hit Breakpoint 1, exit (code=1) at /usr/src/debug/cygwin-3.1.7-1/newlib/libc/stdlib/exit.c:54
54      {
(gdb) set print pretty
(gdb) bt full
#0  exit (code=1) at /usr/src/debug/cygwin-3.1.7-1/newlib/libc/stdlib/exit.c:54
No locals.
#1  0x00000001800496e3 in cygwin_exit (n=1) at /usr/src/debug/cygwin-3.1.7-1/winsup/cygwin/dcrt0.cc:1282
No locals.
#2  0x000000018013e96b in _sigfe () at sigfe.s:35
No locals.
#3  0x00000001005a8090 in main (argc=3, argv=0xffffcc30) at emacs.c:1444
        retval = 0
        buf = ""
        f = 50925
        stack_bottom_variable = 0x0
        do_initial_setlocale = true
        no_loadup = false
        junk = 0x0
        dname_arg = 0x0
        ch_to_dir = 0x0
        original_pwd = 0x0
        dump_mode = 0x0
        skip_args = 1
        temacs = 0x0
        attempt_load_pdump = true
        sockfd = -1
        module_assertions = false

On Wed, Oct 28, 2020, at 2:24 PM, noosphere@mailc.net wrote:
> Thank you for trying.
> 
> For the record, I just started a thread on the Cygwin mailing list here:
> 
>   https://cygwin.com/pipermail/cygwin/2020-October/246613.html
> 
> On Wed, Oct 28, 2020, at 1:00 PM, Eli Zaretskii wrote:
> > > Date: Wed, 28 Oct 2020 12:57:12 -0700
> > > From: noosphere@mailc.net
> > > Cc: 44285@debbugs.gnu.org
> > > 
> > > Still no luck.
> > 
> > Sorry, I guess I'm too stupid.
> > 
> > How about asking about this on the Cygwin list?
> >





^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#44285: 27.1; Invalid function: make-local-variable
  2020-10-29  1:46                     ` noosphere
@ 2020-10-29  3:00                       ` noosphere
  2020-10-29 12:53                         ` Ken Brown
  0 siblings, 1 reply; 15+ messages in thread
From: noosphere @ 2020-10-29  3:00 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 44285

Ken Brown on the Cygwin mailing list posted the following patch, which worked for me:

--- a/src/emacs.c
+++ b/src/emacs.c
@@ -170,7 +170,7 @@ #define MAIN_PROGRAM
     We mark being in the exec'd process by a daemon name argument of
     form "--daemon=\nFD0,FD1\nNAME" where FD are the pipe file descriptors,
     NAME is the original daemon name, if any. */
-#if defined NS_IMPL_COCOA || (defined HAVE_NTGUI && defined CYGWIN)
+#if defined NS_IMPL_COCOA || defined CYGWIN
  # define DAEMON_MUST_EXEC
  #endif

On Wed, Oct 28, 2020, at 6:46 PM, noosphere@mailc.net wrote:
> I've managed to get a backtrace by breaking on "exit".  I also had to 
> recompile Emacs with debugging symbols in order to get full debugging 
> information (installing emacs-debuginfo was not enough).
> 
> Here's how I configured Emacs:  ./configure CFLAGS='-O0 -ggdb3 
> -rdynamic' --prefix=/usr/local/apps/emacs --with-x-toolkit=no 
> --with-xpm=ifavailable --with-jpeg=ifavailable --with-gif=ifavailable 
> --with-tiff=ifavailable --with-gnutls=ifavailable
> 
> Here is the backtrace:
> 
> %  gdb /usr/local/apps/emacs-27.1/bin/emacs-27.1.exe
> GNU gdb (GDB) (Cygwin 10.1-1) 10.1
> Copyright (C) 2020 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
> Type "show copying" and "show warranty" for details.
> This GDB was configured as "x86_64-pc-cygwin".
> Type "show configuration" for configuration details.
> For bug reporting instructions, please see:
> <https://www.gnu.org/software/gdb/bugs/>.
> Find the GDB manual and other documentation resources online at:
>     <http://www.gnu.org/software/gdb/documentation/>.
> 
> For help, type "help".
> Type "apropos word" to search for commands related to "word"...
> Reading symbols from /usr/local/apps/emacs-27.1/bin/emacs-27.1.exe...
> (gdb) b exit
> Breakpoint 1 at 0x10081c950
> (gdb) run -Q --daemon
> Starting program: /usr/local/apps/emacs-27.1/bin/emacs-27.1.exe -Q 
> --daemon
> [New Thread 3220.0x16ec]
> warning: Application 
> "\??\C:\cygwin64\usr\local\apps\emacs-27.1\bin\emacs-27.1.exe" found in 
> cache
> [New Thread 3220.0x16b0]
> emacs: Invalid function: make-local-variable
> Error: server did not start correctly
> 
> Thread 1 "emacs-27.1" hit Breakpoint 1, exit (code=1) at 
> /usr/src/debug/cygwin-3.1.7-1/newlib/libc/stdlib/exit.c:54
> 54      {
> (gdb) set print pretty
> (gdb) bt full
> #0  exit (code=1) at 
> /usr/src/debug/cygwin-3.1.7-1/newlib/libc/stdlib/exit.c:54
> No locals.
> #1  0x00000001800496e3 in cygwin_exit (n=1) at 
> /usr/src/debug/cygwin-3.1.7-1/winsup/cygwin/dcrt0.cc:1282
> No locals.
> #2  0x000000018013e96b in _sigfe () at sigfe.s:35
> No locals.
> #3  0x00000001005a8090 in main (argc=3, argv=0xffffcc30) at emacs.c:1444
>         retval = 0
>         buf = ""
>         f = 50925
>         stack_bottom_variable = 0x0
>         do_initial_setlocale = true
>         no_loadup = false
>         junk = 0x0
>         dname_arg = 0x0
>         ch_to_dir = 0x0
>         original_pwd = 0x0
>         dump_mode = 0x0
>         skip_args = 1
>         temacs = 0x0
>         attempt_load_pdump = true
>         sockfd = -1
>         module_assertions = false
> 
> On Wed, Oct 28, 2020, at 2:24 PM, noosphere@mailc.net wrote:
> > Thank you for trying.
> > 
> > For the record, I just started a thread on the Cygwin mailing list here:
> > 
> >   https://cygwin.com/pipermail/cygwin/2020-October/246613.html
> > 
> > On Wed, Oct 28, 2020, at 1:00 PM, Eli Zaretskii wrote:
> > > > Date: Wed, 28 Oct 2020 12:57:12 -0700
> > > > From: noosphere@mailc.net
> > > > Cc: 44285@debbugs.gnu.org
> > > > 
> > > > Still no luck.
> > > 
> > > Sorry, I guess I'm too stupid.
> > > 
> > > How about asking about this on the Cygwin list?
> > >





^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#44285: 27.1; Invalid function: make-local-variable
  2020-10-29  3:00                       ` noosphere
@ 2020-10-29 12:53                         ` Ken Brown
  2020-10-29 14:36                           ` Eli Zaretskii
  0 siblings, 1 reply; 15+ messages in thread
From: Ken Brown @ 2020-10-29 12:53 UTC (permalink / raw)
  To: noosphere, Eli Zaretskii; +Cc: 44285

[-- Attachment #1: Type: text/plain, Size: 694 bytes --]

On 10/28/2020 11:00 PM, noosphere@mailc.net wrote:
> Ken Brown on the Cygwin mailing list posted the following patch, which worked for me:
> 
> --- a/src/emacs.c
> +++ b/src/emacs.c
> @@ -170,7 +170,7 @@ #define MAIN_PROGRAM
>       We mark being in the exec'd process by a daemon name argument of
>       form "--daemon=\nFD0,FD1\nNAME" where FD are the pipe file descriptors,
>       NAME is the original daemon name, if any. */
> -#if defined NS_IMPL_COCOA || (defined HAVE_NTGUI && defined CYGWIN)
> +#if defined NS_IMPL_COCOA || defined CYGWIN
>    # define DAEMON_MUST_EXEC
>    #endif
> 

The full patch (with commit message) is attached.  Eli, is this OK for the 
emacs-27 branch?

Ken

[-- Attachment #2: 0001-Fix-failure-of-emacs-daemon-on-Cygwin.patch --]
[-- Type: text/plain, Size: 985 bytes --]

From 2d15296db112740bcb6e7fa5808b57f12a99e49e Mon Sep 17 00:00:00 2001
From: Ken Brown <kbrown@cornell.edu>
Date: Thu, 29 Oct 2020 08:45:29 -0400
Subject: [PATCH] Fix failure of 'emacs --daemon' on Cygwin

* src/emacs.c (DAEMON_MUST_EXEC): Define unconditionally on
Cygwin, not just if HAVE_NTGUI is defined.  This fixes the failure
of 'emacs --daemon' to start on the non-w32 Cygwin builds.
(Bug#44285)
---
 src/emacs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/emacs.c b/src/emacs.c
index 11dcdb33fe..3836f179ab 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -171,7 +171,7 @@ #define MAIN_PROGRAM
    We mark being in the exec'd process by a daemon name argument of
    form "--daemon=\nFD0,FD1\nNAME" where FD are the pipe file descriptors,
    NAME is the original daemon name, if any. */
-#if defined NS_IMPL_COCOA || (defined HAVE_NTGUI && defined CYGWIN)
+#if defined NS_IMPL_COCOA || defined CYGWIN
 # define DAEMON_MUST_EXEC
 #endif
 
-- 
2.28.0


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* bug#44285: 27.1; Invalid function: make-local-variable
  2020-10-29 12:53                         ` Ken Brown
@ 2020-10-29 14:36                           ` Eli Zaretskii
  2020-10-29 14:46                             ` Ken Brown
  0 siblings, 1 reply; 15+ messages in thread
From: Eli Zaretskii @ 2020-10-29 14:36 UTC (permalink / raw)
  To: Ken Brown; +Cc: 44285, noosphere

> Cc: 44285@debbugs.gnu.org
> From: Ken Brown <kbrown@cornell.edu>
> Date: Thu, 29 Oct 2020 08:53:15 -0400
> 
> > --- a/src/emacs.c
> > +++ b/src/emacs.c
> > @@ -170,7 +170,7 @@ #define MAIN_PROGRAM
> >       We mark being in the exec'd process by a daemon name argument of
> >       form "--daemon=\nFD0,FD1\nNAME" where FD are the pipe file descriptors,
> >       NAME is the original daemon name, if any. */
> > -#if defined NS_IMPL_COCOA || (defined HAVE_NTGUI && defined CYGWIN)
> > +#if defined NS_IMPL_COCOA || defined CYGWIN
> >    # define DAEMON_MUST_EXEC
> >    #endif
> > 
> 
> The full patch (with commit message) is attached.  Eli, is this OK for the 
> emacs-27 branch?

Yes, thanks.





^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#44285: 27.1; Invalid function: make-local-variable
  2020-10-29 14:36                           ` Eli Zaretskii
@ 2020-10-29 14:46                             ` Ken Brown
  0 siblings, 0 replies; 15+ messages in thread
From: Ken Brown @ 2020-10-29 14:46 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 44285-done, noosphere

On 10/29/2020 10:36 AM, Eli Zaretskii wrote:
>> Cc: 44285@debbugs.gnu.org
>> From: Ken Brown <kbrown@cornell.edu>
>> Date: Thu, 29 Oct 2020 08:53:15 -0400
>> The full patch (with commit message) is attached.  Eli, is this OK for the
>> emacs-27 branch?
> 
> Yes, thanks.

Pushed.  Closing.





^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2020-10-29 14:46 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-28 15:50 bug#44285: 27.1; Invalid function: make-local-variable noosphere
2020-10-28 17:21 ` Eli Zaretskii
     [not found]   ` <874kmexn4d.fsf@mailc.net>
2020-10-28 17:47     ` Eli Zaretskii
2020-10-28 18:46       ` noosphere
2020-10-28 19:23         ` Eli Zaretskii
2020-10-28 19:31           ` noosphere
2020-10-28 19:52             ` Eli Zaretskii
2020-10-28 19:57               ` noosphere
2020-10-28 20:00                 ` Eli Zaretskii
2020-10-28 21:24                   ` noosphere
2020-10-29  1:46                     ` noosphere
2020-10-29  3:00                       ` noosphere
2020-10-29 12:53                         ` Ken Brown
2020-10-29 14:36                           ` Eli Zaretskii
2020-10-29 14:46                             ` Ken Brown

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.