Emacs 27.1 - Invalid function: make-local-variable

Ken Brown kbrown@cornell.edu
Thu Oct 29 02:09:21 GMT 2020


[Please don't top-post on this list.]

On 10/28/2020 9:44 PM, noosphere@mailc.net wrote:
> (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

I won't have time to check this until tomorrow, but I'm guessing that the 
following patch will fix the problem:

--- 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

My guess is based mostly on the fact that the problem doesn't occur in emacs-w32 
(i.e., when HAVE_NTGUI is defined).  Please give this a try if you have a chance 
before I get to it.

Ken


More information about the Cygwin mailing list