[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#67900: 30.0.50; Emacs Crahes When Executing Command `consult-buffer'
From: |
Andrea Corallo |
Subject: |
bug#67900: 30.0.50; Emacs Crahes When Executing Command `consult-buffer' |
Date: |
Fri, 29 Dec 2023 13:37:23 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Chang Xiaoduan <drcxd@sina.com> writes:
> Andrea Corallo <acorallo@gnu.org> writes:
>
>> Eli Zaretskii <eliz@gnu.org> writes:
>> I think the next step is to narrow down the miss-compiled function. For
>> that we can tweak speed on function basis like:
>>
>> (defun foo (x y)
>> (declare (speed 1))
>> (+ x y))
>>
>> As usual I'd start probing the suspect function `consult-buffer` and if
>> we find is not the coolprint I'd probably bisect all the functions in
>> the compilation unit.
>>
>> Thanks
>>
>> Andrea
>
> I have done this differently: I use an Emacs compiled with
> `native-comp-speed` set to 1. Then I add the `declare` form to all the
> `defun`, `cl-defun`, `defmacro` and `defsubst`, for example:
>
> ```
> (defun consult--customize-put (cmds prop form)
> "Set property PROP to FORM of commands CMDS."
> (declare (speed 2))
> (dolist (cmd cmds)
> (cond
> ((and (boundp cmd) (consp (symbol-value cmd)))
> (setf (plist-get (symbol-value cmd) prop) (eval form 'lexical)))
> ((functionp cmd)
> (setf (plist-get (alist-get cmd consult--customize-alist) prop) form))
> (t (user-error "%s is neither a Command command nor a source" cmd))))
> nil)
> ```
>
> With this setup I can not reproduce the crash. Is the method wrong? How?
> Can you explain this to me?
>
> Thank you
There could be some function generated by macros without the speed
declaration? Dunno...
Anyway please try the opposite strategy (CU at speed 2 and functions at
speed 1) to narrow the function and let us know if it's more successful.
Thanks
Andrea
- bug#67900: 30.0.50; Emacs Crahes When Executing Command `consult-buffer', (continued)
- bug#67900: 30.0.50; Emacs Crahes When Executing Command `consult-buffer', Chang Xiaoduan, 2023/12/20
- bug#67900: 30.0.50; Emacs Crahes When Executing Command `consult-buffer', Eli Zaretskii, 2023/12/21
- bug#67900: 30.0.50; Emacs Crahes When Executing Command `consult-buffer', Andrea Corallo, 2023/12/21
- bug#67900: 30.0.50; Emacs Crahes When Executing Command `consult-buffer', Chang Xiaoduan, 2023/12/21
- bug#67900: 30.0.50; Emacs Crahes When Executing Command `consult-buffer', Eli Zaretskii, 2023/12/22
- bug#67900: 30.0.50; Emacs Crahes When Executing Command `consult-buffer', Andrea Corallo, 2023/12/22
- bug#67900: 30.0.50; Emacs Crahes When Executing Command `consult-buffer', Chang Xiaoduan, 2023/12/22
- bug#67900: 30.0.50; Emacs Crahes When Executing Command `consult-buffer', Eli Zaretskii, 2023/12/23
- bug#67900: 30.0.50; Emacs Crahes When Executing Command `consult-buffer', Andrea Corallo, 2023/12/26
- bug#67900: 30.0.50; Emacs Crahes When Executing Command `consult-buffer', Chang Xiaoduan, 2023/12/28
- bug#67900: 30.0.50; Emacs Crahes When Executing Command `consult-buffer',
Andrea Corallo <=