From: noosphere@mailc.net
To: "Eli Zaretskii" <eliz@gnu.org>
Cc: 44285@debbugs.gnu.org
Subject: bug#44285: 27.1; Invalid function: make-local-variable
Date: Wed, 28 Oct 2020 20:00:44 -0700 [thread overview]
Message-ID: <24b662de-7182-420e-9dcb-e36b9bb43dc1@www.fastmail.com> (raw)
In-Reply-To: <b0464638-1268-42dd-8e95-6986e6af7c29@www.fastmail.com>
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?
> > >
next prev parent reply other threads:[~2020-10-29 3:00 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2020-10-29 12:53 ` Ken Brown
2020-10-29 14:36 ` Eli Zaretskii
2020-10-29 14:46 ` Ken Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=24b662de-7182-420e-9dcb-e36b9bb43dc1@www.fastmail.com \
--to=noosphere@mailc.net \
--cc=44285@debbugs.gnu.org \
--cc=eliz@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.