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

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

bug#44313: closed (27.1.50; ns_mouse_position EXC_BAD_ACCESS crash)


From: GNU bug Tracking System
Subject: bug#44313: closed (27.1.50; ns_mouse_position EXC_BAD_ACCESS crash)
Date: Sat, 12 Dec 2020 10:44:01 +0000

Your message dated Sat, 12 Dec 2020 10:43:01 +0000
with message-id <X9SetWCFug4fVsfS@breton.holly.idiocy.org>
and subject line Re: bug#44313: 27.1.50; ns_mouse_position EXC_BAD_ACCESS crash
has caused the debbugs.gnu.org bug report #44313,
regarding 27.1.50; ns_mouse_position EXC_BAD_ACCESS crash
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
44313: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=44313
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: 27.1.50; ns_mouse_position EXC_BAD_ACCESS crash Date: Thu, 29 Oct 2020 15:16:22 -0500
Not sure how to reproduce this, but it has happened multiple times
today. I'm on e29cace60a

* thread #1, queue = 'com.apple.main-thread', stop reason =
EXC_BAD_ACCESS (code=1, address=0x9038f6d4d)
  * frame #0: 0x0000000100378558
emacs`ns_mouse_position(fp=0x00007ffeefbfd3e8, insist=-1,
bar_window=0x00007ffeefbfd3e0, part=0x00007ffeefbfd3c4,
x=0x00007ffeefbfd3d8, y=0x00007ffeefbfd3d0, time=0x00007ffeefbfd3b8)
at nsterm.m:2536:12
    frame #1: 0x000000010001fefc emacs`Fmouse_pixel_position at frame.c:2494:7
    frame #2: 0x00000001002693c6
emacs`funcall_subr(subr=0x0000000100412bc8, numargs=0,
args=0x00007ffeefbfd588) at eval.c:2866:19
    frame #3: 0x0000000100268204 emacs`Ffuncall(nargs=1,
args=0x00007ffeefbfd580) at eval.c:2795:11
    frame #4: 0x00000001002d951e
emacs`exec_byte_code(bytestr=0x000000010422a0a4,
vector=0x0000000104229fa5, maxdepth=0x000000000000002a,
args_template=0x0000000000000406, nargs=1, args=0x00007ffeefbfdcf8) at
bytecode.c:633:12
    frame #5: 0x000000010026985c
emacs`funcall_lambda(fun=0x0000000104229f75, nargs=1,
arg_vector=0x00007ffeefbfdcf0) at eval.c:2990:11
    frame #6: 0x000000010026824e emacs`Ffuncall(nargs=2,
args=0x00007ffeefbfdce8) at eval.c:2797:11
    frame #7: 0x0000000100268d2f emacs`call1(fn=0x00000000000094b0,
arg1=0x0000000158414eb4) at eval.c:2655:10
    frame #8: 0x0000000100169ebf
emacs`show_help_echo(help=0x0000000158414eb4,
window=0x000000017dca1e35, object=0x00000001755c90a5,
pos=0x0000000000000346) at keyboard.c:2093:14
    frame #9: 0x000000010016cb33 emacs`read_char(commandflag=1,
map=0x00000001950c1a83, prev_event=0x0000000000000000,
used_mouse_menu=0x00007ffeefbfe7ef, end_time=0x0000000000000000) at
keyboard.c:3117:7
    frame #10: 0x0000000100166719
emacs`read_key_sequence(keybuf=0x00007ffeefbfeaf0,
prompt=0x0000000000000000, dont_downcase_last=false,
can_return_switch_frame=true, fix_current_buffer=true,
prevent_redisplay=false) at keyboard.c:9554:12
    frame #11: 0x0000000100165139 emacs`command_loop_1 at keyboard.c:1350:15
    frame #12: 0x0000000100261b4f
emacs`internal_condition_case(bfun=(emacs`command_loop_1 at
keyboard.c:1236), handlers=0x0000000000000090, hfun=(emacs`cmd_error
at keyboard.c:919)) at eval.c:1356:25
    frame #13: 0x000000010017ce8c
emacs`command_loop_2(ignore=0x0000000000000000) at keyboard.c:1091:11
    frame #14: 0x00000001002614ba
emacs`internal_catch(tag=0x000000000000c840,
func=(emacs`command_loop_2 at keyboard.c:1087),
arg=0x0000000000000000) at eval.c:1117:25
    frame #15: 0x00000001001640ca emacs`command_loop at keyboard.c:1070:2
    frame #16: 0x0000000100163f50 emacs`recursive_edit_1 at keyboard.c:714:9
    frame #17: 0x0000000100164299 emacs`Frecursive_edit at keyboard.c:786:3
    frame #18: 0x0000000100161764 emacs`main(argc=1,
argv=0x00007ffeefbff0a0) at emacs.c:2066:3
    frame #19: 0x00007fff6a33dcc9 libdyld.dylib`start + 1
(lldb) frame select 3
frame #3: 0x0000000100268204 emacs`Ffuncall(nargs=1,
args=0x00007ffeefbfd580) at eval.c:2795:11
   2792     fun = indirect_function (fun);
   2793
   2794   if (SUBRP (fun))
-> 2795     val = funcall_subr (XSUBR (fun), numargs, args + 1);
   2796   else if (COMPILEDP (fun) || MODULE_FUNCTIONP (fun))
   2797     val = funcall_lambda (fun, numargs, args + 1);
   2798   else
(lldb) p XSTRING(XSYMBOL(args[0])->u.s.name)->u.s.data
(unsigned char *) $0 = 0x00000001003e2c94 "mouse-pixel-position"

In GNU Emacs 27.1.50 (build 2, x86_64-apple-darwin19.6.0, NS
appkit-1894.60 Version 10.15.7 (Build 19H2))
 of 2020-10-28 built on my-machine
Repository revision: e29cace60afdab04ff20c4f4043a3ee64ec9d01d
Repository branch: emacs-27
Windowing system distributor 'Apple', version 10.3.1894
System Description:  Mac OS X 10.15.7


Memory information:
((conses 16 777153 878287)
 (symbols 48 68934 1027)
 (strings 32 241222 115526)
 (string-bytes 1 8380649)
 (vectors 16 109859)
 (vector-slots 8 1221060 903756)
 (floats 8 1729 3395)
 (intervals 56 6128 1401)
 (buffers 1000 18))


Aaron



--- End Message ---
--- Begin Message --- Subject: Re: bug#44313: 27.1.50; ns_mouse_position EXC_BAD_ACCESS crash Date: Sat, 12 Dec 2020 10:43:01 +0000
On Mon, Nov 09, 2020 at 02:54:50PM +0000, Alan Third wrote:
> On Mon, Nov 09, 2020 at 03:43:01PM +0100, Lars Ingebrigtsen wrote:
> > Alan Third <alan@idiocy.org> writes:
> > 
> > > On Fri, Nov 06, 2020 at 08:29:34AM -0600, Aaron Jensen wrote:
> > >> I've got even more time with this patch now and still no crashes. No
> > >> other problems that I've seen either. It seems like a good change.
> > >> Thanks, Alan. Would this be good to go in 27?
> > >
> > > I think so, unless anyone has any objections?
> > >
> > > It fixes a real world crash and is a very small change.
> > 
> > My impression is that more people use the Emacs 28 branch than the 27
> > branch, so for low-level changes like this, I think it's often
> > preferable to apply them to Emacs 28 and then cherry-pick them for Emacs
> > 27 after a week or so (if no problems have been seen).
> 
> I've pushed to master as 18a7267c32a909bb26bd93d24543155aeb10e042.

Now pushed to Emacs 27.

Thanks.
-- 
Alan Third


--- End Message ---

reply via email to

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