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

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

bug#44285: 27.1; Invalid function: make-local-variable


From: noosphere
Subject: bug#44285: 27.1; Invalid function: make-local-variable
Date: Wed, 28 Oct 2020 20:00:44 -0700
User-agent: Cyrus-JMAP/3.3.0-529-g69105b1-fm-20201021.003-g69105b13

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





reply via email to

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