[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs 28 on OSX: emacsclient.c:1415: warning: implicit declaration o
From: |
Keith David Bershatsky |
Subject: |
Re: Emacs 28 on OSX: emacsclient.c:1415: warning: implicit declaration of function 'openat' |
Date: |
Wed, 20 Apr 2022 17:51:32 -0700 |
Emacs master (as of commit f98c3f4426fecf794f47f27aebe1f3b854fb1bfd) now builds
successfully on OSX 10.6.8 using all of the recent patches, plus the suggestion
by Po to use the number 1068 instead of 1060 in nsterm.m. Emacs crashes,
however, when trying to launch it. To help keep track of where I believe we
are in the evolution of patches, I have attached what I believe to be a
combined patch of the work done by Alan and Po, plus the modification of number
1060 to 1068 in nsterm.m. Here is a backtrace:
Last login: Wed Apr 20 16:44:00 on console
server:~ HOME$ ulimit -S -s unlimitedserver:~ HOME$ cd
/Users/HOME/Desktop/emacs/srcserver:src HOME$
/Users/HOME/.0.data/.0.emacs/.0.macports_2_3_3/bin/ggdb_mp
/Users/HOME/Desktop/emacs/nextstep/Emacs.app/Contents/MacOS/EmacsGNU gdb (GDB)
7.7.1
Copyright (C) 2014 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-apple-darwin10.8.0".
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
/Users/HOME/Desktop/emacs/nextstep/Emacs.app/Contents/MacOS/Emacs...done.
SIGINT is used by the debugger.
Are you sure you want to change it? (y or n) [answered Y; input not from
terminal]
DISPLAY = /tmp/launch-dmF4wz/org.x:0
TERM = xterm-color
Breakpoint 1 at 0x1000e9ee0: file emacs.c, line 421.
(gdb) run
Starting program:
/Users/HOME/Desktop/emacs/nextstep/Emacs.app/Contents/MacOS/Emacs
2022-04-20 17:40:18.996 Emacs[29141:60f] *** __NSAutoreleaseNoPool(): Object
0x100918460 of class NSPathStore2 autoreleased with no pool in place - just
leaking
2022-04-20 17:40:18.998 Emacs[29141:60f] *** __NSAutoreleaseNoPool(): Object
0x10091c290 of class NSPathStore2 autoreleased with no pool in place - just
leaking
2022-04-20 17:40:18.998 Emacs[29141:60f] *** __NSAutoreleaseNoPool(): Object
0x1009185f0 of class NSCFString autoreleased with no pool in place - just
leaking
2022-04-20 17:40:18.998 Emacs[29141:60f] *** __NSAutoreleaseNoPool(): Object
0x10091cc40 of class NSCFArray autoreleased with no pool in place - just leaking
2022-04-20 17:40:18.999 Emacs[29141:60f] *** __NSAutoreleaseNoPool(): Object
0x10091cd30 of class NSPathStore2 autoreleased with no pool in place - just
leaking
2022-04-20 17:40:18.999 Emacs[29141:60f] *** __NSAutoreleaseNoPool(): Object
0x10091ce90 of class NSCFData autoreleased with no pool in place - just leaking
[New Thread 0x1903 of process 29141]
[New Thread 0x1a03 of process 29141]
[New Thread 0x1b03 of process 29141]
2022-04-20 17:40:19.560 Emacs[29141:60f] An uncaught exception was raised
2022-04-20 17:40:19.560 Emacs[29141:60f] *** -getRed:green:blue:alpha: not
defined for the NSColor NSCustomColorSpace Device RGB colorspace 0 0 0 1; need
to first convert colorspace.
2022-04-20 17:40:19.561 Emacs[29141:60f] *** Terminating app due to uncaught
exception 'NSInvalidArgumentException', reason: '*** -getRed:green:blue:alpha:
not defined for the NSColor NSCustomColorSpace Device RGB colorspace 0 0 0 1;
need to first convert colorspace.'
*** Call stack at first throw:
(
0 CoreFoundation 0x00007fff899577b4
__exceptionPreprocess + 180
1 libobjc.A.dylib 0x00007fff8012bf03
objc_exception_throw + 45
2 CoreFoundation 0x00007fff899575d7
+[NSException raise:format:arguments:] + 103
3 CoreFoundation 0x00007fff89957564
+[NSException raise:format:] + 148
4 Emacs 0x000000010021cc44
-[NSColor(EmacsColor) unsignedLong] + 36
5 Emacs 0x00000001002343ff
ns_set_foreground_color + 127
6 Emacs 0x0000000100018391
gui_set_frame_parameters + 1553
7 Emacs 0x000000010001965e
gui_default_parameter + 174
8 Emacs 0x000000010023952f
Fx_create_frame + 1631
9 Emacs 0x000000010018c5d0 funcall_subr
+ 480
10 Emacs 0x00000001001d98ed
exec_byte_code + 11085
11 Emacs 0x000000010018aa44 Ffuncall +
324
12 Emacs 0x000000010018e004 Fapply + 756
13 Emacs 0x000000010018c470 funcall_subr
+ 128
14 Emacs 0x00000001001d98ed
exec_byte_code + 11085
15 Emacs 0x000000010018f426 apply_lambda
+ 262
16 Emacs 0x0000000100189509 eval_sub +
1481
17 Emacs 0x000000010018f09d Feval + 61
18 Emacs 0x0000000100186653
internal_condition_case + 99
19 Emacs 0x00000001000efac8 top_level_1
+ 88
20 Emacs 0x00000001001866d7
internal_catch + 87
21 Emacs 0x00000001000ef9d8 command_loop
+ 184
22 Emacs 0x00000001000f3ef6
recursive_edit_1 + 182
23 Emacs 0x00000001000f40d4
Frecursive_edit + 244
24 Emacs 0x00000001000eb5a5 main + 4805
25 Emacs 0x00000001000015c4 start + 52
26 ??? 0x0000000000000001 0x0 + 1
)
terminate called after throwing an instance of 'NSException'
[New Thread 0x1c03 of process 29141]
Program received signal SIGABRT, Aborted.
0x00007fff8a6120b6 in t.2065 () from /usr/lib/libSystem.B.dylib
(gdb) bt
#0 0x00007fff8a6120b6 in t.2065 () from /usr/lib/libSystem.B.dylib
#1 0x00007fff8a6b29f6 in t.2066 () from /usr/lib/libSystem.B.dylib
#2 0x00007fff838465d2 in ?? () from /usr/lib/libstdc++.6.dylib
#3 0x00007fff8012fb39 in ?? () from /usr/lib/libobjc.A.dylib
#4 0x00007fff83844ae1 in ?? () from /usr/lib/libstdc++.6.dylib
#5 0x00007fff83844b16 in ?? () from /usr/lib/libstdc++.6.dylib
#6 0x00007fff83844bfc in ?? () from /usr/lib/libstdc++.6.dylib
#7 0x00007fff8012bfa2 in ?? () from /usr/lib/libobjc.A.dylib
#8 0x00007fff899575d7 in +[NSException raise:format:arguments:] ()
from
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
#9 0x00007fff89957564 in +[NSException raise:format:] ()
from
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
#10 0x000000010021cc44 in -[NSColor(EmacsColor) unsignedLong] (self=0x71d5,
_cmd=<optimized out>) at nsterm.m:182
#11 0x00000001002343ff in ns_set_foreground_color (f=0x101166830,
arg=XIL(0x103627364), oldval=XIL(0)) at nsfns.m:255
#12 0x0000000100018391 in gui_set_frame_parameters (f=0x71d5,
alist=<optimized out>) at frame.c:4274
#13 0x000000010001965e in gui_default_parameter (f=0x101166830,
alist=<optimized out>, prop=XIL(0x69c0), deflt=XIL(0x103627364),
xprop=<optimized out>, xclass=<optimized out>, type=RES_TYPE_STRING)
at frame.c:5469
#14 0x000000010023952f in Fx_create_frame (parms=XIL(0x1011037b3))
at nsfns.m:1282
#15 0x000000010018c5d0 in funcall_subr (subr=0x10067ef00, numargs=1,
args=0x7fff5fbfeb88) at eval.c:2911
#16 0x00000001001d98ed in exec_byte_code (fun=XIL(0x71d5), args_template=6,
nargs=0, args=0x7fff5fbfeb88) at bytecode.c:809
#17 0x000000010018aa44 in Ffuncall (nargs=<optimized out>, args=0x104800208)
at eval.c:2873
#18 0x000000010018e004 in Fapply (nargs=2, args=0x104800208) at eval.c:2507
#19 0x000000010018c470 in funcall_subr (subr=0x1006784c0, numargs=2,
args=0x7fff5fbfeb88) at eval.c:2938
#20 0x00000001001d98ed in exec_byte_code (fun=XIL(0x71d5), args_template=6,
nargs=0, args=0x7fff5fbfeb88) at bytecode.c:809
#21 0x000000010018f426 in apply_lambda (fun=XIL(0x102a067c5), args=XIL(0),
count=...) at eval.c:2982
#22 0x0000000100189509 in eval_sub (form=<optimized out>) at eval.c:2472
#23 0x000000010018f09d in Feval (form=XIL(0x102fe1cab),
lexical=<optimized out>) at eval.c:2240
#24 0x0000000100186653 in internal_condition_case (
bfun=0x1000ef900 <top_level_2>, handlers=<optimized out>,
hfun=0x1000f0860 <cmd_error>) at eval.c:1450
#25 0x00000001000efac8 in top_level_1 (ignore=<optimized out>)
at keyboard.c:1159
#26 0x00000001001866d7 in internal_catch (tag=<optimized out>,
func=0x1000efa70 <top_level_1>, arg=XIL(0)) at eval.c:1180
#27 0x00000001000ef9d8 in command_loop () at keyboard.c:1119
#28 0x00000001000f3ef6 in recursive_edit_1 () at keyboard.c:729
#29 0x00000001000f40d4 in Frecursive_edit () at keyboard.c:812
#30 0x00000001000eb5a5 in main (argc=1, argv=0x7fff5fbff960) at emacs.c:2474
Lisp Backtrace:
Cannot access memory at address 0x74b78
(gdb)
combined_patches_2020_04_20_a.diff
Description: application/diff
- Re: Emacs 28 on OSX: emacsclient.c:1415: warning: implicit declaration of function 'openat', (continued)
- Re: Emacs 28 on OSX: emacsclient.c:1415: warning: implicit declaration of function 'openat', Alan Third, 2022/04/19
- Re: Emacs 28 on OSX: emacsclient.c:1415: warning: implicit declaration of function 'openat', Po Lu, 2022/04/19
- Re: Emacs 28 on OSX: emacsclient.c:1415: warning: implicit declaration of function 'openat', Eli Zaretskii, 2022/04/19
- Re: Emacs 28 on OSX: emacsclient.c:1415: warning: implicit declaration of function 'openat', Po Lu, 2022/04/19
- Re: Emacs 28 on OSX: emacsclient.c:1415: warning: implicit declaration of function 'openat', Alan Third, 2022/04/20
Re: Emacs 28 on OSX: emacsclient.c:1415: warning: implicit declaration of function 'openat', Paul Eggert, 2022/04/18
Re: Emacs 28 on OSX: emacsclient.c:1415: warning: implicit declaration of function 'openat', Keith David Bershatsky, 2022/04/19
Re: Emacs 28 on OSX: emacsclient.c:1415: warning: implicit declaration of function 'openat', Keith David Bershatsky, 2022/04/20
Re: Emacs 28 on OSX: emacsclient.c:1415: warning: implicit declaration of function 'openat',
Keith David Bershatsky <=
Re: Emacs 28 on OSX: emacsclient.c:1415: warning: implicit declaration of function 'openat', Keith David Bershatsky, 2022/04/20
Re: Emacs 28 on OSX: emacsclient.c:1415: warning: implicit declaration of function 'openat', Keith David Bershatsky, 2022/04/21
Re: Emacs 28 on OSX: emacsclient.c:1415: warning: implicit declaration of function 'openat', Keith David Bershatsky, 2022/04/21
Re: Emacs 28 on OSX: emacsclient.c:1415: warning: implicit declaration of function 'openat', Keith David Bershatsky, 2022/04/21
Re: Emacs 28 on OSX: emacsclient.c:1415: warning: implicit declaration of function 'openat', Keith David Bershatsky, 2022/04/22